buildah/define/types_unix.go

19 lines
381 B
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