package
1.20240719.1
Repository: https://github.com/blend/go-sdk.git
Documentation: pkg.go.dev

# Functions

CheckDNS returns if a given value is a conformant DNS_SUBDOMAIN.
CheckKey validates a key.
CheckLabels validates all the keys and values for the label set.
CheckName checks the characters in a name but does not validate the length.
CheckValue returns if the value is valid.
MustParse parses the selector but will panic if there is an issue.
Parse takes a string representing a selector and returns a selector object, or an error.
SkipValidation is an option to skip checking the values of selector expressions.

# Constants

At is a common rune.
BackSlash is a common rune.
BackTick is a common rune.
Bang is a common rune.
CarriageReturn is a common rune.
CloseBracket is a common rune.
CloseParens is a common rune.
Colon is a common rune.
Comma is a common rune.
Dash is a common rune.
Dot is a common rune.
Equal is a common rune.
ErrInvalidOperator is returned if the operator is invalid.
ErrInvalidSelector is returned if there is a structural issue with the selector.
ErrLabelInvalidCharacter indicates a value contains characters.
ErrLabelKeyDNSSubdomainEmpty indicates a key's "dns" subdomain is empty, i.e.
ErrLabelKeyDNSSubdomainTooLong indicates a key's "dns" subdomain is too long.
ErrLabelKeyEmpty indicates a key is empty.
ErrLabelKeyInvalidDNSSubdomain indicates a key contains characters.
ErrLabelKeyTooLong indicates a key is too long.
ErrLabelValueTooLong indicates a value is too long.
ForwardSlash is a common rune.
MaxLabelKeyDNSSubdomainLen is the maximum dns prefix length.
MaxLabelKeyLen is the maximum key length.
MaxLabelValueLen is the maximum value length.
NewLine is a common rune.
OpDoubleEquals is an operator.
OpenBracket is a common rune.
OpenCurly is a common rune.
OpenParens is a common rune.
OpEquals is an operator.
OpIn is an operator.
OpNotEquals is an operator.
OpNotIn is an operator.
Space is a common rune.
Tab is a common rune.
Tilde is a common rune.
Underscore is a common rune.

# Variables

MaxLabelKeyTotalLen is the maximum total key length.

# Structs

Any matches everything.
Equals returns if a key strictly equals a value.
In returns if a key matches a set of values.
NotEquals returns if a key strictly equals a value.
NotIn returns if a key does not match a set of values.
ParseError is a specific parse error.
Parser parses a selector incrementally.

# Interfaces

Selector is the common interface for selector types.

# Type aliases

And is a combination selector.
Error is a hard alias to string.
HasKey returns if a label set has a given key.
Labels is an alias for map[string]string.
NotHasKey returns if a label set does not have a given key.
Option is a tweak to selector parsing.