(ctx context.Context, dockerCli command.Cli)
| 114 | } |
| 115 | |
| 116 | func ListTransformers(ctx context.Context, dockerCli command.Cli) ([]image.Summary, error) { |
| 117 | res, err := dockerCli.Client().ImageList(ctx, client.ImageListOptions{ |
| 118 | Filters: make(client.Filters).Add("label", fmt.Sprintf("%s=%s", TransformerLabel, "transformation")), |
| 119 | }) |
| 120 | if err != nil { |
| 121 | return nil, err |
| 122 | } |
| 123 | return res.Items, nil |
| 124 | } |
no test coverage detected