diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-12 05:03:14 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-12 05:03:14 +0900 |
| commit | 8a91234cb4d8cbf6e1d5b909bc11f630d78a93e5 (patch) | |
| tree | 2a8997564266ff2c2815d67ba5261fbd9e29ed05 /hst/fs.go | |
| parent | db7051a36814a5c9e02e22c2e8d1df42c5f4b8f0 (diff) | |
hst: reword and improve doc comments
This corrects minor mistakes in doc comments and adds them for undocumented constants.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/fs.go')
| -rw-r--r-- | hst/fs.go | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -47,17 +47,16 @@ type Ops interface { Etc(host *check.Absolute, prefix string) Ops } -// ApplyState holds the address of [container.Ops] and any relevant application state. +// ApplyState holds the address of [Ops] and any relevant application state. type ApplyState struct { - // AutoEtcPrefix is the prefix for [container.AutoEtcOp]. + // AutoEtcPrefix is the prefix for [FSBind] in autoetc [FSBind.Special] condition. AutoEtcPrefix string Ops } -var ( - ErrFSNull = errors.New("unexpected null in mount point") -) +// 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. type FSTypeError string @@ -90,7 +89,7 @@ func (f *FilesystemConfigJSON) Valid() bool { return f != nil && f.FilesystemConfig != nil && f.FilesystemConfig.Valid() } -// fsType holds the string representation of a [FilesystemConfig]'s concrete type. +// fsType holds the string representation of the concrete type of [FilesystemConfig]. type fsType struct { Type string `json:"type"` } |
