WithCheckpointImage includes the container image in the checkpoint
(ctx context.Context, client *Client, c *containers.Container, index *imagespec.Index, copts *options.CheckpointOptions)
| 44 | |
| 45 | // WithCheckpointImage includes the container image in the checkpoint |
| 46 | func WithCheckpointImage(ctx context.Context, client *Client, c *containers.Container, index *imagespec.Index, copts *options.CheckpointOptions) error { |
| 47 | ir, err := client.ImageService().Get(ctx, c.Image) |
| 48 | if err != nil { |
| 49 | return err |
| 50 | } |
| 51 | index.Manifests = append(index.Manifests, ir.Target) |
| 52 | return nil |
| 53 | } |
| 54 | |
| 55 | // WithCheckpointTask includes the running task |
| 56 | func WithCheckpointTask(ctx context.Context, client *Client, c *containers.Container, index *imagespec.Index, copts *options.CheckpointOptions) error { |
nothing calls this directly
no test coverage detected
searching dependent graphs…