diff --git a/pkg/labels/labels.go b/pkg/labels/labels.go index 63c3992cebd..5c980d4dea0 100644 --- a/pkg/labels/labels.go +++ b/pkg/labels/labels.go @@ -23,10 +23,11 @@ import ( // Labels allows you to present labels independently from their storage. type Labels interface { + // Get returns the value identified by the label. Get(label string) (value string) } -// Set is a map of label:value. Implements Labels. +// Set is a map of label:value. It implements Labels. type Set map[string]string // String returns all labels listed as a human readable string. diff --git a/pkg/labels/selector.go b/pkg/labels/selector.go index 215ae479561..f22adcf3d8d 100644 --- a/pkg/labels/selector.go +++ b/pkg/labels/selector.go @@ -87,7 +87,7 @@ func try(selectorPiece, op string) (lhs, rhs string, ok bool) { return "", "", false } -// SelectorFromSet converts a Set into a Selector. +// SelectorFromSet returns a Selector which will match exactly the given Set. func SelectorFromSet(ls Set) Selector { var items []Selector for label, value := range ls {