Adds Windows container resource limits.
(r *runtime.WindowsContainerResources)
| 368 | |
| 369 | // Adds Windows container resource limits. |
| 370 | func 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 | |
| 379 | func WithVolumeMount(hostPath, containerPath string) ContainerOpts { |
| 380 | return WithIDMapVolumeMount(hostPath, containerPath, nil, nil) |
no outgoing calls
no test coverage detected
searching dependent graphs…