Documentation
¶
Index ¶
Constants ¶
View Source
const EnvVar = "CONTROL_MONKEY_FEATURE_FLAGS"
EnvVar is the name of the environment variable to read feature flags from. The value should be a comma-separated read of K=V flags, while V is optional.
Variables ¶
View Source
var ( // Toggle the usage of merging credentials in chain provider. // // This feature allows users to configure their credentials using multiple // providers. For example, a token can be statically configured using a file, MergeCredentialsChain = New("MergeCredentialsChain", false) )
Default features.
Functions ¶
Types ¶
type FeatureFlag ¶
type FeatureFlag interface {
fmt.Stringer
// Name returns the name of the feature flag.
Name() string
// Enabled returns true if the feature is enabled.
Enabled() bool
}
FeatureFlag indicates whether a given feature is enabled or not.
type FeatureFlags ¶
type FeatureFlags []FeatureFlag
FeatureFlags defines a read of feature flags.
func (FeatureFlags) String ¶
func (f FeatureFlags) String() string
String returns the string representation of a read of feature flags.
Click to show internal directories.
Click to hide internal directories.