Documentation ¶
Index ¶
Constants ¶
View Source
const ( JujuEnvEnvKey = "JUJU_ENV" JujuHomeEnvKey = "JUJU_HOME" JujuRepositoryEnvKey = "JUJU_REPOSITORY" JujuLoggingConfigEnvKey = "JUJU_LOGGING_CONFIG" JujuFeatureFlagEnvKey = "JUJU_DEV_FEATURE_FLAGS" // Registry key containing juju related information JujuRegistryKey = `HKLM:\SOFTWARE\juju-core` // Registry value where the jujud password resides JujuRegistryPasswordKey = `jujud-password` // TODO(thumper): 2013-09-02 bug 1219630 // As much as I'd like to remove JujuContainerType now, it is still // needed as MAAS still needs it at this stage, and we can't fix // everything at once. JujuContainerTypeEnvKey = "JUJU_CONTAINER_TYPE" // JujuStatusIsoTimeEnvKey is the env var which if true, will cause status // timestamps to be written in RFC3339 format. JujuStatusIsoTimeEnvKey = "JUJU_STATUS_ISO_TIME" // JujuCLIVersion is a numeric value (1, 2, 3 etc) representing // the oldest CLI version which should be adhered to. // This includes args and output. // Default is 1. JujuCLIVersion = "JUJU_CLI_VERSION" )
Variables ¶
This section is empty.
Functions ¶
func FeatureFlags ¶
FeatureFlags returns a map that can be merged with os.Environ.
func IsJujuHomeSet ¶
func IsJujuHomeSet() bool
IsJujuHomeSet is a way to check if SetJuuHome has been called.
func JujuHomeDir ¶
func JujuHomeDir() string
JujuHomeDir returns the directory where juju should store application-specific files
func JujuHomePath ¶
JujuHomePath returns the path to a file in the current juju home.
func MergeEnvironment ¶
MergeEnvironment will return the current environment updated with all the values from newValues. If current is nil, a new map is created. If current is not nil, it is mutated.
func SetJujuHome ¶
SetJujuHome sets the value of juju home and returns the current one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.