seedling: Detect more information about runtime (#956)

* 🌱 Detect more information about runtime

This introduces a `system` and a `kairos` block available in
kairos-agent get state.

This allows for instance to query the agent for the kairos version as
such:

`kairos-agent get state kairos.version`

Part of #755

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Fixup tests

Signed-off-by: mudler <mudler@c3os.io>

---------

Signed-off-by: mudler <mudler@c3os.io>
This commit is contained in:
Ettore Di Giacinto 2023-02-26 20:18:49 +01:00 committed by Itxaka
parent 29097a8522
commit 81a9680a14

5
go.mod
View File

@ -25,10 +25,12 @@ require (
github.com/pterm/pterm v0.12.54
github.com/qeesung/image2ascii v1.0.1
github.com/santhosh-tekuri/jsonschema/v5 v5.2.0
github.com/spectrocloud-labs/herd v0.3.0
github.com/spectrocloud/peg v0.0.0-20230210110137-1780ceedb1e5
github.com/swaggest/jsonschema-go v0.3.47
github.com/twpayne/go-vfs v1.7.2
github.com/urfave/cli/v2 v2.24.4
github.com/zcalusic/sysinfo v0.9.5
golang.org/x/net v0.7.0
golang.org/x/oauth2 v0.5.0
gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0
@ -73,6 +75,8 @@ require (
github.com/jaypipes/pcidb v1.0.0 // indirect
github.com/jezek/xgb v0.0.0-20210312150743-0e0f116e1240 // indirect
github.com/kbinani/screenshot v0.0.0-20210720154843-7d3a670d8329 // indirect
github.com/kendru/darwin/go/depgraph v0.0.0-20221105232959-877d6a81060c // indirect
github.com/kr/pretty v0.2.1 // indirect
github.com/labstack/gommon v0.4.0 // indirect
github.com/lithammer/fuzzysearch v1.1.5 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
@ -93,7 +97,6 @@ require (
github.com/pkg/errors v0.9.1 // indirect
github.com/rivo/uniseg v0.4.3 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/santhosh-tekuri/jsonschema v1.2.4 // indirect
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/swaggest/refl v1.1.0 // indirect