gcloud

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScopeCloudPlatform string = "https://www.googleapis.com/auth/cloud-platform"
	// https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing
	ScopeStorageReadWrite string = "https://www.googleapis.com/auth/devstorage.read_write"
)

Variables

This section is empty.

Functions

func LoadFromServiceJSON

func LoadFromServiceJSON(serviceAccountPath string, scope ...string) (*http.Client, error)

This reads a json service account credential file, and returns a http.Client that's bound to an oauth2 access token for the provided scopes

Types

This section is empty.

Jump to

Keyboard shortcuts

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