Documentation ¶
Overview ¶
Package constraint implements support for predicates on agent attributes. Constraints notably implement a MergeParent operation, to implement override behavior in child Roles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
func (Attributes) Satisfy ¶
func (attrs Attributes) Satisfy(cts Constraints) (ok bool)
func (Attributes) String ¶
func (attrs Attributes) String() string
type Constraint ¶
type Constraint struct { Attribute string `yaml:"attribute"` Value string `yaml:"value"` // TODO: unmarshal this ↓ Operator Operator }
func (*Constraint) String ¶
func (c *Constraint) String() string
type Constraints ¶
type Constraints []Constraint
func (Constraints) MergeParent ¶
func (cts Constraints) MergeParent(parentConstraints Constraints) (merged Constraints)
func (Constraints) String ¶
func (cts Constraints) String() string
Click to show internal directories.
Click to hide internal directories.