WithDevice adds a device mount.
(containerPath, hostPath, permissions string)
| 569 | |
| 570 | // WithDevice adds a device mount. |
| 571 | func WithDevice(containerPath, hostPath, permissions string) ContainerOpts { |
| 572 | return func(c *runtime.ContainerConfig) { |
| 573 | c.Devices = append(c.Devices, &runtime.Device{ |
| 574 | ContainerPath: containerPath, HostPath: hostPath, Permissions: permissions, |
| 575 | }) |
| 576 | } |
| 577 | } |
| 578 | |
| 579 | // WithSELinuxOptions allows to set SELinux option for container. |
| 580 | func WithSELinuxOptions(user, role, typ, level string) ContainerOpts { |
no outgoing calls
no test coverage detected
searching dependent graphs…