hst/instance: embed config struct
All checks were successful
Test / Create distribution (push) Successful in 34s
Test / Sandbox (push) Successful in 41s
Test / Sandbox (race detector) (push) Successful in 40s
Test / Hakurei (push) Successful in 2m20s
Test / Hakurei (race detector) (push) Successful in 2m59s
Test / Hpkg (push) Successful in 3m20s
Test / Flake checks (push) Successful in 1m28s
All checks were successful
Test / Create distribution (push) Successful in 34s
Test / Sandbox (push) Successful in 41s
Test / Sandbox (race detector) (push) Successful in 40s
Test / Hakurei (push) Successful in 2m20s
Test / Hakurei (race detector) (push) Successful in 2m59s
Test / Hpkg (push) Successful in 3m20s
Test / Flake checks (push) Successful in 1m28s
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:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user