Versions in this module Expand all Collapse all v0 v0.4.2 Oct 29, 2014 v0.4.1 Oct 17, 2014 Changes in this version + type LabelSelector struct + Requirements []Requirement + func (lsel *LabelSelector) Matches(l Labels) (bool, error) + func (lsel *LabelSelector) String() (string, error) + type Labels interface + Get func(label string) (value string) + Has func(label string) (exists bool) + type Operator int + const Exists + const In + const NotIn + type Requirement struct + func NewRequirement(key string, op Operator, vals util.StringSet) (*Requirement, error) + func (r *Requirement) Matches(ls Labels) (bool, error) + func (r *Requirement) String() (string, error) + type Selector interface + Empty func() bool + Matches func(Labels) bool + RequiresExactMatch func(label string) (value string, found bool) + String func() string + func Everything() Selector + func ParseSelector(selector string) (Selector, error) + func SelectorFromSet(ls Set) Selector + type Set map[string]string + func (ls Set) AsSelector() Selector + func (ls Set) Get(label string) string + func (ls Set) Has(label string) bool + func (ls Set) String() string