2024-08-10 07:31:56 +08:00
|
|
|
//go:build darwin || linux
|
2021-02-07 06:49:40 +08:00
|
|
|
|
|
|
|
package define
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/opencontainers/runc/libcontainer/devices"
|
|
|
|
)
|
|
|
|
|
2022-05-24 18:23:32 +08:00
|
|
|
// BuildahDevice is a wrapper around devices.Device
|
|
|
|
// with additional support for renaming a device
|
|
|
|
// using bind-mount in rootless environments.
|
|
|
|
type BuildahDevice struct {
|
|
|
|
devices.Device
|
|
|
|
Source string
|
|
|
|
Destination string
|
|
|
|
}
|
|
|
|
|
|
|
|
type ContainerDevices = []BuildahDevice
|