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

Function isNamedVolume

pkg/mountutil/mountutil.go:262–267  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

260}
261
262func isNamedVolume(s string) bool {
263 err := identifiers.ValidateDockerCompat(s)
264
265 // If the volume name is invalid, we assume it is a path
266 return err == nil
267}

Callers 4

handleVolumeToMountFunction · 0.85
parseSourceTypeFunction · 0.85
handleVolumeToMountFunction · 0.85

Calls 1

ValidateDockerCompatFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…