constraints

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchLabels

func MatchLabels(labels map[string]string, expr string) (bool, error)

MatchLabels reports whether the expression matches with the given labels. The expression must match any logical boolean combination of: - `Label(labelName, labelValue)` - `LabelRegex(labelName, regexValue)`.

func MatchTags

func MatchTags(tags []string, expr string) (bool, error)

MatchTags reports whether the expression matches with the given tags. The expression must match any logical boolean combination of: - `Tag(tagValue)` - `TagRegex(regexValue)`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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