Documentation
¶
Index ¶
Constants ¶
View Source
const Events = "events"
View Source
const Facets = "facets"
View Source
const MultipleContainersPerPod = "multiple_containers_per_pod"
View Source
const Snapshots = "snapshots"
View Source
const UpdateHistory = "update_history"
Variables ¶
View Source
var MainDefaults = Defaults{
MultipleContainersPerPod: Value{
Enabled: true,
Status: Obsolete,
},
Events: Value{
Enabled: true,
Status: Obsolete,
},
Snapshots: Value{
Enabled: true,
Status: Active,
},
UpdateHistory: Value{
Enabled: false,
Status: Active,
},
Facets: Value{
Enabled: true,
Status: Obsolete,
},
}
MainDefaults is the defaults we use in Main
Functions ¶
This section is empty.
Types ¶
type Defaults ¶
type Defaults map[string]Value
Defaults is the initial values for a FeatureSet. Don't modify after initializing.
type FeatureSet ¶ added in v0.9.5
type FeatureSet map[string]Value
FeatureSet is a mutable set of Features.
func FromDefaults ¶ added in v0.9.5
func FromDefaults(d Defaults) FeatureSet
Create a FeatureSet from defaults.
func (FeatureSet) Get ¶ added in v0.9.5
func (s FeatureSet) Get(name string) bool
Get gets whether a feature is enabled.
type ObsoleteError ¶ added in v0.9.5
type ObsoleteError string
ObsoleteError is an error that a feature flag is obsolete
type Status ¶ added in v0.9.5
type Status int
The status of a feature flag It starts as Active (we're using this flag to evaluate the feature) Then when we no longer need it, we make it a noop. Leave it for an upgrade cycle. Then move it to Obsolete, which will cause a warning. Leave it for an upgrade cycle. Then remove the flag altogether.
const (
Active Status = iota
Noop
Obsolete
)
Click to show internal directories.
Click to hide internal directories.