aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/fslink.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-07 20:06:26 +0900
committerOphestra <cat@gensokyo.uk>2025-10-07 20:57:58 +0900
commit0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 (patch)
treedfe9c40ceb8c1be8d2728a2db9017bffef174d3d /hst/fslink.go
parentd23b4dc9e64d3f00e746c65f3038a1a6de44b8f5 (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/fslink.go')
-rw-r--r--hst/fslink.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/hst/fslink.go b/hst/fslink.go
index 40b4fd8b..473506e6 100644
--- a/hst/fslink.go
+++ b/hst/fslink.go
@@ -4,7 +4,7 @@ import (
"encoding/gob"
"path"
- "hakurei.app/container"
+ "hakurei.app/container/check"
)
func init() { gob.Register(new(FSLink)) }
@@ -15,7 +15,7 @@ const FilesystemLink = "link"
// FSLink represents a symlink in the container filesystem.
type FSLink struct {
// link path in container
- Target *container.Absolute `json:"dst"`
+ Target *check.Absolute `json:"dst"`
// linkname the symlink points to
Linkname string `json:"linkname"`
// whether to dereference linkname before creating the link
@@ -29,14 +29,14 @@ func (l *FSLink) Valid() bool {
return !l.Dereference || path.IsAbs(l.Linkname)
}
-func (l *FSLink) Path() *container.Absolute {
+func (l *FSLink) Path() *check.Absolute {
if !l.Valid() {
return nil
}
return l.Target
}
-func (l *FSLink) Host() []*container.Absolute { return nil }
+func (l *FSLink) Host() []*check.Absolute { return nil }
func (l *FSLink) Apply(z *ApplyState) {
if !l.Valid() {