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

Function ensureVolumeDriver

opts/mount_utils.go:96–102  ·  view source on GitHub ↗
(m *mount.Mount)

Source from the content-addressed store, hash-verified

94}
95
96func ensureVolumeDriver(m *mount.Mount) *mount.Driver {
97 ensureVolumeOptions(m)
98 if m.VolumeOptions.DriverConfig == nil {
99 m.VolumeOptions.DriverConfig = &mount.Driver{}
100 }
101 return m.VolumeOptions.DriverConfig
102}
103
104func ensureImageOptions(m *mount.Mount) *mount.ImageOptions {
105 if m.ImageOptions == nil {

Callers 1

SetMethod · 0.85

Calls 1

ensureVolumeOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…