(ctx context.Context, dockerCli command.Cli)
| 108 | } |
| 109 | |
| 110 | func 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 | |
| 121 | func inspectNetwork(ctx context.Context, dockerCli command.Cli) inspect.GetRefFunc { |
| 122 | return func(ref string) (any, []byte, error) { |
no test coverage detected
searching dependent graphs…