Skip to content

Commit

Permalink
capten plugins get api
Browse files Browse the repository at this point in the history
  • Loading branch information
vramk23 committed Oct 25, 2023
1 parent 9199799 commit 26fcca0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions proto/capten_plugins.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ option go_package = "/captenpluginspb";
package captenpluginspb;

service capten_plugins {
rpc GetCaptenPlugins(GetCaptenPluginsRequest) returns (GetCaptenPluginsResponse) {}

rpc AddGitProject(AddGitProjectRequest) returns (AddGitProjectResponse) {}
rpc UpdateGitProject(UpdateGitProjectRequest) returns (UpdateGitProjectResponse) {}
rpc DeleteGitProject(DeleteGitProjectRequest) returns (DeleteGitProjectResponse) {}
Expand All @@ -24,6 +26,7 @@ service capten_plugins {
rpc RegisterTektonProject(RegisterTektonProjectRequest) returns (RegisterTektonProjectResponse) {}
rpc GetTektonProjects(GetTektonProjectsRequest) returns (GetTektonProjectsResponse) {}
rpc UnRegisterTektonProject(UnRegisterTektonProjectRequest) returns (UnRegisterTektonProjectResponse) {}

}

enum StatusCode {
Expand Down Expand Up @@ -220,3 +223,18 @@ message GetTektonProjectsResponse {
string statusMessage = 2;
repeated TektonProject projects = 3;
}

message CaptenPlugin {
string pluginName = 1;
string pluginDescription = 2;
string launchURL = 3;
string launchIcon = 4;
}

message GetCaptenPluginsRequest {
}

message GetCaptenPluginsResponse {
StatusCode status = 1;
string statusMessage = 2;
}

0 comments on commit 26fcca0

Please sign in to comment.