From 0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 7 Oct 2025 20:06:26 +0900 Subject: container/check: move absolute pathname This allows use of absolute pathname values without importing container. Signed-off-by: Ophestra --- hst/fsephemeral.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hst/fsephemeral.go') 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) -- cgit v1.3.1