buildah/define/types_unix.go

19 lines
385 B
Go
Raw Normal View History

//go:build darwin || linux
package define
import (
"github.com/opencontainers/runc/libcontainer/devices"
)
// 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