Skip to content

Commit

Permalink
feat: update proto to include alias set and alias delete commands
Browse files Browse the repository at this point in the history
  • Loading branch information
chamini2 committed Dec 13, 2023
1 parent 395d211 commit a1a284e
Show file tree
Hide file tree
Showing 4 changed files with 213 additions and 21 deletions.
22 changes: 22 additions & 0 deletions projects/isolate_proto/src/isolate_proto/controller.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ service IsolateController {
rpc RegisterApplication (RegisterApplicationRequest) returns (stream RegisterApplicationResult) {};
// Update configuration of an existing application.
rpc UpdateApplication (UpdateApplicationRequest) returns (UpdateApplicationResult) {};
// Set alias to point to an existing application.
rpc SetAlias (SetAliasRequest) returns (SetAliasResult) {};
// Delete an alias.
rpc DeleteAlias (DeleteAliasRequest) returns (DeleteAliasResult) {};
// List aliased registered functions
rpc ListAliases (ListAliasesRequest) returns (ListAliasesResult) {};
// Sets a user secret.
Expand Down Expand Up @@ -189,6 +193,24 @@ message UpdateApplicationResult {
AliasInfo alias_info = 1;
}

message SetAliasRequest {
string alias = 1;
string revision = 2;
ApplicationAuthMode auth_mode = 3;
}

message SetAliasResult {
// Empty. For future use.
}

message DeleteAliasRequest {
string alias = 1;
}

message DeleteAliasResult {
string revision = 1;
}

message ListAliasesRequest {
// Empty. For future use.
}
Expand Down
50 changes: 29 additions & 21 deletions projects/isolate_proto/src/isolate_proto/controller_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a1a284e

Please sign in to comment.