MCPcopy Create free account
hub / github.com/containerd/containerd / WithDevice

Function WithDevice

integration/main_test.go:571–577  ·  view source on GitHub ↗

WithDevice adds a device mount.

(containerPath, hostPath, permissions string)

Source from the content-addressed store, hash-verified

569
570// WithDevice adds a device mount.
571func 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.
580func WithSELinuxOptions(user, role, typ, level string) ContainerOpts {

Callers 1

TestWindowsDeviceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…