Documentation ¶
Index ¶
- Constants
- func GetApplicationLoggingLevel() string
- func GetApplicationLoggingType() string
- func GetApplicationName() string
- func GetApplicationVersion() string
- func GetDeploymentId() string
- func GetEnvVarOrDefault(key, defaultValue string) string
- func GetEnvironmentName() string
- func GetReplicaSetName() string
Constants ¶
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 ¶
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.