@@ -2,14 +2,14 @@ syntax = "proto3";
|
||||
|
||||
package vantage.v1;
|
||||
|
||||
option go_package = "gitea.hostxtra.co.uk/mrhid6/vantage/server/internal/grpc/pb";
|
||||
option go_package="gitea.hostxtra.co.uk/mrhid6/vantage/server/internal/grpc/pb";
|
||||
|
||||
service Vantage {
|
||||
rpc Register(RegisterRequest) returns (RegisterResponse);
|
||||
rpc SyncKeys(SyncRequest) returns (SyncResponse);
|
||||
rpc UploadGeneratedKey(UploadKeyRequest) returns (UploadKeyResponse);
|
||||
rpc ReportUpdates(ReportUpdatesRequest) returns (ReportUpdatesResponse);
|
||||
rpc ReportInventory(InventoryReport) returns (InventoryReportResponse);
|
||||
rpc ReportInventory(InventoryReport) returns (InventoryReportResponse);
|
||||
rpc SyncMonitors(SyncMonitorsRequest) returns (SyncMonitorsResponse);
|
||||
rpc ReportChecks(ReportChecksRequest) returns (ReportChecksResponse);
|
||||
// Bidirectional stream: agent sends auth once, server pushes commands.
|
||||
@@ -63,7 +63,9 @@ message AgentMessage {
|
||||
}
|
||||
}
|
||||
|
||||
message AgentReady {}
|
||||
message AgentReady {
|
||||
|
||||
}
|
||||
|
||||
message CommandResult {
|
||||
string command_id = 1;
|
||||
@@ -83,7 +85,9 @@ message ReportUpdatesRequest {
|
||||
repeated PackageUpdate updates = 3;
|
||||
}
|
||||
|
||||
message ReportUpdatesResponse {}
|
||||
message ReportUpdatesResponse {
|
||||
|
||||
}
|
||||
|
||||
message CPUReport {
|
||||
string model = 1;
|
||||
@@ -117,7 +121,9 @@ message InventoryReport {
|
||||
string kernel = 9;
|
||||
}
|
||||
|
||||
message InventoryReportResponse {}
|
||||
message InventoryReportResponse {
|
||||
|
||||
}
|
||||
|
||||
message MonitorSpec {
|
||||
string monitor_id = 1;
|
||||
@@ -157,9 +163,13 @@ message ReportChecksRequest {
|
||||
repeated CheckResult results = 3;
|
||||
}
|
||||
|
||||
message ReportChecksResponse {}
|
||||
message ReportChecksResponse {
|
||||
|
||||
message ApplyUpdatesCmd {}
|
||||
}
|
||||
|
||||
message ApplyUpdatesCmd {
|
||||
|
||||
}
|
||||
|
||||
message ServerCommand {
|
||||
string command_id = 1;
|
||||
@@ -201,7 +211,7 @@ message RunStepCmd {
|
||||
string script = 2;
|
||||
map<string, string> env = 3;
|
||||
int32 timeout_seconds = 4;
|
||||
string workspace_id = 5; // per-run working dir the agent creates & uses as cwd
|
||||
string workspace_id = 5;
|
||||
}
|
||||
|
||||
message StepResult {
|
||||
|
||||
Reference in New Issue
Block a user