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

Function parseMounts

pkg/inspecttypes/dockercompat/dockercompat.go:1222–1230  ·  view source on GitHub ↗
(nerdctlMounts string)

Source from the content-addressed store, hash-verified

1220}
1221
1222func parseMounts(nerdctlMounts string) ([]MountPoint, error) {
1223 var mounts []MountPoint
1224 err := json.Unmarshal([]byte(nerdctlMounts), &mounts)
1225 if err != nil {
1226 return nil, err
1227 }
1228
1229 return mounts, nil
1230}
1231
1232func ParseMountProperties(option []string) (rw bool, propagation string) {
1233 rw = true

Callers 1

ContainerFromNativeFunction · 0.85

Calls 1

UnmarshalMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…