gcloud

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

README

gcloud-config-helper

Google Cloud SDK Credentials helper

The standard Google Cloud Platform SDK for Go ignores the gcloud configuration for default project and account to use the authentication with.

The function GetCloudSDKCredentials returns a google.Credentials object based upon the active configuration. This allows you to create utilities that will work in the same context as gcloud.

The function GetCloudSDKConfig will return the properties of the active configuration in gcloud.

The implementation entirely depends on the output of gcloud config config-helper, which is intended to utilities to use the gcloud configuration. Oddly enough, Google also promises it to be a volatile and unstable interface. So if Google broke it or changed it, let me know perhaps we can fix the implementation of this library :-)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Wrapper around the Google Cloud SDK configuration * * the standard Google Cloud SDK go library does not support * to use the project and account specified by the current * gcloud configuration.
Wrapper around the Google Cloud SDK configuration * * the standard Google Cloud SDK go library does not support * to use the project and account specified by the current * gcloud configuration.

Jump to

Keyboard shortcuts

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