Documentation ¶
Index ¶
- func MatchAll(target *lsv1alpha1.Target, selectors []lsv1alpha1.TargetSelector) (bool, error)
- func MatchObjects(target *lsv1alpha1.Target, objects []lsv1alpha1.ObjectReference) bool
- func MatchOne(target *lsv1alpha1.Target, selectors []lsv1alpha1.TargetSelector) (bool, error)
- func MatchSelector(target *lsv1alpha1.Target, selector lsv1alpha1.TargetSelector) (bool, error)
- func MatchStringMap(m map[string]string, requirements []lsv1alpha1.Requirement) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchAll ¶
func MatchAll(target *lsv1alpha1.Target, selectors []lsv1alpha1.TargetSelector) (bool, error)
MatchAll checks if the given targets matches all selectors.
func MatchObjects ¶
func MatchObjects(target *lsv1alpha1.Target, objects []lsv1alpha1.ObjectReference) bool
MatchObjects matches a target to object references. Returns true if one provided object matches the target. The namespace is ignored if omitted in the reference.
func MatchOne ¶
func MatchOne(target *lsv1alpha1.Target, selectors []lsv1alpha1.TargetSelector) (bool, error)
MatchOne checks if one of the given targets matches. Returns false if none selector matches.
func MatchSelector ¶
func MatchSelector(target *lsv1alpha1.Target, selector lsv1alpha1.TargetSelector) (bool, error)
MatchSelector checks if the given targets matches the selector. It only passes if all configured selector methods match.
func MatchStringMap ¶
func MatchStringMap(m map[string]string, requirements []lsv1alpha1.Requirement) (bool, error)
MatchStringMap matches a map of string -> string for the configured requirements. All requirements must match in order to match the map.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.