Skip to content

Commit

Permalink
Refine applications
Browse files Browse the repository at this point in the history
- add application arguments to protobuffer
- add automatic nix to JSON conversion for application definition
- remove obsolete application start function from go implementation
- add argument processing to agent:
	- parsing application manifest
	- validate extra arguments
- add extra (optional) arguments to givc-cli
- add admin server args forwarding

Signed-off-by: Manuel Bluhm <[email protected]>
  • Loading branch information
mbssrc committed Sep 17, 2024
1 parent 6a85012 commit b33c685
Show file tree
Hide file tree
Showing 30 changed files with 1,639 additions and 319 deletions.
575 changes: 491 additions & 84 deletions api/admin/admin.pb.go

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion api/admin/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,15 @@ message RegistryResponse {
string CmdStatus = 1;
}

message ApplicationArg {
string ArgType = 1;
string Value = 2;
}

message ApplicationRequest {
string AppName = 1;
optional string VmName = 2;
repeated ApplicationArg Args = 3;
}

message ApplicationResponse {
Expand Down Expand Up @@ -74,5 +80,5 @@ service AdminService {
rpc Reboot(Empty) returns (Empty) {}

rpc QueryList(Empty) returns (QueryListResponse) {}
rpc Watch(Empty) returns (stream WatchItem) {}
rpc Watch(Empty) returns (stream WatchItem) {}
}
106 changes: 104 additions & 2 deletions api/admin/admin_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions api/hwid/hwid.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/hwid/hwid_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/protoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ gen_protoc() {
"$1"/"$2"
}

gen_protoc api/admin admin.proto
gen_protoc api/systemd systemd.proto
gen_protoc api/wifi wifi.proto
gen_protoc api/hwid hwid.proto
Loading

0 comments on commit b33c685

Please sign in to comment.