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 ¶
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.