gcp

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoConfigureGCRCredentialHelper

func AutoConfigureGCRCredentialHelper(cf *configfile.ConfigFile, registry string)

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 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