diff options
Diffstat (limited to 'hst/fs.go')
| -rw-r--r-- | hst/fs.go | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -24,7 +24,8 @@ type FilesystemConfig interface { fmt.Stringer } -// The Ops interface enables [FilesystemConfig] to queue container ops without depending on the container package. +// The Ops interface enables [FilesystemConfig] to queue container ops without +// depending on the container package. type Ops interface { // Tmpfs appends an op that mounts tmpfs on a container path. Tmpfs(target *check.Absolute, size int, perm os.FileMode) Ops @@ -41,12 +42,15 @@ type Ops interface { // Link appends an op that creates a symlink in the container filesystem. Link(target *check.Absolute, linkName string, dereference bool) Ops - // Root appends an op that expands a directory into a toplevel bind mount mirror on container root. + // Root appends an op that expands a directory into a toplevel bind mount + // mirror on container root. Root(host *check.Absolute, flags int) Ops - // Etc appends an op that expands host /etc into a toplevel symlink mirror with /etc semantics. + // Etc appends an op that expands host /etc into a toplevel symlink mirror + // with /etc semantics. Etc(host *check.Absolute, prefix string) Ops - // Daemon appends an op that starts a daemon in the container and blocks until target appears. + // Daemon appends an op that starts a daemon in the container and blocks + // until target appears. Daemon(target, path *check.Absolute, args ...string) Ops } @@ -61,7 +65,8 @@ type ApplyState struct { // ErrFSNull is returned by [json] on encountering a null [FilesystemConfig] value. var ErrFSNull = errors.New("unexpected null in mount point") -// FSTypeError is returned when [ContainerConfig.Filesystem] contains an entry with invalid type. +// FSTypeError is returned when [ContainerConfig.Filesystem] contains an entry +// with invalid type. type FSTypeError string func (f FSTypeError) Error() string { return fmt.Sprintf("invalid filesystem type %q", string(f)) } |
