gcp

package
v0.0.0-...-15868fb Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

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