2020-10-10 02:34:19 +08:00
|
|
|
package define
|
|
|
|
|
2020-11-10 19:58:31 +08:00
|
|
|
import (
|
2021-02-07 06:49:40 +08:00
|
|
|
"github.com/opencontainers/runtime-spec/specs-go"
|
2020-11-10 19:58:31 +08:00
|
|
|
)
|
2020-10-10 02:34:19 +08:00
|
|
|
|
|
|
|
const (
|
2021-02-07 06:49:40 +08:00
|
|
|
// Package is the name of this package, used in help output and to
|
|
|
|
// identify working containers.
|
|
|
|
Package = "buildah"
|
|
|
|
// Version for the Package. Bump version in contrib/rpm/buildah.spec
|
|
|
|
// too.
|
|
|
|
Version = "1.20.0-dev"
|
2020-10-10 02:34:19 +08:00
|
|
|
)
|
|
|
|
|
2021-02-07 06:49:40 +08:00
|
|
|
// IDMappingOptions controls how we set up UID/GID mapping when we set up a
|
|
|
|
// user namespace.
|
|
|
|
type IDMappingOptions struct {
|
|
|
|
HostUIDMapping bool
|
|
|
|
HostGIDMapping bool
|
|
|
|
UIDMap []specs.LinuxIDMapping
|
|
|
|
GIDMap []specs.LinuxIDMapping
|
2020-11-10 19:58:31 +08:00
|
|
|
}
|