envutils

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetApplicationName added in v1.7.0

func GetApplicationName() string

GetApplicationName returns the value of the ARMORY_APPLICATION_NAME env var else it defaults to empty string

func GetApplicationVersion added in v1.7.0

func GetApplicationVersion() string

GetApplicationVersion returns the value of ARMORY_APPLICATION_VERSION or else defaults to "unset"

func GetEnvVarOrDefault

func GetEnvVarOrDefault(key, defaultValue string) string

GetEnvVarOrDefault looks up an env var by its key and returns the value it's non-empty else the default is returned.

func GetEnvironmentName added in v1.7.0

func GetEnvironmentName() string

GetEnvironmentName returns the value of the ARMORY_ENVIRONMENT_NAME env var if present else it defaults to local

func GetReplicaSetName added in v1.7.0

func GetReplicaSetName() string

GetReplicaSetName returns the value of the ARMORY_REPLICA_SET_NAME env var if present else an empty string

Types

This section is empty.

Jump to

Keyboard shortcuts

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