MCPcopy Index your code
hub / github.com/containerd/containerd / WithRestoreWorkPath

Function WithRestoreWorkPath

client/task_opts.go:133–142  ·  view source on GitHub ↗

WithRestoreWorkPath sets criu work path for create option

(path string)

Source from the content-addressed store, hash-verified

131
132// WithRestoreWorkPath sets criu work path for create option
133func 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
145type ProcessDeleteOpts func(context.Context, Process) error

Callers

nothing calls this directly

Calls 1

getRuncOptionsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…