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

Function WithRestoreImagePath

client/task_opts.go:121–130  ·  view source on GitHub ↗

WithRestoreImagePath sets image path for create option

(path string)

Source from the content-addressed store, hash-verified

119
120// WithRestoreImagePath sets image path for create option
121func 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
133func WithRestoreWorkPath(path string) NewTaskOpts {

Callers 1

Calls 1

getRuncOptionsMethod · 0.80

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…