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

Function inspectImages

cli/command/system/inspect.go:110–119  ·  view source on GitHub ↗
(ctx context.Context, dockerCli command.Cli)

Source from the content-addressed store, hash-verified

108}
109
110func inspectImages(ctx context.Context, dockerCli command.Cli) inspect.GetRefFunc {
111 return func(ref string) (any, []byte, error) {
112 var buf bytes.Buffer
113 resp, err := dockerCli.Client().ImageInspect(ctx, ref, client.ImageInspectWithRawResponse(&buf))
114 if err != nil {
115 return image.InspectResponse{}, nil, err
116 }
117 return resp, buf.Bytes(), err
118 }
119}
120
121func inspectNetwork(ctx context.Context, dockerCli command.Cli) inspect.GetRefFunc {
122 return func(ref string) (any, []byte, error) {

Callers 1

inspectAllFunction · 0.85

Calls 2

ClientMethod · 0.65
ImageInspectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…