Skip to content

Commit

Permalink
OrbCommand protos for Fleet Commander
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Quinn committed Dec 29, 2024
1 parent 6de9722 commit 99897b1
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
44 changes: 44 additions & 0 deletions proto/orb_commands/v1/commands.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
syntax = "proto3";

package orb_commands.v1;

message OrbCommandIssue {
uint64 command_id = 1;
oneof command {
OrbDetailsRequest orb_details = 2;
RebootRequest reboot = 3;
}
}

message OrbCommandResult {
uint64 command_id = 1;
oneof result {
OrbCommandSuccess success = 2;
OrbCommandError error = 3;
OrbDetailsResponse orb_details = 4;
}
}

message OrbCommandSuccess {}

message OrbCommandError {
string error = 1;
}

message OrbDetailsRequest {}

message OrbDetailsResponse {
string orb_id = 1;
string orb_name = 2;
string jabil_id = 3;
string hardware_version = 4;
string software_version = 5;
string software_update_version = 6;
string os_release_type = 7;
string active_slot = 8;
uint64 uptime_seconds = 9;
}

message RebootRequest {
uint64 delay_seconds = 1;
}
1 change: 1 addition & 0 deletions rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ fn main() {
"./proto/relay.proto",
"./proto/common/v1/orb.proto",
"./proto/common/v1/misc.proto",
"./proto/orb_commands/v1/commands.proto",
"./proto/self_serve/app/v1/app.proto",
"./proto/self_serve/orb/v1/orb.proto",
"./proto/config/backend.proto",
Expand Down
6 changes: 6 additions & 0 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ pub mod self_serve {
pub mod config {
tonic::include_proto!("config");
}

pub mod orb_commands {
pub mod v1 {
tonic::include_proto!("orb_commands.v1");
}
}

0 comments on commit 99897b1

Please sign in to comment.