Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionItem ¶
ActionItem represnts a single action
func (ActionItem) GetType ¶
func (p ActionItem) GetType() string
GetType retrurn the type of the action
type ConditionItem ¶
ConditionItem represnts one condition
func (ConditionItem) GetType ¶
func (p ConditionItem) GetType() string
GetType retrurn the type of the condition
type Rule ¶
type Rule struct { Name string `json:"name,omitempty"` Conditions []ConditionItem `json:"conditions"` Actions []ActionItem `json:"actions"` }
Rule represnts single rule
type TagRules ¶
TagRules represents rules parsed from a rules definition
func NewFromFile ¶
NewFromFile reads filename and returns TagRules
func NewFromString ¶
NewFromString parses rulesDef and returns TagRules
Click to show internal directories.
Click to hide internal directories.