aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/seal.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-24 18:44:14 +0900
committerOphestra <cat@gensokyo.uk>2025-09-24 18:44:14 +0900
commit1c4f593566943d8a0ce16eb3cae77f8c50238202 (patch)
tree2ac5c41a84127ff4cd5a275c81e834c495a109c9 /internal/app/seal.go
parentb99c63337df4068b36d7d8de2ae79fd274172977 (diff)
internal/app: unexport outcome, remove app struct
The App struct no longer does anything, and the outcome struct is entirely opaque. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/seal.go')
-rw-r--r--internal/app/seal.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/app/seal.go b/internal/app/seal.go
index cafd6915..2d7fea39 100644
--- a/internal/app/seal.go
+++ b/internal/app/seal.go
@@ -32,8 +32,8 @@ func newWithMessageError(msg string, err error) error {
return &hst.AppError{Step: "finalise", Err: err, Msg: msg}
}
-// An Outcome is the runnable state of a hakurei container via [hst.Config].
-type Outcome struct {
+// An outcome is the runnable state of a hakurei container via [hst.Config].
+type outcome struct {
// copied from initialising [app]
id *stringPair[state.ID]
// copied from [sys.State]
@@ -66,7 +66,7 @@ type shareHost struct {
// process-specific directory in XDG_RUNTIME_DIR, empty if unused
runtimeSharePath *container.Absolute
- seal *Outcome
+ seal *outcome
sc hst.Paths
}
@@ -119,7 +119,7 @@ type hsuUser struct {
username string
}
-func (seal *Outcome) finalise(ctx context.Context, k sys.State, config *hst.Config) error {
+func (seal *outcome) finalise(ctx context.Context, k sys.State, config *hst.Config) error {
const (
home = "HOME"
shell = "SHELL"