(ctx context.Context, dockerCli command.Cli, getSize bool)
| 98 | } |
| 99 | |
| 100 | func inspectContainers(ctx context.Context, dockerCli command.Cli, getSize bool) inspect.GetRefFunc { |
| 101 | return func(ref string) (any, []byte, error) { |
| 102 | res, err := dockerCli.Client().ContainerInspect(ctx, ref, client.ContainerInspectOptions{Size: getSize}) |
| 103 | if err != nil { |
| 104 | return nil, nil, err |
| 105 | } |
| 106 | return res.Container, res.Raw, err |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | func inspectImages(ctx context.Context, dockerCli command.Cli) inspect.GetRefFunc { |
| 111 | return func(ref string) (any, []byte, error) { |
no test coverage detected
searching dependent graphs…