Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetService = func() RuleService {
return &ruleServiceImpl{}
}
View Source
var GetServiceForEngine = func() EngineRuleService { return GetService() }
Functions ¶
This section is empty.
Types ¶
type EngineRuleService ¶
type LogicCache ¶
func NewLogicCache ¶
func NewLogicCache() LogicCache
type RuleService ¶
type RuleService interface {
EngineRuleService
Save(rules []*types.Rule, upsert bool) error
FindMetadata(metadata map[string]string) ([]types.Rule, error)
FindByRule(rule types.Rule) ([]types.Rule, error)
FindByID(id string) (types.Rule, error)
FindBySourceTsuruApp(appName string) ([]types.Rule, error)
FindBySourceTsuruJob(jobName string) ([]types.Rule, error)
Delete(id string) error
DeleteMetadata(metadata map[string]string) error
FindSyncs(ruleIDFilter []string) ([]types.RuleSyncInfo, error)
}
Click to show internal directories.
Click to hide internal directories.