(ctx context.Context, dockerCLI command.Cli, opts removeOptions)
| 33 | } |
| 34 | |
| 35 | func runRemove(ctx context.Context, dockerCLI command.Cli, opts removeOptions) error { |
| 36 | apiClient := dockerCLI.Client() |
| 37 | |
| 38 | var errs []error |
| 39 | for _, name := range opts.names { |
| 40 | if _, err := apiClient.SecretRemove(ctx, name, client.SecretRemoveOptions{}); err != nil { |
| 41 | errs = append(errs, err) |
| 42 | continue |
| 43 | } |
| 44 | _, _ = fmt.Fprintln(dockerCLI.Out(), name) |
| 45 | } |
| 46 | return errors.Join(errs...) |
| 47 | } |
no test coverage detected
searching dependent graphs…