beam: github.com/apache/beam/sdks/go/pkg/beam/options/gcpopts Index | Files

package gcpopts

import "github.com/apache/beam/sdks/go/pkg/beam/options/gcpopts"

Package gcpopts contains shared options for Google Cloud Platform.

Index

Package Files

options.go

Variables

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 https://cloud.google.com/compute/docs/gcloud-compute/#default-properties.

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