targetselector

package
v0.103.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL