runtime

package
v0.0.0-...-1dd8b2d Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(envKey, gcloudConfig string) string

GetConfig reads environment-based configurations, using fallback. First envKey is looked up as an nvironment variable. If that's not found, gcloud is queried using `gcloud config get-value $gcloudConfig`.

Examples:

GetConfig("GOOGLE_CLOUD_PROJECT", "project")
GetConfig("GOOGLE_CLOUD_ZONE", "compute/zone")

For more info on using configurations with gcloud, see:

https://cloud.google.com/sdk/docs/configurations

Types

This section is empty.

Jump to

Keyboard shortcuts

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