diff options
| author | unitexe <unitexe70@gmail.com> | 2025-12-22 13:23:47 -0600 |
|---|---|---|
| committer | unitexe <unitexe70@gmail.com> | 2025-12-22 13:25:11 -0600 |
| commit | 1e7a50db174e6389c36ef356b6a32b9b13890dec (patch) | |
| tree | 51396a29232ebaeba2f464ecd924fceb766963e4 /proto | |
- Get root
- Get select u-boot environment variables
- Get build info from /etc/buildinfo
- Get versions from /etc/sw-versions
Diffstat (limited to 'proto')
| -rw-r--r-- | proto/buildinfo.proto | 19 | ||||
| -rw-r--r-- | proto/devinfo.proto | 38 | ||||
| -rw-r--r-- | proto/swversions.proto | 12 | ||||
| -rw-r--r-- | proto/ubootenv.proto | 12 |
4 files changed, 81 insertions, 0 deletions
diff --git a/proto/buildinfo.proto b/proto/buildinfo.proto new file mode 100644 index 0000000..2cf9dab --- /dev/null +++ b/proto/buildinfo.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +package unit.info.v0; + +message Distro { + string name = 1; + string version = 2; +} + +message Layer { + string name = 1; + string branch = 2; + string revision = 3; +} + +message BuildInfo { + Distro distro = 1; + repeated Layer layers = 2; +} diff --git a/proto/devinfo.proto b/proto/devinfo.proto new file mode 100644 index 0000000..5061ffa --- /dev/null +++ b/proto/devinfo.proto @@ -0,0 +1,38 @@ +syntax = "proto3"; + +package unit.info.v0; + +import "buildinfo.proto"; +import "ubootenv.proto"; +import "swversions.proto"; + +service DevInfo { + rpc GetBuildInfo (GetBuildInfoRequest) returns (GetBuildInfoResponse) {} + rpc GetRoot (GetRootRequest) returns (GetRootResponse) {} + rpc GetSwVersions (GetSwVersionsRequest) returns (GetSwVersionsResponse) {} + rpc GetUbootEnv (GetUbootEnvRequest) returns (GetUbootEnvResponse) {} +} + +message GetBuildInfoRequest {} + +message GetBuildInfoResponse { + BuildInfo info = 1; +} + +message GetRootRequest {} + +message GetRootResponse { + string root = 1; +} + +message GetSwVersionsRequest {} + +message GetSwVersionsResponse { + SwVersions versions = 1; +} + +message GetUbootEnvRequest {} + +message GetUbootEnvResponse { + UbootEnv env = 1; +} diff --git a/proto/swversions.proto b/proto/swversions.proto new file mode 100644 index 0000000..bf0ffb2 --- /dev/null +++ b/proto/swversions.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +package unit.info.v0; + +message SwVersion { + string name = 1; + string version = 2; +} + +message SwVersions { + repeated SwVersion versions = 1; +} diff --git a/proto/ubootenv.proto b/proto/ubootenv.proto new file mode 100644 index 0000000..ad201da --- /dev/null +++ b/proto/ubootenv.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +package unit.info.v0; + +message EnvVar { + string name = 1; + string value = 2; +} + +message UbootEnv { + repeated EnvVar vars = 1; +} |
