gcp

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: Apache-2.0 Imports: 16 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 CloudBuildClient added in v0.37.0

func CloudBuildClient() (*cloudbuild.Service, error)

CloudBuildClient returns an authenticated client for interacting with the Google Cloud Build API. This client is created once and cached for repeated use in Skaffold.

func CloudStorageClient added in v0.37.0

func CloudStorageClient() (*cstorage.Client, error)

CloudStorageClient returns an authenticated client for interacting with the Google Cloud Storage API. This client is not cached by Skaffold, because it needs to be closed each time it is done being used by the caller.

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