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

Method VolumeCreate

pkg/dryrun/dryrunclient.go:269–279  ·  view source on GitHub ↗
(ctx context.Context, options client.VolumeCreateOptions)

Source from the content-addressed store, hash-verified

267}
268
269func (d *DryRunClient) VolumeCreate(ctx context.Context, options client.VolumeCreateOptions) (client.VolumeCreateResult, error) {
270 return client.VolumeCreateResult{
271 Volume: volume.Volume{
272 ClusterVolume: nil,
273 Driver: options.Driver,
274 Labels: options.Labels,
275 Name: options.Name,
276 Options: options.DriverOpts,
277 },
278 }, nil
279}
280
281func (d *DryRunClient) VolumeRemove(ctx context.Context, volumeID string, options client.VolumeRemoveOptions) (client.VolumeRemoveResult, error) {
282 return client.VolumeRemoveResult{}, nil

Callers 1

createVolumeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected