Versions in this module Expand all Collapse all v0 v0.6.0 Sep 19, 2019 v0.1.0 Sep 6, 2019 Changes in this version + func Register(name string, e RuleEngine) error + type Config struct + CoolDownPeriod time.Duration + EventProviders []audit.EventProvider + MinPollInterval time.Duration + type RuleEngine interface + AddRule func(rule *v1alpha1.AutopilotRule) error + DeleteRule func(rule *v1alpha1.AutopilotRule) error + Init func(cfg *Config) error + Start func() error + Stop func() error + func Get(name string) (RuleEngine, error) + type RuleEvent string + const RuleEventActionTaken + const RuleEventActionsCooledDown + const RuleEventConditionsMet + const RuleEventConditionsNotMet + const RuleEventConditionsStable + const RuleEventWatch + type RuleState string + const RuleStateActive + const RuleStateActiveActionTaken + const RuleStateInit + const RuleStateNormal + const RuleStateTriggered