package
1.11.0-alpha.1
Repository: https://github.com/ceshihao/kubernetes.git
Documentation: pkg.go.dev

# Functions

BearerToken returns a string representation of the passed token.
GenerateToken generates a new token with a token ID that is valid as a Kubernetes DNS label.
ParseToken tries and parse a valid token from a string.
ParseTokenID tries and parse a valid token ID from a string.
ValidateToken validates whether a token is well-formed.

# Constants

TokenIDBytes defines a number of bytes used for a token id.
TokenSecretBytes defines a number of bytes used for a secret.

# Variables

TokenIDRegexp is a compiled regular expression of TokenIDRegexpString.
TokenIDRegexpString defines token's id regular expression pattern.
TokenRegexp is a compiled regular expression of TokenRegexpString.
TokenRegexpString defines id.secret regular expression pattern.