Documentation ¶
Index ¶
Constants ¶
View Source
const (
LoggerType = "LOGGER_TYPE"
)
Variables ¶
This section is empty.
Functions ¶
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 GetEnvVarOrDefault ¶
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.
Click to show internal directories.
Click to hide internal directories.