MCPcopy
hub / github.com/containerd/containerd / WithWindowsResources

Function WithWindowsResources

integration/main_test.go:370–377  ·  view source on GitHub ↗

Adds Windows container resource limits.

(r *runtime.WindowsContainerResources)

Source from the content-addressed store, hash-verified

368
369// Adds Windows container resource limits.
370func WithWindowsResources(r *runtime.WindowsContainerResources) ContainerOpts {
371 return func(c *runtime.ContainerConfig) {
372 if c.Windows == nil {
373 c.Windows = &runtime.WindowsContainerConfig{}
374 }
375 c.Windows.Resources = r
376 }
377}
378
379func WithVolumeMount(hostPath, containerPath string) ContainerOpts {
380 return WithIDMapVolumeMount(hostPath, containerPath, nil, nil)

Callers 1

TestWindowsRootfsSizeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…