Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ControllerRegister ¶
type Feature ¶
type Feature interface {
Start(ctx context.Context) error
Stop() error
Spec() FeatureSpec
Name() string
}
func GetFeature ¶
func GetFeatures ¶
func GetFeatures() []Feature
type FeatureController ¶
type FeatureController struct {
FeatureName string
System bool
FeatureSpec FeatureSpec
Controllers []ControllerRegister
OnStop func() error
OnStart func() error
SystemStacks []*stack.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() FeatureSpec
func (*FeatureController) Stop ¶
func (f *FeatureController) Stop() error
type FeatureSpec ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.