envutils

package
v1.22.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LoggerType  = "LOGGER_TYPE"
	LoggerLevel = "LOGGER_LEVEL"
)

Variables

This section is empty.

Functions

func GetApplicationLoggingLevel added in v1.18.3

func GetApplicationLoggingLevel() string

GetApplicationLoggingLevel returns the logging type env var if set

func GetApplicationLoggingType added in v1.16.3

func GetApplicationLoggingType() string

GetApplicationLoggingType returns the logging type env var if set

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 GetDeploymentId added in v1.16.4

func GetDeploymentId() string

GetDeploymentId Fetches the armory deployment id, if set

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