Documentation ¶
Index ¶
Constants ¶
View Source
const EnvVar = "SPOTINST_FEATURE_FLAGS"
EnvVar is the name of the environment variable to read feature flags from. The value should be a comma-separated list 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, // while the account can be dynamically configured via environment variables. 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 list of feature flags.
func (FeatureFlags) String ¶
func (f FeatureFlags) String() string
String returns the string representation of a list of feature flags.
Click to show internal directories.
Click to hide internal directories.