parser

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2017 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 AllNode

type AllNode struct {
}

func (AllNode) Evaluate

func (node AllNode) Evaluate(labels map[string]string) bool

type AndNode

type AndNode struct {
	Operands []node
}

func (AndNode) Evaluate

func (node AndNode) Evaluate(labels map[string]string) bool

type HasNode

type HasNode struct {
	LabelName string
}

func (HasNode) Evaluate

func (node HasNode) Evaluate(labels map[string]string) bool

type LabelEqValueNode

type LabelEqValueNode struct {
	LabelName string
	Value     string
}

func (LabelEqValueNode) Evaluate

func (node LabelEqValueNode) Evaluate(labels map[string]string) bool

type LabelInSetNode

type LabelInSetNode struct {
	LabelName string
	Value     StringSet
}

func (LabelInSetNode) Evaluate

func (node LabelInSetNode) Evaluate(labels map[string]string) bool

type LabelNeValueNode

type LabelNeValueNode struct {
	LabelName string
	Value     string
}

func (LabelNeValueNode) Evaluate

func (node LabelNeValueNode) Evaluate(labels map[string]string) bool

type LabelNotInSetNode

type LabelNotInSetNode struct {
	LabelName string
	Value     StringSet
}

func (LabelNotInSetNode) Evaluate

func (node LabelNotInSetNode) Evaluate(labels map[string]string) bool

type NotNode

type NotNode struct {
	Operand node
}

func (NotNode) Evaluate

func (node NotNode) Evaluate(labels map[string]string) bool

type OrNode

type OrNode struct {
	Operands []node
}

func (OrNode) Evaluate

func (node OrNode) Evaluate(labels map[string]string) bool

type Selector

type Selector interface {
	Evaluate(labels map[string]string) bool
	String() string
	UniqueId() string
}

func Parse

func Parse(selector string) (sel Selector, err error)

Parse a string representation of a selector expression into a Selector.

type StringSet

type StringSet []string

func ConvertToStringSetInPlace

func ConvertToStringSetInPlace(s []string) StringSet

func (StringSet) Contains

func (ss StringSet) Contains(s string) bool

Jump to

Keyboard shortcuts

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