Skip to content

Commit

Permalink
feat: add ListPorterGroups
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 committed Aug 6, 2024
1 parent 73c7247 commit aac11cb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proto/librarian/sephirah/v1/sephirah.proto
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@ service LibrarianSephirahService {
// Match ()<-[Equal]->(current user)
rpc ListLinkAccounts(ListLinkAccountsRequest) returns (ListLinkAccountsResponse);

// `Tiphereth` `Normal`
// `Tiphereth` `Admin`
rpc ListPorters(ListPortersRequest) returns (ListPortersResponse);
// `Tiphereth` `Admin`
rpc UpdatePorterStatus(UpdatePorterStatusRequest) returns (UpdatePorterStatusResponse);
// `Tiphereth` `Normal`
rpc ListPorterGroups(ListPorterGroupsRequest) returns (ListPorterGroupsResponse);
// `Tiphereth` `Normal`
rpc CreatePorterContext(CreatePorterContextRequest) returns (CreatePorterContextResponse);
// `Tiphereth` `Normal`
rpc ListPorterContexts(ListPorterContextsRequest) returns (ListPorterContextsResponse);
Expand Down
16 changes: 16 additions & 0 deletions proto/librarian/sephirah/v1/tiphereth.proto
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ message UpdatePorterStatusRequest {
}
message UpdatePorterStatusResponse {}

message ListPorterGroupsRequest {
librarian.v1.PagingRequest paging = 1;
}
message ListPorterGroupsResponse {
librarian.v1.PagingResponse paging = 1;
repeated PorterGroup porter_groups = 2;
}

message CreatePorterContextRequest {
PorterContext context = 1;
}
Expand Down Expand Up @@ -286,3 +294,11 @@ enum PorterContextHandleStatus {
// Blocked by some reason (e.g. no available resources)
PORTER_CONTEXT_HANDLE_STATUS_BLOCKED = 4;
}

message PorterGroup {
string global_name = 1;
repeated string regions = 2;
string context_json = 3;
string name = 4;
string description = 5;
}

0 comments on commit aac11cb

Please sign in to comment.