mirror of
https://github.com/containers/buildah.git
synced 2025-04-19 18:02:18 +03:00
This change is generated by `go1.23rc2 fix ./...`. Had to use go1.23rc2, since all released go versions have a bug preventing it from working with `go 1.22.0` in go.mod (opened https://github.com/golang/go/issues/68825, https://github.com/golang/go/issues/68824 for awareness). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
19 lines
385 B
Go
19 lines
385 B
Go
//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
|