metadata

package
v0.0.0-...-7a6a509 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key string

type LabelSelector

type LabelSelector struct {
	Key      Key
	Operator Operator
	Values   []string
}

type LabelSelectorFilters

type LabelSelectorFilters interface {
	Filters(resourceTable, labelsTable string) []qm.QueryMod
}

type LabelSelectorParser

type LabelSelectorParser interface {
	Parse(labelSelector string) (LabelSelectorFilters, error)
}

func NewLabelSelectorParser

func NewLabelSelectorParser() LabelSelectorParser

type LabelSelectorSlice

type LabelSelectorSlice []LabelSelector

func (LabelSelectorSlice) Filters

func (selectors LabelSelectorSlice) Filters(resourceTable, labelsTable string) []qm.QueryMod

type Map

type Map map[string]null.String

type Metadata

type Metadata struct {
	Labels      Map `json:"labels"`
	Annotations Map `json:"annotations"`
}

func Get

func Get(annotationsSlice, labelsSlice interface{}) (Metadata, error)

type Operator

type Operator string
const (
	Exists    Operator = ""
	NotExists Operator = "!"
	Eq        Operator = "="
	EqAlt     Operator = "=="
	NotEq     Operator = "!="
	In        Operator = "in"
	NotIn     Operator = "notin"

	AllowedChars          = "[[:alnum:]][[:alnum:]._-]*"  // allow chars in keys: a-z,A-z,0-9,-,_,.
	AllowedCharsWithComma = "[[:alnum:]][[:alnum:]._,-]*" // in clauses can contain commas

)

Directories

Path Synopsis
Package mock_metadata is a generated GoMock package.
Package mock_metadata is a generated GoMock package.

Jump to

Keyboard shortcuts

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