MCPcopy Create free account
hub / github.com/docker/cli / createMountFromVolume

Function createMountFromVolume

cli/compose/convert/volume.go:27–35  ·  view source on GitHub ↗
(volume composetypes.ServiceVolumeConfig)

Source from the content-addressed store, hash-verified

25}
26
27func createMountFromVolume(volume composetypes.ServiceVolumeConfig) mount.Mount {
28 return mount.Mount{
29 Type: mount.Type(volume.Type),
30 Target: volume.Target,
31 ReadOnly: volume.ReadOnly,
32 Source: volume.Source,
33 Consistency: mount.Consistency(volume.Consistency),
34 }
35}
36
37func handleVolumeToMount(
38 volume composetypes.ServiceVolumeConfig,

Callers 6

handleVolumeToMountFunction · 0.85
handleImageToMountFunction · 0.85
handleBindToMountFunction · 0.85
handleTmpfsToMountFunction · 0.85
handleNpipeToMountFunction · 0.85
handleClusterToMountFunction · 0.85

Calls 1

TypeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…