(imageID string)
| 118 | return nil |
| 119 | } |
| 120 | func (c Client) ImageExists(imageID string) (bool, error) { |
| 121 | _, err := c.cli.ImageInspect(context.Background(), imageID) |
| 122 | if err != nil { |
| 123 | return false, err |
| 124 | } |
| 125 | return true, nil |
| 126 | } |
| 127 | |
| 128 | func (c Client) GetImageIDByName(imageName string) (string, error) { |
| 129 | filter := filters.NewArgs() |
no outgoing calls
no test coverage detected