selector

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLabelSelector added in v1.6.2

func ParseLabelSelector(selectorStr string) (labelSelector map[string][]string)

ParseLabelSelector exact query:selector=key1=value1,key2=value2,key3=value3 fuzzy query:selector=key1~value1,key2~value2,key3~value3 multi query: selector=key=value1|value2|value3 support mixed query:selector=key1~value1,key2=value2,key3=value3

func ParseSelector

func ParseSelector(selectorStr string) (exact map[string]sets.Set[string], fuzzy map[string][]string)

ParseSelector exact query:selector=key1=value1,key2=value2,key3=value3 fuzzy query:selector=key1~value1,key2~value2,key3~value3 multi query: selector=key=value1|value2|value3 support mixed query:selector=key1~value1,key2=value2,key3=value3

Types

This section is empty.

Jump to

Keyboard shortcuts

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