aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-21 01:56:44 +0900
committerOphestra <cat@gensokyo.uk>2025-10-21 01:56:44 +0900
commit5063b774c13ab62786112080724ce28506fe7a99 (patch)
tree746e88fbe5203adf8d762f1abc5cdedebe06bcd0 /hst
parent766dd89ffa198a315b043230f904636461c41efe (diff)
hst: expose version string
The hst API is tied to this version string. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst')
-rw-r--r--hst/hst.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/hst/hst.go b/hst/hst.go
index c1511f6e..7fd7619c 100644
--- a/hst/hst.go
+++ b/hst/hst.go
@@ -52,7 +52,10 @@ type Paths struct {
RunDirPath *check.Absolute `json:"run_dir_path"`
}
+// Info holds basic system information collected from the implementation.
type Info struct {
+ // Version is a hardcoded version string.
+ Version string `json:"version"`
// User is the userid according to hsu.
User int `json:"user"`