libv8 5.3.332.38.5 → 5.6.326.50.0beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/CHANGELOG.md +2 -0
- data/ext/libv8/builder.rb +2 -2
- data/lib/libv8/version.rb +1 -1
- data/patches/0001-Build-a-standalone-static-library.patch +4 -4
- data/patches/0002-Don-t-compile-unnecessary-stuff.patch +16 -11
- data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +4 -4
- data/patches/{0005-Do-not-embed-debug-symbols-in-macOS-libraries.patch → 0004-Do-not-embed-debug-symbols-in-macOS-libraries.patch} +4 -4
- data/vendor/depot_tools/.gitignore +4 -0
- data/vendor/depot_tools/OWNERS +0 -2
- data/vendor/depot_tools/PRESUBMIT.py +20 -23
- data/vendor/depot_tools/README.gclient.md +3 -3
- data/vendor/depot_tools/README.git-cl.md +13 -12
- data/vendor/depot_tools/README.md +2 -3
- data/vendor/depot_tools/WATCHLISTS +0 -1
- data/vendor/depot_tools/appengine_mapper.py +23 -0
- data/vendor/depot_tools/apply_issue.py +2 -8
- data/vendor/depot_tools/bootstrap/win/README.md +1 -8
- data/vendor/depot_tools/bootstrap/win/git_bootstrap.py +6 -16
- data/vendor/depot_tools/bootstrap/win/git_version.txt +1 -1
- data/vendor/depot_tools/bootstrap/win/git_version_bleeding_edge.txt +1 -1
- data/vendor/depot_tools/checkout.py +20 -433
- data/vendor/depot_tools/cipd +73 -0
- data/vendor/depot_tools/cipd.bat +12 -0
- data/vendor/depot_tools/cipd.ps1 +57 -0
- data/vendor/depot_tools/cipd_client_version +1 -0
- data/vendor/depot_tools/clang_format.py +9 -6
- data/vendor/depot_tools/clang_format_merge_driver +8 -0
- data/vendor/depot_tools/clang_format_merge_driver.bat +11 -0
- data/vendor/depot_tools/clang_format_merge_driver.py +67 -0
- data/vendor/depot_tools/codereview.settings +3 -2
- data/vendor/depot_tools/commit_queue.py +1 -1
- data/vendor/depot_tools/cpplint.py +2 -0
- data/vendor/depot_tools/fetch.py +1 -54
- data/vendor/depot_tools/fetch_configs/android.py +2 -2
- data/vendor/depot_tools/fetch_configs/breakpad.py +2 -3
- data/vendor/depot_tools/fetch_configs/chromium.py +2 -3
- data/vendor/depot_tools/fetch_configs/crashpad.py +2 -2
- data/vendor/depot_tools/fetch_configs/dart.py +2 -3
- data/vendor/depot_tools/fetch_configs/dartino.py +2 -3
- data/vendor/depot_tools/fetch_configs/dartium.py +2 -3
- data/vendor/depot_tools/fetch_configs/depot_tools.py +3 -6
- data/vendor/depot_tools/fetch_configs/gyp.py +2 -3
- data/vendor/depot_tools/fetch_configs/infra.py +2 -2
- data/vendor/depot_tools/fetch_configs/infra_internal.py +2 -2
- data/vendor/depot_tools/fetch_configs/ios.py +2 -2
- data/vendor/depot_tools/fetch_configs/ios_internal.py +2 -3
- data/vendor/depot_tools/fetch_configs/mojo.py +2 -3
- data/vendor/depot_tools/fetch_configs/nacl.py +2 -3
- data/vendor/depot_tools/fetch_configs/naclports.py +2 -3
- data/vendor/depot_tools/fetch_configs/pdfium.py +2 -2
- data/vendor/depot_tools/fetch_configs/skia.py +2 -2
- data/vendor/depot_tools/fetch_configs/skia_buildbot.py +2 -2
- data/vendor/depot_tools/fetch_configs/syzygy.py +2 -2
- data/vendor/depot_tools/fetch_configs/v8.py +2 -3
- data/vendor/depot_tools/fetch_configs/webrtc.py +5 -3
- data/vendor/depot_tools/fetch_configs/webrtc_android.py +2 -2
- data/vendor/depot_tools/fetch_configs/webrtc_ios.py +2 -2
- data/vendor/depot_tools/fix_encoding.py +6 -6
- data/vendor/depot_tools/gclient.py +136 -368
- data/vendor/depot_tools/gclient_scm.py +108 -647
- data/vendor/depot_tools/gclient_utils.py +22 -86
- data/vendor/depot_tools/gerrit_client.py +105 -0
- data/vendor/depot_tools/gerrit_util.py +174 -67
- data/vendor/depot_tools/git-crrev-parse +6 -7
- data/vendor/depot_tools/git-gs +1 -1
- data/vendor/depot_tools/git_cache.py +68 -18
- data/vendor/depot_tools/git_cherry_pick_upload.py +4 -4
- data/vendor/depot_tools/git_cl.py +1028 -961
- data/vendor/depot_tools/git_common.py +2 -3
- data/vendor/depot_tools/git_drover.py +0 -1
- data/vendor/depot_tools/git_footers.py +3 -43
- data/vendor/depot_tools/git_rebase_update.py +9 -1
- data/vendor/depot_tools/git_squash_branch.py +1 -1
- data/vendor/depot_tools/infra/config/cq.cfg +8 -1
- data/vendor/depot_tools/infra/config/recipes.cfg +1 -1
- data/vendor/depot_tools/man/html/depot_tools.html +3 -11
- data/vendor/depot_tools/man/html/depot_tools_tutorial.html +9 -9
- data/vendor/depot_tools/man/html/git-cherry-pick-upload.html +2 -2
- data/vendor/depot_tools/man/html/git-drover.html +17 -17
- data/vendor/depot_tools/man/html/git-footers.html +2 -2
- data/vendor/depot_tools/man/html/git-freeze.html +4 -4
- data/vendor/depot_tools/man/html/git-hyper-blame.html +2 -2
- data/vendor/depot_tools/man/html/git-map-branches.html +2 -2
- data/vendor/depot_tools/man/html/git-map.html +2 -2
- data/vendor/depot_tools/man/html/git-mark-merge-base.html +2 -2
- data/vendor/depot_tools/man/html/git-nav-downstream.html +2 -2
- data/vendor/depot_tools/man/html/git-nav-upstream.html +2 -2
- data/vendor/depot_tools/man/html/git-new-branch.html +2 -2
- data/vendor/depot_tools/man/html/git-rebase-update.html +2 -2
- data/vendor/depot_tools/man/html/git-rename-branch.html +2 -2
- data/vendor/depot_tools/man/html/git-reparent-branch.html +2 -2
- data/vendor/depot_tools/man/html/git-retry.html +3 -3
- data/vendor/depot_tools/man/html/git-squash-branch.html +3 -3
- data/vendor/depot_tools/man/html/git-thaw.html +2 -2
- data/vendor/depot_tools/man/html/git-upstream-diff.html +3 -3
- data/vendor/depot_tools/man/man1/git-cherry-pick-upload.1 +4 -4
- data/vendor/depot_tools/man/man1/git-drover.1 +19 -19
- data/vendor/depot_tools/man/man1/git-footers.1 +4 -4
- data/vendor/depot_tools/man/man1/git-freeze.1 +6 -6
- data/vendor/depot_tools/man/man1/git-hyper-blame.1 +4 -4
- data/vendor/depot_tools/man/man1/git-map-branches.1 +4 -4
- data/vendor/depot_tools/man/man1/git-map.1 +4 -4
- data/vendor/depot_tools/man/man1/git-mark-merge-base.1 +4 -4
- data/vendor/depot_tools/man/man1/git-nav-downstream.1 +4 -4
- data/vendor/depot_tools/man/man1/git-nav-upstream.1 +4 -4
- data/vendor/depot_tools/man/man1/git-new-branch.1 +4 -4
- data/vendor/depot_tools/man/man1/git-rebase-update.1 +4 -4
- data/vendor/depot_tools/man/man1/git-rename-branch.1 +4 -4
- data/vendor/depot_tools/man/man1/git-reparent-branch.1 +4 -4
- data/vendor/depot_tools/man/man1/git-retry.1 +5 -5
- data/vendor/depot_tools/man/man1/git-squash-branch.1 +5 -5
- data/vendor/depot_tools/man/man1/git-thaw.1 +4 -4
- data/vendor/depot_tools/man/man1/git-upstream-diff.1 +5 -5
- data/vendor/depot_tools/man/man7/depot_tools.7 +5 -10
- data/vendor/depot_tools/man/man7/depot_tools_tutorial.7 +4 -4
- data/vendor/depot_tools/man/src/depot_tools.txt +1 -1
- data/vendor/depot_tools/man/src/depot_tools_tutorial.txt +7 -7
- data/vendor/depot_tools/man/src/filter_demo_output.py +2 -2
- data/vendor/depot_tools/man/src/git-footers.demo.1.sh +1 -1
- data/vendor/depot_tools/man/src/git-retry.txt +1 -1
- data/vendor/depot_tools/man/src/git-squash-branch.txt +2 -2
- data/vendor/depot_tools/man/src/git-upstream-diff.txt +1 -1
- data/vendor/depot_tools/my_activity.py +6 -3
- data/vendor/depot_tools/my_reviews.py +1 -1
- data/vendor/depot_tools/ninja +2 -2
- data/vendor/depot_tools/ninja-linux32 +0 -0
- data/vendor/depot_tools/ninja-linux64 +0 -0
- data/vendor/depot_tools/ninja-mac +0 -0
- data/vendor/depot_tools/ninja.exe +0 -0
- data/vendor/depot_tools/owners.py +14 -3
- data/vendor/depot_tools/presubmit_canned_checks.py +46 -67
- data/vendor/depot_tools/presubmit_support.py +109 -371
- data/vendor/depot_tools/pylintrc +83 -56
- data/vendor/depot_tools/recipe_modules/OWNERS +1 -0
- data/vendor/depot_tools/recipe_modules/bot_update/__init__.py +18 -9
- data/vendor/depot_tools/recipe_modules/bot_update/api.py +56 -55
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic.json +3 -7
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_output_manifest.json +3 -7
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_with_branch_heads.json +3 -7
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/buildbot.json +52 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/clobber.json +19 -10
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/gerrit_no_rebase_patch_ref.json +19 -10
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/gerrit_no_reset.json +19 -10
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/no_shallow.json +19 -10
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/reset_root_solution_revision.json +19 -10
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange.json +3 -7
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange_oauth2.json +2 -54
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange_oauth2_buildbot.json +56 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/{forced.json → trychange_oauth2_json.json} +6 -9
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange_oauth2_json_win.json +54 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob.json +9 -9
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail.json +9 -9
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch.json +9 -9
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch_download.json +9 -9
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle.json +20 -10
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle_deprecated.json +59 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8.json +9 -9
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8_head_by_default.json +20 -10
- data/vendor/depot_tools/recipe_modules/bot_update/example.py +45 -63
- data/vendor/depot_tools/recipe_modules/bot_update/resources/bot_update.py +210 -807
- data/vendor/depot_tools/recipe_modules/bot_update/test_api.py +34 -45
- data/vendor/depot_tools/recipe_modules/cipd/api.py +59 -84
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/basic.json +71 -117
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/describe-failed.json +14 -60
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/describe-many-instances.json +71 -117
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/mac64.json +71 -117
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/win64.json +71 -117
- data/vendor/depot_tools/recipe_modules/cipd/example.py +2 -12
- data/vendor/depot_tools/recipe_modules/cipd/test_api.py +0 -9
- data/vendor/depot_tools/recipe_modules/depot_tools/api.py +6 -0
- data/vendor/depot_tools/recipe_modules/depot_tools/example.expected/basic.json +7 -0
- data/vendor/depot_tools/recipe_modules/depot_tools/example.expected/win.json +7 -0
- data/vendor/depot_tools/recipe_modules/depot_tools/example.py +3 -0
- data/vendor/depot_tools/recipe_modules/gclient/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/gclient/api.py +9 -22
- data/vendor/depot_tools/recipe_modules/gclient/config.py +18 -5
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/basic.json +14 -14
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/buildbot.json +211 -0
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/revision.json +16 -14
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/tryserver.json +16 -14
- data/vendor/depot_tools/recipe_modules/gclient/example.py +13 -11
- data/vendor/depot_tools/recipe_modules/gerrit/__init__.py +6 -0
- data/vendor/depot_tools/recipe_modules/gerrit/api.py +63 -0
- data/vendor/depot_tools/recipe_modules/gerrit/example.expected/basic.json +64 -0
- data/vendor/depot_tools/recipe_modules/gerrit/example.py +35 -0
- data/vendor/depot_tools/recipe_modules/gerrit/test_api.py +24 -0
- data/vendor/depot_tools/recipe_modules/git/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/git/api.py +155 -142
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_branch.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_file_name.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_hash.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_ref.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_submodule_update_force.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/can_fail_build.json +13 -13
- data/vendor/depot_tools/recipe_modules/git/example.expected/cannot_fail_build.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/cat-file_test.json +45 -19
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_delta.json +45 -19
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_failed.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output_fails_build.json +8 -8
- data/vendor/depot_tools/recipe_modules/git/example.expected/curl_trace_file.json +44 -18
- data/vendor/depot_tools/recipe_modules/git/example.expected/git-cache-checkout.json +48 -22
- data/vendor/depot_tools/recipe_modules/git/example.expected/platform_win.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/rebase_failed.json +42 -16
- data/vendor/depot_tools/recipe_modules/git/example.expected/remote_not_origin.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/set_got_revision.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.py +9 -3
- data/vendor/depot_tools/recipe_modules/git_cl/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/git_cl/api.py +8 -8
- data/vendor/depot_tools/recipe_modules/git_cl/example.py +1 -1
- data/vendor/depot_tools/recipe_modules/gsutil/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/gsutil/api.py +196 -0
- data/vendor/depot_tools/recipe_modules/gsutil/example.expected/basic.json +186 -0
- data/vendor/depot_tools/recipe_modules/gsutil/example.py +77 -0
- data/vendor/depot_tools/recipe_modules/gsutil/resources/gsutil_smart_retry.py +69 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/__init__.py +3 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/api.py +20 -3
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/basic.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_linux.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_mac.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_win.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_linux.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_mac.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_win.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.py +6 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/path_config.py +4 -6
- data/vendor/depot_tools/recipe_modules/rietveld/__init__.py +5 -0
- data/vendor/depot_tools/recipe_modules/rietveld/api.py +12 -9
- data/vendor/depot_tools/recipe_modules/rietveld/example.expected/basic.json +2 -24
- data/vendor/depot_tools/recipe_modules/rietveld/example.expected/buildbot.json +30 -0
- data/vendor/depot_tools/recipe_modules/rietveld/example.py +12 -6
- data/vendor/depot_tools/recipe_modules/tryserver/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/tryserver/api.py +46 -70
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/set_failure_hash_with_no_steps.json +8 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/{with_svn_patch.json → with_gerrit_patch.json} +1 -31
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_gerrit_patch_deprecated.json +39 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_git_patch.json +2 -2
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_git_patch_luci.json +8 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_rietveld_patch.json +3 -3
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_rietveld_patch_new.json +3 -3
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch.json +1 -1
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch_new.json +1 -1
- data/vendor/depot_tools/recipe_modules/tryserver/example.py +35 -5
- data/vendor/depot_tools/recipes.py +52 -28
- data/vendor/depot_tools/repo +216 -69
- data/vendor/depot_tools/rietveld.py +20 -15
- data/vendor/depot_tools/roll_dep.py +1 -1
- data/vendor/depot_tools/scm.py +11 -826
- data/vendor/depot_tools/subprocess2.py +5 -5
- data/vendor/depot_tools/third_party/cq_client/README.depot_tools.md +2 -0
- data/vendor/depot_tools/third_party/cq_client/README.md +5 -1
- data/vendor/depot_tools/third_party/cq_client/cq.pb.go +183 -104
- data/vendor/depot_tools/third_party/cq_client/cq.proto +43 -27
- data/vendor/depot_tools/third_party/cq_client/cq_pb2.py +95 -29
- data/vendor/depot_tools/third_party/cq_client/testdata/cq_both.cfg +67 -0
- data/vendor/depot_tools/third_party/cq_client/testdata/cq_gerrit.cfg +1 -2
- data/vendor/depot_tools/third_party/cq_client/testdata/cq_rietveld.cfg +0 -3
- data/vendor/depot_tools/third_party/upload.py +44 -24
- data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +0 -5
- metadata +38 -93
- data/patches/0004-Reinterpret-thread-hash-for-FreeBSD-too.patch +0 -25
- data/vendor/depot_tools/git-auto-svn +0 -6
- data/vendor/depot_tools/git_auto_svn.py +0 -122
- data/vendor/depot_tools/man/html/git-auto-svn.html +0 -837
- data/vendor/depot_tools/man/man1/git-auto-svn.1 +0 -113
- data/vendor/depot_tools/man/src/_git-auto-svn_desc.helper.txt +0 -1
- data/vendor/depot_tools/man/src/git-auto-svn.txt +0 -69
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/off.json +0 -43
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/install-failed.json +0 -31
- data/vendor/depot_tools/recipe_modules/cipd/resources/bootstrap.py +0 -218
- data/vendor/depot_tools/recipe_modules/tryserver/test_api.py +0 -7
- data/vendor/depot_tools/third_party/gsutil/CHECKSUM +0 -1
- data/vendor/depot_tools/third_party/gsutil/COPYING +0 -202
- data/vendor/depot_tools/third_party/gsutil/LICENSE.third_party +0 -295
- data/vendor/depot_tools/third_party/gsutil/MANIFEST.in +0 -5
- data/vendor/depot_tools/third_party/gsutil/README +0 -38
- data/vendor/depot_tools/third_party/gsutil/README.chromium +0 -25
- data/vendor/depot_tools/third_party/gsutil/README.pkg +0 -49
- data/vendor/depot_tools/third_party/gsutil/ReleaseNotes.txt +0 -825
- data/vendor/depot_tools/third_party/gsutil/VERSION +0 -1
- data/vendor/depot_tools/third_party/gsutil/gslib/README +0 -5
- data/vendor/depot_tools/third_party/gsutil/gslib/__init__.py +0 -22
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/__init__.py +0 -15
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/acls.py +0 -234
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/anon.py +0 -57
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/command_opts.py +0 -116
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/dev.py +0 -139
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/metadata.py +0 -186
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/naming.py +0 -173
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/prod.py +0 -160
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/projects.py +0 -130
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/subdirs.py +0 -110
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/support.py +0 -86
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/versioning.py +0 -242
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/wildcards.py +0 -170
- data/vendor/depot_tools/third_party/gsutil/gslib/bucket_listing_ref.py +0 -175
- data/vendor/depot_tools/third_party/gsutil/gslib/command.py +0 -725
- data/vendor/depot_tools/third_party/gsutil/gslib/command_runner.py +0 -102
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/__init__.py +0 -15
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/cat.py +0 -131
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/chacl.py +0 -523
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/config.py +0 -662
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/cp.py +0 -1819
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/disablelogging.py +0 -101
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/enablelogging.py +0 -149
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/getacl.py +0 -82
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/getcors.py +0 -121
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/getdefacl.py +0 -86
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/getlogging.py +0 -137
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/getversioning.py +0 -116
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/getwebcfg.py +0 -122
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/help.py +0 -218
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/ls.py +0 -578
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/mb.py +0 -172
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/mv.py +0 -159
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/perfdiag.py +0 -903
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/rb.py +0 -113
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/rm.py +0 -237
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/setacl.py +0 -138
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/setcors.py +0 -145
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/setdefacl.py +0 -105
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/setmeta.py +0 -420
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/setversioning.py +0 -114
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/setwebcfg.py +0 -190
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/update.py +0 -305
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/version.py +0 -150
- data/vendor/depot_tools/third_party/gsutil/gslib/exception.py +0 -76
- data/vendor/depot_tools/third_party/gsutil/gslib/help_provider.py +0 -81
- data/vendor/depot_tools/third_party/gsutil/gslib/name_expansion.py +0 -550
- data/vendor/depot_tools/third_party/gsutil/gslib/no_op_auth_plugin.py +0 -30
- data/vendor/depot_tools/third_party/gsutil/gslib/plurality_checkable_iterator.py +0 -56
- data/vendor/depot_tools/third_party/gsutil/gslib/project_id.py +0 -67
- data/vendor/depot_tools/third_party/gsutil/gslib/storage_uri_builder.py +0 -56
- data/vendor/depot_tools/third_party/gsutil/gslib/thread_pool.py +0 -79
- data/vendor/depot_tools/third_party/gsutil/gslib/util.py +0 -167
- data/vendor/depot_tools/third_party/gsutil/gslib/wildcard_iterator.py +0 -498
- data/vendor/depot_tools/third_party/gsutil/gsutil +0 -384
- data/vendor/depot_tools/third_party/gsutil/gsutil.spec.in +0 -75
- data/vendor/depot_tools/third_party/gsutil/oauth2_plugin/__init__.py +0 -22
- data/vendor/depot_tools/third_party/gsutil/oauth2_plugin/oauth2_client.py +0 -630
- data/vendor/depot_tools/third_party/gsutil/oauth2_plugin/oauth2_client_test.py +0 -374
- data/vendor/depot_tools/third_party/gsutil/oauth2_plugin/oauth2_helper.py +0 -103
- data/vendor/depot_tools/third_party/gsutil/oauth2_plugin/oauth2_plugin.py +0 -24
- data/vendor/depot_tools/third_party/gsutil/pkg_util.py +0 -60
- data/vendor/depot_tools/third_party/gsutil/plugins/__init__.py +0 -0
- data/vendor/depot_tools/third_party/gsutil/plugins/sso_auth.py +0 -105
@@ -1,139 +0,0 @@
|
|
1
|
-
# Copyright 2012 Google Inc. All Rights Reserved.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
from gslib.help_provider import HELP_NAME
|
16
|
-
from gslib.help_provider import HELP_NAME_ALIASES
|
17
|
-
from gslib.help_provider import HELP_ONE_LINE_SUMMARY
|
18
|
-
from gslib.help_provider import HelpProvider
|
19
|
-
from gslib.help_provider import HELP_TEXT
|
20
|
-
from gslib.help_provider import HelpType
|
21
|
-
from gslib.help_provider import HELP_TYPE
|
22
|
-
|
23
|
-
_detailed_help_text = ("""
|
24
|
-
<B>OVERVIEW</B>
|
25
|
-
We're open to incorporating gsutil code changes authored by users. Here
|
26
|
-
are some guidelines:
|
27
|
-
|
28
|
-
1. Before we can accept code submissions, we have to jump a couple of legal
|
29
|
-
hurdles. Please fill out either the individual or corporate Contributor
|
30
|
-
License Agreement:
|
31
|
-
- If you are an individual writing original source code and you're
|
32
|
-
sure you own the intellectual property,
|
33
|
-
then you'll need to sign an individual CLA
|
34
|
-
(http://code.google.com/legal/individual-cla-v1.0.html).
|
35
|
-
- If you work for a company that wants to allow you to contribute your
|
36
|
-
work to gsutil, then you'll need to sign a corporate CLA
|
37
|
-
(http://code.google.com/legal/corporate-cla-v1.0.html)
|
38
|
-
|
39
|
-
Follow either of the two links above to access the appropriate CLA and
|
40
|
-
instructions for how to sign and return it. Once we receive it, we'll
|
41
|
-
add you to the official list of contributors and be able to accept
|
42
|
-
your patches.
|
43
|
-
|
44
|
-
2. If you found a bug or have an idea for a feature enhancement, we suggest
|
45
|
-
you check http://code.google.com/p/gsutil/issues/list to see if it has
|
46
|
-
already been reported by another user. From there you can also add yourself
|
47
|
-
to the Cc list for an issue, so you will find out about any developments.
|
48
|
-
|
49
|
-
3. It's usually worthwhile to send email to gs-team@google.com about your
|
50
|
-
idea before sending actual code. Often we can discuss the idea and help
|
51
|
-
propose things that could save you later revision work.
|
52
|
-
|
53
|
-
4. We tend to avoid adding command line options that are of use to only
|
54
|
-
a very small fraction of users, especially if there's some other way
|
55
|
-
to accommodate such needs. Adding such options complicates the code and
|
56
|
-
also adds overhead to users having to read through an "alphabet soup"
|
57
|
-
list of option documentation.
|
58
|
-
|
59
|
-
5. While gsutil has a number of features specific to Google Cloud Storage,
|
60
|
-
it can also be used with other cloud storage providers. We're open to
|
61
|
-
including changes for making gsutil support features specific to other
|
62
|
-
providers, as long as those changes don't make gsutil work worse for Google
|
63
|
-
Cloud Storage. If you do make such changes we recommend including someone
|
64
|
-
with knowledge of the specific provider as a code reviewer (see below).
|
65
|
-
|
66
|
-
6. You can check out the gsutil code from svn - see
|
67
|
-
http://code.google.com/p/gsutil/source/checkout. Then change directories
|
68
|
-
into gsutil/src, and check out the boto code from github:
|
69
|
-
|
70
|
-
git clone git://github.com/boto/boto.git
|
71
|
-
|
72
|
-
7. Please make sure to run all tests against your modified code. To
|
73
|
-
do this, change directories into the gsutil top-level directory and run:
|
74
|
-
|
75
|
-
./gsutil test
|
76
|
-
|
77
|
-
The above tests take a long time to run because they send many requests to
|
78
|
-
the production service. The gsutil test command has a -u argument that will
|
79
|
-
only run unit tests. These run quickly, as they are executed with an
|
80
|
-
in-memory mock storage service implementation. To run only the unit tests,
|
81
|
-
run:
|
82
|
-
|
83
|
-
./gsutil test -u
|
84
|
-
|
85
|
-
If you made mods to boto please run the boto tests. For these tests you
|
86
|
-
need to use HMAC credentials (from gsutil config -a), because the current
|
87
|
-
boto test suite doesn't import the OAuth2 handler. You'll also need to
|
88
|
-
install some python modules: change directories into the top-level gsutil
|
89
|
-
directory and run:
|
90
|
-
|
91
|
-
pip install -qr boto/requirements.txt
|
92
|
-
|
93
|
-
(You probably need to run this commad using sudo.)
|
94
|
-
Make sure each of the individual installations succeeded. If they don't
|
95
|
-
you may need to run individual ones again, e.g.,
|
96
|
-
|
97
|
-
pip install unittest2
|
98
|
-
|
99
|
-
Then ensure your .boto file has HMAC credentials defined (the boto tests
|
100
|
-
don't load the OAUTH2 plugin), and then change directories into boto/tests
|
101
|
-
and run:
|
102
|
-
|
103
|
-
python test.py unit
|
104
|
-
python test.py -t s3 -t gs -t ssl
|
105
|
-
|
106
|
-
8. Please consider contributing test code for your change, especially if the
|
107
|
-
change impacts any of the core gsutil code (like the gsutil cp command).
|
108
|
-
|
109
|
-
9. When it's time to send us code, please use the Rietveld code review tool
|
110
|
-
rather than simply sending us a code patch. Do this as follows:
|
111
|
-
- check out the gsutil code from at
|
112
|
-
http://code.google.com/p/gsutil/source/checkout and apply your changes
|
113
|
-
in the checked out directory.
|
114
|
-
- download the "upload.py" script from
|
115
|
-
http://code.google.com/p/rietveld/wiki/UploadPyUsage
|
116
|
-
- run upload.py from the above gsutil svn directory.
|
117
|
-
- click the codereview.appspot.com link it generates, click "Edit Issue",
|
118
|
-
and add mfschwartz@google.com as a reviewer, and Cc gs-team@google.com.
|
119
|
-
- click Publish+Mail Comments.
|
120
|
-
""")
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
class CommandOptions(HelpProvider):
|
125
|
-
"""Additional help about Access Control Lists."""
|
126
|
-
|
127
|
-
help_spec = {
|
128
|
-
# Name of command or auxiliary help info for which this help applies.
|
129
|
-
HELP_NAME : 'dev',
|
130
|
-
# List of help name aliases.
|
131
|
-
HELP_NAME_ALIASES : ['development', 'developer', 'code', 'mods',
|
132
|
-
'software'],
|
133
|
-
# Type of help:
|
134
|
-
HELP_TYPE : HelpType.ADDITIONAL_HELP,
|
135
|
-
# One line summary of this help.
|
136
|
-
HELP_ONE_LINE_SUMMARY : 'Making modifications to gsutil',
|
137
|
-
# The full help text.
|
138
|
-
HELP_TEXT : _detailed_help_text,
|
139
|
-
}
|
@@ -1,186 +0,0 @@
|
|
1
|
-
# Copyright 2012 Google Inc. All Rights Reserved.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
from gslib.help_provider import HELP_NAME
|
16
|
-
from gslib.help_provider import HELP_NAME_ALIASES
|
17
|
-
from gslib.help_provider import HELP_ONE_LINE_SUMMARY
|
18
|
-
from gslib.help_provider import HelpProvider
|
19
|
-
from gslib.help_provider import HELP_TEXT
|
20
|
-
from gslib.help_provider import HelpType
|
21
|
-
from gslib.help_provider import HELP_TYPE
|
22
|
-
|
23
|
-
_detailed_help_text = ("""
|
24
|
-
<B>OVERVIEW OF METADATA</B>
|
25
|
-
Objects can have associated metadata, which control aspects of how
|
26
|
-
GET requests are handled, including Content-Type, Cache-Control,
|
27
|
-
Content-Disposition, and Content-Encoding (discussed in more detail in
|
28
|
-
the subsections below). In addition, you can set custom metadata that
|
29
|
-
can be used by applications (e.g., tagging that particular objects possess
|
30
|
-
some property).
|
31
|
-
|
32
|
-
There are two ways to set metadata on objects:
|
33
|
-
|
34
|
-
- at upload time you can specify one or more headers to associate with
|
35
|
-
objects, using the gsutil -h option. For example, the following command
|
36
|
-
would cause gsutil to set the Content-Type and Cache-Control for each
|
37
|
-
of the files being uploaded:
|
38
|
-
|
39
|
-
gsutil -h "Content-Type:text/html" -h "Cache-Control:public, max-age=3600" cp -r images gs://bucket/images
|
40
|
-
|
41
|
-
Note that -h is an option on the gsutil command, not the cp sub-command.
|
42
|
-
|
43
|
-
- You can set or remove metadata fields from already uploaded objects using
|
44
|
-
the gsutil setmeta command. See "gsutil help setmeta".
|
45
|
-
|
46
|
-
More details about specific pieces of metadata are discussed below.
|
47
|
-
|
48
|
-
|
49
|
-
<B>CONTENT TYPE</B>
|
50
|
-
The most commonly set metadata is Content-Type (also known as MIME type),
|
51
|
-
which allows browsers to render the object properly.
|
52
|
-
gsutil sets the Content-Type
|
53
|
-
automatically at upload time, based on each filename extension. For
|
54
|
-
example, uploading files with names ending in .txt will set Content-Type
|
55
|
-
to text/plain. If you're running gsutil on Linux or MacOS and would prefer
|
56
|
-
to have content type set based on naming plus content examination, see the
|
57
|
-
use_magicfile configuration variable in the gsutil/boto configuration file
|
58
|
-
(See also "gsutil help config"). In general, using use_magicfile is more
|
59
|
-
robust and configurable, but is not available on Windows.
|
60
|
-
|
61
|
-
If you specify a -h header when uploading content (like the example gsutil
|
62
|
-
command given in the previous section), it overrides the Content-Type that
|
63
|
-
would have been set based on filename extension or content. This can be
|
64
|
-
useful if the Content-Type detection algorithm doesn't work as desired
|
65
|
-
for some of your files.
|
66
|
-
|
67
|
-
You can also completely suppress content type detection in gsutil, by
|
68
|
-
specifying an empty string on the Content-Type header:
|
69
|
-
|
70
|
-
gsutil -h 'Content-Type:' cp -r images gs://bucket/images
|
71
|
-
|
72
|
-
In this case, the Google Cloud Storage service will attempt to detect
|
73
|
-
the content type. In general this approach will work better than using
|
74
|
-
filename extension-based content detection in gsutil, because the list of
|
75
|
-
filename extensions is kept more current in the server-side content detection
|
76
|
-
system than in the Python library upon which gsutil content type detection
|
77
|
-
depends. (For example, at the time of writing this, the filename extension
|
78
|
-
".webp" was recognized by the server-side content detection system, but
|
79
|
-
not by gsutil.)
|
80
|
-
|
81
|
-
|
82
|
-
<B>CACHE-CONTROL</B>
|
83
|
-
Another commonly set piece of metadata is Cache-Control, which allows
|
84
|
-
you to control whether and for how long browser and Internet caches are
|
85
|
-
allowed to cache your objects. Cache-Control only applies to objects with
|
86
|
-
a public-read ACL. Non-public data are not cacheable.
|
87
|
-
|
88
|
-
Here's an example of uploading an object set to allow caching:
|
89
|
-
|
90
|
-
gsutil -h "Cache-Control:public,max-age=3600" cp -a public-read -r html gs://bucket/html
|
91
|
-
|
92
|
-
This command would upload all files in the html directory (and subdirectories)
|
93
|
-
and make them publicly readable and cacheable, with cache expiration of
|
94
|
-
one hour.
|
95
|
-
|
96
|
-
Note that if you allow caching, at download time you may see older versions
|
97
|
-
of objects after uploading a newer replacement object. Note also that because
|
98
|
-
objects can be cached at various places on the Internet there is no way to
|
99
|
-
force a cached object to expire globally (unlike the way you can force your
|
100
|
-
browser to refresh its cache).
|
101
|
-
|
102
|
-
|
103
|
-
<B>CONTENT-ENCODING</B>
|
104
|
-
You could specify Content-Encoding to indicate that an object is compressed,
|
105
|
-
using a command like:
|
106
|
-
|
107
|
-
gsutil -h "Content-Encoding:gzip" cp *.gz gs://bucket/compressed
|
108
|
-
|
109
|
-
Note that Google Cloud Storage does not compress or decompress objects. If
|
110
|
-
you use this header to specify a compression type or compression algorithm
|
111
|
-
(for example, deflate), Google Cloud Storage preserves the header but does
|
112
|
-
not compress or decompress the object. Instead, you need to ensure that
|
113
|
-
the files have been compressed using the specified Content-Encoding before
|
114
|
-
using gsutil to upload them.
|
115
|
-
|
116
|
-
For compressible content, using Content-Encoding:gzip saves network and
|
117
|
-
storage costs, and improves content serving performance (since most browsers
|
118
|
-
are able to decompress objects served this way).
|
119
|
-
|
120
|
-
Note also that gsutil provides an easy way to cause content to be compressed
|
121
|
-
and stored with Content-Encoding:gzip: see the -z option in "gsutil help cp".
|
122
|
-
|
123
|
-
|
124
|
-
<B>CONTENT-DISPOSITION</B>
|
125
|
-
You can set Content-Disposition on your objects, to specify presentation
|
126
|
-
information about the data being transmitted. Here's an example:
|
127
|
-
|
128
|
-
gsutil -h 'Content-Disposition:attachment; filename=filename.ext' \\
|
129
|
-
cp -r attachments gs://bucket/attachments
|
130
|
-
|
131
|
-
Setting the Content-Disposition allows you to control presentation style
|
132
|
-
of the content, for example determining whether an attachment should be
|
133
|
-
automatically displayed vs should require some form of action from the user to
|
134
|
-
open it. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1
|
135
|
-
for more details about the meaning of Content-Disposition.
|
136
|
-
|
137
|
-
|
138
|
-
<B>CUSTOM METADATA</B>
|
139
|
-
You can add your own custom metadata (e.g,. for use by your application)
|
140
|
-
to an object by setting a header that starts with "x-goog-meta", for example:
|
141
|
-
|
142
|
-
gsutil -h x-goog-meta-reviewer:jane cp mycode.java gs://bucket/reviews
|
143
|
-
|
144
|
-
You can add multiple differently named custom metadata fields to each object.
|
145
|
-
|
146
|
-
|
147
|
-
<B>SETTABLE FIELDS; FIELD VALUES</B>
|
148
|
-
You can't set some metadata fields, such as ETag and Content-Length. The
|
149
|
-
fields you can set are:
|
150
|
-
- Cache-Control
|
151
|
-
- Content-Disposition
|
152
|
-
- Content-Encoding
|
153
|
-
- Content-Language
|
154
|
-
- Content-MD5
|
155
|
-
- Content-Type
|
156
|
-
- Any field starting with X-GOOG-META- (i.e., custom metadata).
|
157
|
-
|
158
|
-
Header names are case-insensitive.
|
159
|
-
|
160
|
-
X-GOOG-META- fields can have data set to arbitrary Unicode values. All
|
161
|
-
other fields must have ASCII values.
|
162
|
-
|
163
|
-
|
164
|
-
<B>VIEWING CURRENTLY SET METADATA</B>
|
165
|
-
You can see what metadata is currently set on an object by using:
|
166
|
-
|
167
|
-
gsutil ls -L gs://the_bucket/the_object
|
168
|
-
""")
|
169
|
-
|
170
|
-
|
171
|
-
class CommandOptions(HelpProvider):
|
172
|
-
"""Additional help about object metadata."""
|
173
|
-
|
174
|
-
help_spec = {
|
175
|
-
# Name of command or auxiliary help info for which this help applies.
|
176
|
-
HELP_NAME : 'metadata',
|
177
|
-
# List of help name aliases.
|
178
|
-
HELP_NAME_ALIASES : ['cache-control', 'caching', 'content type',
|
179
|
-
'mime type', 'mime', 'type'],
|
180
|
-
# Type of help:
|
181
|
-
HELP_TYPE : HelpType.ADDITIONAL_HELP,
|
182
|
-
# One line summary of this help.
|
183
|
-
HELP_ONE_LINE_SUMMARY : 'Working with object metadata',
|
184
|
-
# The full help text.
|
185
|
-
HELP_TEXT : _detailed_help_text,
|
186
|
-
}
|
@@ -1,173 +0,0 @@
|
|
1
|
-
# Copyright 2012 Google Inc. All Rights Reserved.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
from gslib.help_provider import HELP_NAME
|
16
|
-
from gslib.help_provider import HELP_NAME_ALIASES
|
17
|
-
from gslib.help_provider import HELP_ONE_LINE_SUMMARY
|
18
|
-
from gslib.help_provider import HelpProvider
|
19
|
-
from gslib.help_provider import HELP_TEXT
|
20
|
-
from gslib.help_provider import HelpType
|
21
|
-
from gslib.help_provider import HELP_TYPE
|
22
|
-
|
23
|
-
_detailed_help_text = ("""
|
24
|
-
<B>BUCKET NAME REQUIREMENTS</B>
|
25
|
-
Google Cloud Storage has a single namespace, so you will not be allowed
|
26
|
-
to create a bucket with a name already in use by another user. You can,
|
27
|
-
however, carve out parts of the bucket name space corresponding to your
|
28
|
-
company's domain name (see "DOMAIN NAMED BUCKETS").
|
29
|
-
|
30
|
-
Bucket names must conform to standard DNS naming conventions. This is
|
31
|
-
because a bucket name can appear in a DNS record as part of a CNAME
|
32
|
-
redirect. In addition to meeting DNS naming requirements, Google Cloud
|
33
|
-
Storage imposes other requirements on bucket naming. At a minimum, your
|
34
|
-
bucket names must meet the following requirements:
|
35
|
-
|
36
|
-
- Bucket names must contain only lowercase letters, numbers, dashes (-), and
|
37
|
-
dots (.).
|
38
|
-
|
39
|
-
- Bucket names must start and end with a number or letter.
|
40
|
-
|
41
|
-
- Bucket names must contain 3 to 63 characters. Names containing dots can
|
42
|
-
contain up to 222 characters, but each dot-separated component can be
|
43
|
-
no longer than 63 characters.
|
44
|
-
|
45
|
-
- Bucket names cannot be represented as an IPv4 address in dotted-decimal
|
46
|
-
notation (for example, 192.168.5.4).
|
47
|
-
|
48
|
-
- Bucket names cannot begin with the "goog" prefix.
|
49
|
-
|
50
|
-
- For DNS compliance, you should not have a period adjacent to another
|
51
|
-
period or dash. For example, ".." or "-." or ".-" are not acceptable.
|
52
|
-
|
53
|
-
|
54
|
-
<B>OBJECT NAME REQUIREMENTS</B>
|
55
|
-
Object names can contain any sequence of Unicode characters, of length 1-1024
|
56
|
-
bytes when UTF-8 encoded. Object names must not contain CarriageReturn,
|
57
|
-
CarriageReturnLineFeed, or the XML-disallowed surrogate blocks (xFFFE
|
58
|
-
or xFFFF).
|
59
|
-
|
60
|
-
We highly recommend that you avoid using control characters that are illegal
|
61
|
-
in XML 1.0 in your object names. These characters will cause XML listing
|
62
|
-
issues when you try to list your objects.
|
63
|
-
|
64
|
-
|
65
|
-
<B>DOMAIN NAMED BUCKETS</B>
|
66
|
-
You can carve out parts of the Google Cloud Storage bucket name space
|
67
|
-
by creating buckets with domain names (like "example.com").
|
68
|
-
|
69
|
-
Before you can create a bucket name containing one or more '.' characters,
|
70
|
-
the following rules apply:
|
71
|
-
- If the name is a syntactically valid DNS name ending with a
|
72
|
-
currently-recognized top-level domain (such as .com), you will be required
|
73
|
-
to verify domain ownership.
|
74
|
-
- Otherwise you will be disallowed from creating the bucket.
|
75
|
-
|
76
|
-
If your project needs to use a domain-named bucket, you need to have
|
77
|
-
a team member both verify the domain and create the bucket. This is
|
78
|
-
because Google Cloud Storage checks for domain ownership against the
|
79
|
-
user who creates the bucket, so the user who creates the bucket must
|
80
|
-
also be verified as an owner or manager of the domain.
|
81
|
-
|
82
|
-
To verify as the owner or manager of a domain, use the Google Webmaster
|
83
|
-
Tools verification process. The Webmaster Tools verification process
|
84
|
-
provides three methods for verifying an owner or manager of a domain:
|
85
|
-
|
86
|
-
1. Adding a special Meta tag to a site's homepage.
|
87
|
-
2. Uploading a special HTML file to a site.
|
88
|
-
3. Adding a DNS TXT record to a domain's DNS configuration.
|
89
|
-
|
90
|
-
Meta tag verification and HTML file verification are easier to perform and
|
91
|
-
are probably adequate for most situations. DNS TXT record verification is
|
92
|
-
a domain-based verification method that is useful in situations where a
|
93
|
-
site wants to tightly control who can create domain-named buckets. Once
|
94
|
-
a site creates a DNS TXT record to verify ownership of a domain, it takes
|
95
|
-
precedence over meta tag and HTML file verification. For example, you might
|
96
|
-
have two IT staff members who are responsible for managing your site, called
|
97
|
-
"example.com." If they complete the DNS TXT record verification, only they
|
98
|
-
would be able to create buckets called "example.com", "reports.example.com",
|
99
|
-
"downloads.example.com", and other domain-named buckets.
|
100
|
-
|
101
|
-
Site-Based Verification
|
102
|
-
|
103
|
-
If you have administrative control over the HTML files that make up a site,
|
104
|
-
you can use one of the site-based verification methods to verify that you
|
105
|
-
control or own a site. When you do this, Google Cloud Storage lets you
|
106
|
-
create buckets representing the verified site and any sub-sites - provided
|
107
|
-
nobody has used the DNS TXT record method to verify domain ownership of a
|
108
|
-
parent of the site.
|
109
|
-
|
110
|
-
As an example, assume that nobody has used the DNS TXT record method to verify
|
111
|
-
ownership of the following domains: abc.def.example.com, def.example.com,
|
112
|
-
and example.com. In this case, Google Cloud Storage lets you create a bucket
|
113
|
-
named abc.def.example.com if you verify that you own or control any of the
|
114
|
-
following sites:
|
115
|
-
|
116
|
-
http://abc.def.example.com
|
117
|
-
http://def.example.com
|
118
|
-
http://example.com
|
119
|
-
|
120
|
-
Domain-Based Verification
|
121
|
-
|
122
|
-
If you have administrative control over a domain's DNS configuration, you can
|
123
|
-
use the DNS TXT record verification method to verify that you own or control a
|
124
|
-
domain. When you use the domain-based verification method to verify that you
|
125
|
-
own or control a domain, Google Cloud Storage lets you create buckets that
|
126
|
-
represent any subdomain under the verified domain. Furthermore, Google Cloud
|
127
|
-
Storage prevents anybody else from creating buckets under that domain unless
|
128
|
-
you add their name to the list of verified domain owners or they have verified
|
129
|
-
their domain ownership by using the DNS TXT record verification method.
|
130
|
-
|
131
|
-
For example, if you use the DNS TXT record verification method to verify your
|
132
|
-
ownership of the domain example.com, Google Cloud Storage will let you create
|
133
|
-
bucket names that represent any subdomain under the example.com domain, such
|
134
|
-
as abc.def.example.com, example.com/music/jazz, or abc.example.com/music/jazz.
|
135
|
-
|
136
|
-
Using the DNS TXT record method to verify domain ownership supersedes
|
137
|
-
verification by site-based verification methods. For example, if you
|
138
|
-
use the Meta tag method or HTML file method to verify domain ownership
|
139
|
-
of http://example.com, but someone else uses the DNS TXT record method
|
140
|
-
to verify ownership of the example.com domain, Google Cloud Storage will
|
141
|
-
not allow you to create a bucket named example.com. To create the bucket
|
142
|
-
example.com, the domain owner who used the DNS TXT method to verify domain
|
143
|
-
ownership must add you to the list of verified domain owners for example.com.
|
144
|
-
|
145
|
-
The DNS TXT record verification method is particularly useful if you manage
|
146
|
-
a domain for a large organization that has numerous subdomains because it
|
147
|
-
lets you control who can create buckets representing those domain names.
|
148
|
-
|
149
|
-
Note: If you use the DNS TXT record verification method to verify ownership of
|
150
|
-
a domain, you cannot create a CNAME record for that domain. RFC 1034 disallows
|
151
|
-
inclusion of any other resource records if there is a CNAME resource record
|
152
|
-
present. If you want to create a CNAME resource record for a domain, you must
|
153
|
-
use the Meta tag verification method or the HTML file verification method.
|
154
|
-
|
155
|
-
|
156
|
-
""")
|
157
|
-
|
158
|
-
|
159
|
-
class CommandOptions(HelpProvider):
|
160
|
-
"""Additional help about gsutil object and bucket naming."""
|
161
|
-
|
162
|
-
help_spec = {
|
163
|
-
# Name of command or auxiliary help info for which this help applies.
|
164
|
-
HELP_NAME : 'naming',
|
165
|
-
# List of help name aliases.
|
166
|
-
HELP_NAME_ALIASES : ['domain', 'limits', 'name', 'names'],
|
167
|
-
# Type of help:
|
168
|
-
HELP_TYPE : HelpType.ADDITIONAL_HELP,
|
169
|
-
# One line summary of this help.
|
170
|
-
HELP_ONE_LINE_SUMMARY : 'Object and bucket naming',
|
171
|
-
# The full help text.
|
172
|
-
HELP_TEXT : _detailed_help_text,
|
173
|
-
}
|