kubernetes/staging/src/k8s.io/cluster-bootstrap/util/tokens/tokens.go

var bootstrapTokenRe

// ParseToken tries and parse a valid token from a string.
// A token ID and token secret are returned in case of success, an error otherwise.
func ParseToken(s string) (tokenID, tokenSecret string, err error) {}