import "istio.io/istio/pkg/config/labels"
const ( DNS1123LabelMaxLength = 63 // Public for testing only. )
IsDNS1123Label tests for a string that conforms to the definition of a label in DNS (RFC 1123).
IsWildcardDNS1123Label tests for a string that conforms to the definition of a label in DNS (RFC 1123), but allows the wildcard label (`*`), and typical labels with a leading astrisk instead of alphabetic character (e.g. "*-foo")
Collection is a collection of labels used for comparing labels against a collection of labels
func (c Collection) HasSubsetOf(that Instance) bool
HasSubsetOf returns true if the input labels are a super set of one labels in a collection or if the tag collection is empty
func (c Collection) IsSupersetOf(that Instance) bool
IsSupersetOf returns true if the input labels are a subset set of any set of labels in a collection
Instance is a non empty map of arbitrary strings. Each version of a service can be differentiated by a unique set of labels associated with the version. These labels are assigned to all instances of a particular service version. For example, lets say catalog.mystore.com has 2 versions v1 and v2. v1 instances could have labels gitCommit=aeiou234, region=us-east, while v2 instances could have labels name=kittyCat,region=us-east.
Equals returns true if the labels are identical
SubsetOf is true if the label has identical values for the keys
Validate ensures tag is well-formed
Package labels imports 5 packages (graph) and is imported by 39 packages. Updated 2020-08-04. Refresh now. Tools for package owners.