Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OrbCommand protos for Fleet Commander #38

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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");
}
}