function: Describe + Delete endpoints (#230)

This commit is contained in:
Janos Dobronszki
2021-10-14 10:29:18 +01:00
committed by GitHub
parent a67ecc0e36
commit e6e0b1a84d
12 changed files with 406 additions and 63 deletions

View File

@@ -10,6 +10,7 @@ service Function {
rpc Deploy(DeployRequest) returns (DeployResponse) {}
rpc List(ListRequest) returns (ListResponse) {}
rpc Delete(DeleteRequest) returns (DeleteResponse) {}
rpc Describe(DescribeRequest) returns (DescribeResponse) {}
}
// Call a function by name
@@ -65,6 +66,7 @@ message Func {
// used to namespace functions
string project = 1;
// function name
// limitation: must be unique across projects
string name = 2;
// name of handler in source code
string entrypoint = 3;
@@ -92,12 +94,25 @@ message ListResponse {
// Delete a function by name
message DeleteRequest {
// Optional project name
string project = 1;
// The name of the function
string name = 2;
string name = 1;
// Optional project name
string project = 2;
}
message DeleteResponse {
}
message DescribeRequest {
// The name of the function
string name = 1;
// Optional project name
string project = 2;
}
message DescribeResponse {
string updateTime = 1;
string status = 2;
string timeout = 3;
}