diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-07 20:06:26 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-07 20:57:58 +0900 |
| commit | 0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 (patch) | |
| tree | dfe9c40ceb8c1be8d2728a2db9017bffef174d3d /hst/fsephemeral.go | |
| parent | d23b4dc9e64d3f00e746c65f3038a1a6de44b8f5 (diff) | |
container/check: move absolute pathname
This allows use of absolute pathname values without importing container.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/fsephemeral.go')
| -rw-r--r-- | hst/fsephemeral.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hst/fsephemeral.go b/hst/fsephemeral.go index e09fa8f9..631235b5 100644 --- a/hst/fsephemeral.go +++ b/hst/fsephemeral.go @@ -5,7 +5,7 @@ import ( "os" "strings" - "hakurei.app/container" + "hakurei.app/container/check" ) func init() { gob.Register(new(FSEphemeral)) } @@ -16,7 +16,7 @@ const FilesystemEphemeral = "ephemeral" // FSEphemeral represents an ephemeral container mount point. type FSEphemeral struct { // mount point in container - Target *container.Absolute `json:"dst,omitempty"` + Target *check.Absolute `json:"dst,omitempty"` // do not mount filesystem read-only Write bool `json:"write,omitempty"` // upper limit on the size of the filesystem @@ -27,14 +27,14 @@ type FSEphemeral struct { func (e *FSEphemeral) Valid() bool { return e != nil && e.Target != nil } -func (e *FSEphemeral) Path() *container.Absolute { +func (e *FSEphemeral) Path() *check.Absolute { if !e.Valid() { return nil } return e.Target } -func (e *FSEphemeral) Host() []*container.Absolute { return nil } +func (e *FSEphemeral) Host() []*check.Absolute { return nil } const fsEphemeralDefaultPerm = os.FileMode(0755) |
