Documentation
¶
Index ¶
- Constants
- func DefaultEnabled() []string
- func Enabled(name string) bool
- func IsDeprecated(name string) bool
- func IsPromoted(name string) bool
- func MergeEnabled(base []string, extra []string, disabled []string) []string
- func NamesForIntent(intent string) []string
- func ParseCSV(input string) []string
- func SetCurrent(names []string)
- type Definition
- type MatrixCase
- type Set
Constants ¶
View Source
const ( StatusExperimental = "experimental" StatusPromoted = "promoted" StatusDeprecated = "deprecated" )
Experiment status lifecycle constants.
Variables ¶
This section is empty.
Functions ¶
func DefaultEnabled ¶
func DefaultEnabled() []string
DefaultEnabled returns the names of experiments whose Status is "promoted". These are merged into the active set before user flags unless explicitly disabled via -experiment-off=name.
func IsDeprecated ¶
IsDeprecated reports whether the named experiment's Status is "deprecated".
func IsPromoted ¶
IsPromoted reports whether the named experiment's Status is "promoted".
func NamesForIntent ¶
func SetCurrent ¶
func SetCurrent(names []string)
Types ¶
type Definition ¶
type Definition struct {
Name string `json:"name"`
Description string `json:"description"`
Intent string `json:"intent,omitempty"`
TargetRules []string `json:"targetRules,omitempty"`
// Status is the lifecycle state of the experiment:
// "" or "experimental" — flag-gated, off by default (default behavior).
// "promoted" — enabled by default; opt-out via -experiment-off=name.
// "deprecated" — superseded/removed; kept for documentation. Warns
// and is ignored if a user tries to enable it.
Status string `json:"status,omitempty"`
}
func Definitions ¶
func Definitions() []Definition
func Lookup ¶
func Lookup(name string) (Definition, bool)
Lookup returns the Definition for name and whether it exists.
type MatrixCase ¶
func BuildMatrix ¶
func BuildMatrix(spec string, candidates []string) ([]MatrixCase, error)
Click to show internal directories.
Click to hide internal directories.