Skip to content

Commit

Permalink
feat: update schema proto
Browse files Browse the repository at this point in the history
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
  • Loading branch information
matthisholleville committed Apr 25, 2023
1 parent 1c7561b commit 8f75d60
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions protobuf/schema/v1/schema.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ package schema.v1;

option go_package = "schema/service/v1";

message Analysis {
repeated AnalysisItem analysis = 1;
}

message AnalysisItem {
string name = 1;
string description = 2;
}

message AnalyzeRequest {
string backend = 1;
string namespace = 2;
Expand All @@ -24,16 +15,38 @@ message AnalyzeRequest {
string output = 8;
}

message ErrorDetail {
string text = 1;
}

message Result {
string kind = 1;
string name = 2;
ErrorDetail error = 3;
string details = 4;
string parent_object = 5;
}

message AnalyzeResponse {
Analysis analysis = 1;
Error error = 2;
Analysis analysis = 1;
Error error = 2;
}

message Error {
string message = 1;
int32 code = 2;
string message = 1;
int32 code = 2;
}

message Analysis {
repeated AnalysisItem analysis = 1;
}

message AnalysisItem {
string name = 1;
string description = 2;
}


// Service defines the exposed rpcs of k8sgpt
service Server {
rpc Analyze (AnalyzeRequest) returns (AnalyzeResponse) {}
Expand Down

0 comments on commit 8f75d60

Please sign in to comment.