configutil

package
v0.0.0-...-3ac7d67 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBoolean

func GetBoolean(vars map[string]string, key string, def bool) bool

GetBoolean returns the config value converted to a boolean. It returns the default if the config value has not been set or could not be converted.

func ReadConfig

func ReadConfig(project string, opts ...option.ClientOption) (map[string]string, error)

ReadConfig reads the config.sh from the cloud storage of the given project. All variables specified in the config are returned as dictionary. Uses the following defaults if the variables are not set:

CLOUD_ROBOTICS_CONTAINER_REGISTRY="gcr.io/<GCP_PROJECT_ID>"

Types

This section is empty.

Jump to

Keyboard shortcuts

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