Documentation ¶
Overview ¶
Package featuregate provides a way to gate features in the collector based on different options, such as the feature's stability level and user-defined minimum allowed stability level.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowedValues ¶
func AllowedValues() []string
Types ¶
type Stability ¶
type Stability int
Stability is used to designate the stability level of a feature or a minimum stability level the collector is allowed to operate with.
const ( // StabilityUndefined is the default value for Stability, which indicates an error and should never be used. StabilityUndefined Stability = iota // StabilityExperimental is used to designate features in the Experimental // stage. StabilityExperimental // StabilityPublicPreview is used to designate features in the Public Preview // stage. StabilityPublicPreview // StabilityGenerallyAvailable is used to designate features in the Generally // Available stage. StabilityGenerallyAvailable )
func (Stability) Permits ¶ added in v1.1.0
Permits will check if the stability level is allowed. For instance experimental would allow public preview, experimental and ga. Whereas ga would only allow ga.
Click to show internal directories.
Click to hide internal directories.