ListImages returns all existing images
(ctx context.Context, filters ...string)
| 581 | |
| 582 | // ListImages returns all existing images |
| 583 | func (c *Client) ListImages(ctx context.Context, filters ...string) ([]Image, error) { |
| 584 | imgs, err := c.ImageService().List(ctx, filters...) |
| 585 | if err != nil { |
| 586 | return nil, err |
| 587 | } |
| 588 | images := make([]Image, len(imgs)) |
| 589 | for i, img := range imgs { |
| 590 | images[i] = NewImage(c, img) |
| 591 | } |
| 592 | return images, nil |
| 593 | } |
| 594 | |
| 595 | // Restore restores a container from a checkpoint |
| 596 | func (c *Client) Restore(ctx context.Context, id string, checkpoint Image, opts ...RestoreOpts) (Container, error) { |
nothing calls this directly
no test coverage detected