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

Function parseSourceType

pkg/mountutil/mountutil_windows.go:246–256  ·  view source on GitHub ↗

Function to parse the source type

(source string)

Source from the content-addressed store, hash-verified

244
245// Function to parse the source type
246func parseSourceType(source string) string {
247 switch {
248 case isNamedVolume(source):
249 return Volume
250 case isNamedPipe(source):
251 return Npipe
252 // Add more cases for different source types as needed
253 default:
254 return Bind
255 }
256}
257
258func validateNamedPipeSpec(source string, dst string) (bool, error) {
259 // Validate source and destination types

Callers 1

validateNamedPipeSpecFunction · 0.85

Calls 2

isNamedVolumeFunction · 0.85
isNamedPipeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…