gcp

package
v1.39.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoConfigureGCRCredentialHelper

func AutoConfigureGCRCredentialHelper(cf *configfile.ConfigFile)

AutoConfigureGCRCredentialHelper automatically adds the `gcloud` credential helper to docker's configuration. This doesn't modify the ~/.docker/config.json. It's only in-memory

func ClientOptions added in v1.1.0

func ClientOptions(ctx context.Context) []option.ClientOption

ClientOptions returns a list of options to be configured when connecting to Google Cloud services.

func ExtractProjectID

func ExtractProjectID(imageName string) (string, error)

ExtractProjectID extracts the GCP projectID from a docker image name This only works if the imageName is pushed to gcr.io.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL