Documentation ¶
Overview ¶
Package feature provides feature generator
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RuleDefinition is a marker for defining Feature rules. RuleDefinition = markers.Must(markers.MakeDefinition(markerName, markers.DescribesType, Rule{})) )
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct{}
Generator is feature generator that registers feature markers and produces output artifacts
type Rule ¶
type Rule struct { // Name of the feature. Name string // Description of the feature. Description string `marker:",optional"` // Activated defines the default state of the feature activation. Activated bool `marker:",optional"` // Immutable indicates this feature cannot be toggled once set Immutable bool `marker:",optional"` // Discoverable defines API clients should present or hide this feature from user-facing results. Discoverable bool `marker:",optional"` // Maturity indicates maturity level of this feature. Maturity string }
Rule is the output type of the marker value
Click to show internal directories.
Click to hide internal directories.