MCPcopy Index your code
hub / github.com/docker/cli / runInspect

Function runInspect

cli/command/network/inspect.go:46–54  ·  view source on GitHub ↗
(ctx context.Context, apiClient client.NetworkAPIClient, output io.Writer, opts inspectOptions)

Source from the content-addressed store, hash-verified

44}
45
46func runInspect(ctx context.Context, apiClient client.NetworkAPIClient, output io.Writer, opts inspectOptions) error {
47 return inspect.Inspect(output, opts.names, opts.format, func(name string) (any, []byte, error) {
48 res, err := apiClient.NetworkInspect(ctx, name, client.NetworkInspectOptions{Verbose: opts.verbose})
49 if err != nil {
50 return nil, nil, err
51 }
52 return res.Network, res.Raw, nil
53 })
54}

Callers 1

newInspectCommandFunction · 0.70

Calls 2

InspectMethod · 0.65
NetworkInspectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…