Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyOrMatchLabel ¶
func EmptyOrMatchLabel(obj Labeled, lm LabelMatch) bool
EmptyOrMatchLabel checks EmptyOrMatch on a LabelMatch
func MatchLabel ¶
func MatchLabel(obj Labeled, lm LabelMatch) bool
MatchLabel checks if an object satisfies the requirements of a LabelMatch
Types ¶
type LabelMatch ¶
LabelMatch is used to filter objects with labels
type LabelMatchEq ¶
LabelMatchEq checks if the value of a label is equal to a value
func (*LabelMatchEq) EmptyOrMatch ¶
func (m *LabelMatchEq) EmptyOrMatch(labels map[string]string) bool
EmptyOrMatch checks if the label can be filtered on existent fields
type LabelMatchMultiple ¶
type LabelMatchMultiple struct {
Matches []LabelMatch
}
LabelMatchMultiple checks that multiple label criteria are satisfied
func (*LabelMatchMultiple) EmptyOrMatch ¶
func (m *LabelMatchMultiple) EmptyOrMatch(labels map[string]string) bool
EmptyOrMatch checks if the label can be filtered on existent fields
type LabelMatchNeq ¶
LabelMatchNeq checks if the value of a label is non-existent or not equal to a value
func (*LabelMatchNeq) EmptyOrMatch ¶
func (m *LabelMatchNeq) EmptyOrMatch(labels map[string]string) bool
EmptyOrMatch checks if the label can be filtered on existent fields
type LabelMatchSetIn ¶
LabelMatchSetIn checks if the value of a label is non-existent or is one of multiple values
func (*LabelMatchSetIn) EmptyOrMatch ¶
func (m *LabelMatchSetIn) EmptyOrMatch(labels map[string]string) bool
EmptyOrMatch checks if the label can be filtered on existent fields
type Labeled ¶
Labeled is used to access labels of an object
func GetLabeled ¶
GetLabeled returns a Labeled object that returns the passed map
type StatusMatch ¶
StatusMatch is used to filter pods by status