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

Function validateTag

cli/command/plugin/create.go:23–27  ·  view source on GitHub ↗

validateTag checks if the given repoName can be resolved.

(rawRepo string)

Source from the content-addressed store, hash-verified

21
22// validateTag checks if the given repoName can be resolved.
23func validateTag(rawRepo string) error {
24 _, err := reference.ParseNormalizedNamed(rawRepo)
25
26 return err
27}
28
29// validateConfig ensures that a valid config.json is available in the given path
30func validateConfig(path string) error {

Callers 1

runCreateFunction · 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…