MCPcopy Create free account
hub / github.com/docker/secrets-engine / isValidRune

Function isValidRune

x/secrets/identifiers.go:62–67  ·  view source on GitHub ↗
(c rune)

Source from the content-addressed store, hash-verified

60}
61
62func isValidRune(c rune) bool {
63 return (c >= 'A' && c <= 'Z') ||
64 (c >= 'a' && c <= 'z') ||
65 (c >= '0' && c <= '9') ||
66 c == '.' || c == '-' || c == '_' || c == ':'
67}
68
69func split(s string) []string {
70 s = strings.Trim(s, "/")

Callers 2

validIdentifierFunction · 0.85
isValidPatternRuneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected