VictoriaMetrics/vendor/cloud.google.com/go/internal
2023-02-18 23:05:36 -08:00
..
optional app/{vmbackup,vmrestore}: add vmbackup and vmrestore tools for creating backups on s3 or gcs from instant snapshots 2019-11-07 21:26:43 +02:00
trace vendor: make vendor-update 2021-09-30 17:54:45 +03:00
version vendor: make vendor-update 2020-11-13 13:08:41 +02:00
.repo-metadata-full.json vendor: make vendor-update 2023-02-18 23:05:36 -08:00
annotate.go vendor: make vendor-update 2022-11-10 13:56:04 +02:00
cloudbuild.yaml vendor: make vendor-update 2023-02-18 23:05:36 -08:00
README.md vendor: make vendor-update 2023-02-18 23:05:36 -08:00
retry.go vendor: make vendor-update 2021-09-30 17:54:45 +03:00

Internal

This directory contains internal code for cloud.google.com/go packages.

.repo-metadata-full.json

.repo-metadata-full.json contains metadata about the packages in this repo. It is generated by internal/gapicgen/generator. It's processed by external tools to build lists of all of the packages.

Don't make breaking changes to the format without consulting with the external tools.

One day, we may want to create individual .repo-metadata.json files next to each package, which is the pattern followed by some other languages. External tools would then talk to pkg.go.dev or some other service to get the overall list of packages and use the .repo-metadata.json files to get the additional metadata required. For now, .repo-metadata-full.json includes everything.

cloudbuild.yaml

To kick off a build locally run from the repo root:

gcloud builds submit --project=cloud-devrel-kokoro-resources --config=internal/cloudbuild.yaml

Updating OwlBot SHA

You may want to manually update the which version of the post processor will be used -- to do this you need to update the SHA in the OwlBot lock file. Start by running the following commands:

docker pull gcr.io/cloud-devrel-public-resources/owlbot-go:latest
docker inspect --format='{{index .RepoDigests 0}}' gcr.io/cloud-devrel-public-resources/owlbot-go:latest

This will give you a SHA. You can use this value to update the value in .github/.OwlBot.lock.yaml.

Note: OwlBot will eventually open a pull request to update this value if it discovers a new version of the container.