MCPcopy Index your code
hub / github.com/docker/cli / validateStackNames

Function validateStackNames

cli/command/stack/common.go:25–32  ·  view source on GitHub ↗
(namespaces []string)

Source from the content-addressed store, hash-verified

23}
24
25func validateStackNames(namespaces []string) error {
26 for _, ns := range namespaces {
27 if err := validateStackName(ns); err != nil {
28 return err
29 }
30 }
31 return nil
32}
33
34func quotesOrWhitespace(r rune) bool {
35 return unicode.IsSpace(r) || r == '"' || r == '\''

Callers 1

newRemoveCommandFunction · 0.85

Calls 1

validateStackNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…