oci package passing tests
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
15
task_opts_windows.go
Normal file
15
task_opts_windows.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package containerd
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
specs "github.com/opencontainers/runtime-spec/specs-go"
|
||||
)
|
||||
|
||||
// WithResources sets the provided resources on the spec for task updates
|
||||
func WithResources(resources *specs.WindowsResources) UpdateTaskOpts {
|
||||
return func(ctx context.Context, client Client, r *UpdateTaskInfo) error {
|
||||
r.Resources = resources
|
||||
return nil
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user