From 584ce3da685352847e5c6189e5050bd5cb0307e9 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 7 Oct 2025 21:38:31 +0900 Subject: container/bits: move bind bits This allows referring to the bits without importing container. Signed-off-by: Ophestra --- container/bits/bits.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 container/bits/bits.go (limited to 'container/bits') diff --git a/container/bits/bits.go b/container/bits/bits.go new file mode 100644 index 00000000..7aa2e448 --- /dev/null +++ b/container/bits/bits.go @@ -0,0 +1,13 @@ +// Package bits contains constants for configuring the container. +package bits + +const ( + // BindOptional skips nonexistent host paths. + BindOptional = 1 << iota + // BindWritable mounts filesystem read-write. + BindWritable + // BindDevice allows access to devices (special files) on this filesystem. + BindDevice + // BindEnsure attempts to create the host path if it does not exist. + BindEnsure +) -- cgit v1.3.1