orchard/pkg/resource/v1/labels.go

14 lines
198 B
Go

package v1
type Labels map[string]string
func (labels Labels) Contains(other Labels) bool {
for label, value := range other {
if labels[label] != value {
return false
}
}
return true
}