Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToSelector ¶
ConvertToSelector converts Predicate to a labels.Selector
func ExtractProperty ¶
ExtractProperty extracts the property from the given restriction E.g., for the restriction "spec.externalName=foo", the function returns "spec.externalName"
Types ¶
type Predicate ¶
type Predicate interface { // Accepts returns true if this predicate accepts the given set of properties. Accepts(Properties) bool // Empty returns true if this predicate does not restrict the acceptance space. Empty() bool // String returns a human readable string that represents this predicate. String() string }
Predicate is used to test if the set of rules accepts the properties given. Predicate wraps label.Selector allowing us to use label selectors.
func CreatePredicate ¶
CreatePredicate creates the Predicate that will be used to test if acceptance is allowed for service classes.
type Properties ¶
Properties allows you to present properties independently from their storage.
Click to show internal directories.
Click to hide internal directories.