Documentation ¶
Index ¶
Constants ¶
const (
DNS1123LabelMaxLength = 63 // Public for testing only.
)
Variables ¶
This section is empty.
Functions ¶
func IsDNS1123Label ¶
IsDNS1123Label tests for a string that conforms to the definition of a label in DNS (RFC 1123).
func IsWildcardDNS1123Label ¶
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")
Types ¶
type Instance ¶
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.
func (Instance) Match ¶
Match is true if the label has same values for the keys. if len(i) == 0, will return false. It is mainly used for service -> workload