hst/instance: embed config struct

This makes the resulting json easier to parse since it can now be deserialised into the config struct.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-10-23 23:25:46 +09:00
parent 05488bfb8f
commit 2442eda8d9
4 changed files with 285 additions and 293 deletions

View File

@@ -80,7 +80,7 @@ type State struct {
ShimPID int `json:"shim_pid"`
// Configuration used to start the container.
Config *Config `json:"config"`
*Config
// Point in time the shim process was created.
Time time.Time `json:"time"`