WithRestoreWorkPath sets criu work path for create option
(path string)
| 131 | |
| 132 | // WithRestoreWorkPath sets criu work path for create option |
| 133 | func WithRestoreWorkPath(path string) NewTaskOpts { |
| 134 | return func(ctx context.Context, c *Client, ti *TaskInfo) error { |
| 135 | opts, err := ti.getRuncOptions() |
| 136 | if err != nil { |
| 137 | return err |
| 138 | } |
| 139 | opts.CriuWorkPath = path |
| 140 | return nil |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | // ProcessDeleteOpts allows the caller to set options for the deletion of a task |
| 145 | type ProcessDeleteOpts func(context.Context, Process) error |
nothing calls this directly
no test coverage detected
searching dependent graphs…