MCPcopy Create free account
hub / github.com/containerd/nerdctl / validatePlatformSpecific

Function validatePlatformSpecific

pkg/internal/filesystem/path_unix.go:33–43  ·  view source on GitHub ↗
(pathComponent string)

Source from the content-addressed store, hash-verified

31)
32
33func validatePlatformSpecific(pathComponent string) error {
34 if reservedCharacters.MatchString(pathComponent) {
35 return fmt.Errorf("%w: %q (%q)", errForbiddenChars, pathComponent, reservedCharacters)
36 }
37
38 if disallowedKeywords.MatchString(pathComponent) {
39 return fmt.Errorf("%w: %q (%q)", errForbiddenKeywords, pathComponent, disallowedKeywords)
40 }
41
42 return nil
43}

Callers 1

ValidatePathComponentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…