WithRestoreImagePath sets image path for create option
(path string)
| 119 | |
| 120 | // WithRestoreImagePath sets image path for create option |
| 121 | func WithRestoreImagePath(path string) NewTaskOpts { |
| 122 | return func(ctx context.Context, c *Client, ti *TaskInfo) error { |
| 123 | opts, err := ti.getRuncOptions() |
| 124 | if err != nil { |
| 125 | return err |
| 126 | } |
| 127 | opts.CriuImagePath = path |
| 128 | return nil |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | // WithRestoreWorkPath sets criu work path for create option |
| 133 | func WithRestoreWorkPath(path string) NewTaskOpts { |
searching dependent graphs…