Documentation
¶
Index ¶
- func Register(feature Feature)
- type ControllerRegister
- type Feature
- type FeatureController
- func (f *FeatureController) Changed(feature *v1.Feature) error
- func (f *FeatureController) IsSystem() bool
- func (f *FeatureController) Name() string
- func (f *FeatureController) Register() error
- func (f *FeatureController) Spec() v1.FeatureSpec
- func (f *FeatureController) Start(ctx context.Context, feature *v1.Feature) error
- func (f *FeatureController) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ControllerRegister ¶
type Feature ¶
type Feature interface { Start(ctx context.Context, feature *v1.Feature) error Changed(feature *v1.Feature) error Stop() error IsSystem() bool Spec() v1.FeatureSpec Name() string }
func GetFeature ¶
func GetFeatures ¶
func GetFeatures() []Feature
type FeatureController ¶
type FeatureController struct { FeatureName string System bool FeatureSpec v1.FeatureSpec Controllers []ControllerRegister OnStop func() error OnChange func(*v1.Feature) error OnStart func(*v1.Feature) error SystemStacks []*systemstack.SystemStack FixedAnswers map[string]string // contains filtered or unexported fields }
func (*FeatureController) IsSystem ¶
func (f *FeatureController) IsSystem() bool
func (*FeatureController) Name ¶
func (f *FeatureController) Name() string
func (*FeatureController) Register ¶
func (f *FeatureController) Register() error
func (*FeatureController) Spec ¶
func (f *FeatureController) Spec() v1.FeatureSpec
func (*FeatureController) Stop ¶
func (f *FeatureController) Stop() error
Click to show internal directories.
Click to hide internal directories.