Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllNode ¶
type AllNode struct {
}
    type AndNode ¶
type AndNode struct {
	Operands []node
}
    type LabelEqValueNode ¶
func (LabelEqValueNode) Evaluate ¶
func (node LabelEqValueNode) Evaluate(labels Labels) bool
type LabelInSetNode ¶
func (LabelInSetNode) Evaluate ¶
func (node LabelInSetNode) Evaluate(labels Labels) bool
type LabelNeValueNode ¶
func (LabelNeValueNode) Evaluate ¶
func (node LabelNeValueNode) Evaluate(labels Labels) bool
type LabelNotInSetNode ¶
func (LabelNotInSetNode) Evaluate ¶
func (node LabelNotInSetNode) Evaluate(labels Labels) bool
type Labels ¶ added in v1.2.0
type Labels interface {
	// Get returns value and presence of the given labelName
	Get(labelName string) (value string, present bool)
}
    Labels defines the interface of labels that can be used by selector
type MapAsLabels ¶ added in v1.2.0
MapAsLabels allows you use map as labels
func (MapAsLabels) Get ¶ added in v1.2.0
func (l MapAsLabels) Get(labelName string) (value string, present bool)
Get returns the value and presence of the given labelName key in the MapAsLabels
type NotNode ¶
type NotNode struct {
	Operand node
}
    type OrNode ¶
type OrNode struct {
	Operands []node
}
    type Selector ¶
type Selector interface {
	// Evaluate evaluates the selector against the given labels expressed as a concrete map.
	Evaluate(labels map[string]string) bool
	// EvaluateLabels evaluates the selector against the given labels expressed as an interface.
	// This allows for labels that are calculated on the fly.
	EvaluateLabels(labels Labels) bool
	// String returns a string that represents this selector.
	String() string
	// UniqueID returns the unique ID that represents this selector.
	UniqueID() string
}
    Selector represents a label selector.
      
      Source Files
      ¶
    
- ast.go
 - parser.go
 - stringset.go
 
 Click to show internal directories. 
   Click to hide internal directories.