Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlwaysTrueCondition ¶
type AlwaysTrueCondition struct{}
AlwaysTrueCondition is a condition that allways evaluates to true.
func NewAlwaysTrueCondition ¶
func NewAlwaysTrueCondition() *AlwaysTrueCondition
NewAlwaysTrueCondition creates a new condition that allways evaluates to true.
type Condition ¶
type Condition interface {
// Evaluate evaluates the condition.
Evaluate(ctx context.Context) (bool, error)
}
Condition is a condition that can be evaluated.
type NegatedCondition ¶
type NegatedCondition struct {
Condition
}
NegatedCondition is a condition that negates another condition.
func NewNegatedCondition ¶
func NewNegatedCondition(cond Condition) *NegatedCondition
NewNegatedCondition creates a new condition that negates the given condition.
type TemplateCondition ¶
type TemplateCondition struct {
// contains filtered or unexported fields
}
TemplateCondition is a condition that evaluates a template.
func NewTemplateCondition ¶
func NewTemplateCondition(condition string) *TemplateCondition
NewTemplateCondition creates a new condition that evaluates a template.
Click to show internal directories.
Click to hide internal directories.