(ctx context.Context, image string)
| 251 | } |
| 252 | |
| 253 | func (s *composeService) removeImage(ctx context.Context, image string) error { |
| 254 | id := fmt.Sprintf("Image %s", image) |
| 255 | return s.removeResource(id, func() error { |
| 256 | _, err := s.apiClient().ImageRemove(ctx, image, client.ImageRemoveOptions{}) |
| 257 | return err |
| 258 | }) |
| 259 | } |
| 260 | |
| 261 | func (s *composeService) removeVolume(ctx context.Context, id string) error { |
| 262 | resource := fmt.Sprintf("Volume %s", id) |
no test coverage detected