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

Function runInspect

cli/command/volume/inspect.go:43–49  ·  view source on GitHub ↗
(ctx context.Context, dockerCLI command.Cli, opts inspectOptions)

Source from the content-addressed store, hash-verified

41}
42
43func runInspect(ctx context.Context, dockerCLI command.Cli, opts inspectOptions) error {
44 apiClient := dockerCLI.Client()
45 return inspect.Inspect(dockerCLI.Out(), opts.names, opts.format, func(name string) (any, []byte, error) {
46 res, err := apiClient.VolumeInspect(ctx, name, client.VolumeInspectOptions{})
47 return res.Volume, res.Raw, err
48 })
49}

Callers 1

newInspectCommandFunction · 0.70

Calls 4

VolumeInspectMethod · 0.80
ClientMethod · 0.65
InspectMethod · 0.65
OutMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…