beam: Index | Files

package gcpopts

import ""

Package gcpopts contains shared options for Google Cloud Platform.


Package Files



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)")

func GetProject Uses

func GetProject(ctx context.Context) string

GetProject returns the project, if non empty and exits otherwise. Convenience function.

func GetRegion Uses

func GetRegion(ctx context.Context) string

GetRegion returns the region first via flag then falling back to

Package gcpopts imports 6 packages (graph) and is imported by 2 packages. Updated 2020-09-20. Refresh now. Tools for package owners.