antimatter.builders.capability
#
Module Contents#
Classes#
Builder class for creating a CapabilityRule. |
- class antimatter.builders.capability.CapabilityRulesBuilder(*rules)#
Builder class for creating a CapabilityRule.
- Parameters:
rules – A list of tuples containing the name, operator, and values of the match expression.
- with_rule(name: str, operator: antimatter.constants.CapabilityOperator | str | None, values: List[str] | None = None) CapabilityRulesBuilder #
Add a match expression to the rule.
- Parameters:
name – The name of the match expression.
operator – The operator of the match expression.
values – The values of the match expression.
- build() antimatter_api.CapabilityRule #
Build the rule.
- Returns:
The CapabilityRule which can be used to create a new capability.