kubernetes/vendor/github.com/google/cadvisor/container/containerd/identifiers/validate.go

const maxLength

const alphanum

const separators

var identifierRe

// Validate returns nil if the string s is a valid identifier.
//
// identifiers are similar to the domain name rules according to RFC 1035, section 2.3.1. However
// rules in this package are relaxed to allow numerals to follow period (".") and mixed case is
// allowed.
//
// In general identifiers that pass this validation should be safe for use as filesystem path components.
func Validate(s string) error {}

func reGroup(s string) string {}

func reAnchor(s string) string {}