labelsel

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsStructure

func AsStructure(value interface{}) (interface{}, error)

func Get

func Get(labels v1.Labels, sel ...Selector) []v1.Label

func MergeAlgo

func MergeAlgo(algo string) *selectors.LabelSelectorImpl

func Select

func Select(labels v1.Labels, sel ...Selector) ([]v1.Label, error)

func Signed

func Signed(b ...bool) *selectors.LabelSelectorImpl

func Value

func Value(value interface{}) *selectors.LabelErrorSelectorImpl

Value matches a label by a label value. This selector should typically be combined with Name.

func Version

func YQExpression

func YQExpression(expr string, value interface{}) *selectors.LabelErrorSelectorImpl

YQExpression matches a part of a label values described by a YQ expression. If value is a []byte, it is interpreted as JSON data, otherwise the value marshalled as JSON.

func YQParse

func YQParse(data []byte) (*yqlib.CandidateNode, error)

Types

type Selector

type Selector = selectors.LabelSelector

func Not

func Not(operand Selector) Selector

func Or

func Or(operands ...Selector) Selector

Jump to

Keyboard shortcuts

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