Documentation ¶
Overview ¶
Package gcpopts contains shared options for Google Cloud Platform.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Project is the Google Cloud Platform project ID. Project = flag.String("project", "", "Google Cloud Platform project ID.") // Region is the GCP region where the job should be run. Region = flag.String("region", "", "GCP Region (required)") )
Functions ¶
func GetProject ¶
GetProject returns the project, if non empty and exits otherwise. Convenience function.
func GetProjectFromFlagOrEnvironment ¶
GetProjectFromFlagOrEnvironment gets the project first via flag then falling back to https://cloud.google.com/docs/authentication/production#auth-cloud-explicit-go
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.