Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Values for PreRelease. Alpha = prerelease("ALPHA") Beta = prerelease("BETA") GA = prerelease("") )
Variables ¶
This section is empty.
Functions ¶
func NewFeatureGate ¶
func NewFeatureGate() *featureGate
Types ¶
type FeatureGate ¶
type FeatureGate interface { AddFlag(fs *pflag.FlagSet) Set(value string) error Enabled(key Feature) bool Add(features map[Feature]FeatureSpec) error KnownFeatures() []string }
FeatureGate parses and stores flag gates for known features from a string like feature1=true,feature2=false,...
var ( // DefaultFeatureGate is a shared global FeatureGate. DefaultFeatureGate FeatureGate = NewFeatureGate() )
type FeatureSpec ¶
type FeatureSpec struct { Default bool PreRelease prerelease }
Click to show internal directories.
Click to hide internal directories.