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

@@ -30,6 +30,14 @@ export class FunctionService {
request
) as Promise<DeployResponse>;
}
//
describe(request: DescribeRequest): Promise<DescribeResponse> {
return this.client.call(
"function",
"Describe",
request
) as Promise<DescribeResponse>;
}
// List all the deployed functions
list(request: ListRequest): Promise<ListResponse> {
return this.client.call(
@@ -87,10 +95,24 @@ export interface DeployRequest {
export interface DeployResponse {}
export interface DescribeRequest {
// The name of the function
name?: string;
// Optional project name
project?: string;
}
export interface DescribeResponse {
status?: string;
timeout?: string;
updateTime?: string;
}
export interface Func {
// name of handler in source code
entrypoint?: string;
// function name
// limitation: must be unique across projects
name?: string;
// project of function, optional
// defaults to literal "default"