MCPcopy
hub / github.com/docker/compose / execCreateVolume

Method execCreateVolume

pkg/compose/executor_ops.go:60–62  ·  view source on GitHub ↗

--- Volume operations ---

(ctx context.Context, op Operation)

Source from the content-addressed store, hash-verified

58// --- Volume operations ---
59
60func (exec *planExecutor) execCreateVolume(ctx context.Context, op Operation) error {
61 return exec.compose.createVolume(ctx, *op.Volume)
62}
63
64func (exec *planExecutor) execRemoveVolume(ctx context.Context, op Operation) error {
65 _, err := exec.compose.apiClient().VolumeRemove(ctx, op.Name, client.VolumeRemoveOptions{Force: true})

Callers 1

executeNodeMethod · 0.95

Calls 1

createVolumeMethod · 0.80

Tested by

no test coverage detected