{"modulePath":"github.com/micro/services","version":"v1.6.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package function\n\n## Variables\n\n```go\nvar File_proto_function_proto protoreflect.FileDescriptor\n```\n\n## Functions\n\n```go\nfunc NewFunctionEndpoints() []*api.Endpoint\n```\n\n```go\nfunc RegisterFunctionHandler(s server.Server, hdlr FunctionHandler, opts ...server.HandlerOption) error\n```\n\n## Types\n\n```go\ntype CallRequest struct {\n\n\t// Name of the function\n\tName string `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\t// Request body that will be passed to the function\n\tRequest *structpb.Struct `protobuf:\"bytes,2,opt,name=request,proto3\" json:\"request,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nCall a function by name\n\n```go\nfunc (*CallRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use CallRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *CallRequest) GetName() string\n```\n\n```go\nfunc (x *CallRequest) GetRequest() *structpb.Struct\n```\n\n```go\nfunc (*CallRequest) ProtoMessage()\n```\n\n```go\nfunc (x *CallRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *CallRequest) Reset()\n```\n\n```go\nfunc (x *CallRequest) String() string\n```\n\n```go\ntype CallResponse struct {\n\n\t// Response body that the function returned\n\tResponse *structpb.Struct `protobuf:\"bytes,1,opt,name=response,proto3\" json:\"response,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*CallResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use CallResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *CallResponse) GetResponse() *structpb.Struct\n```\n\n```go\nfunc (*CallResponse) ProtoMessage()\n```\n\n```go\nfunc (x *CallResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *CallResponse) Reset()\n```\n\n```go\nfunc (x *CallResponse) String() string\n```\n\n```go\ntype DeleteRequest struct {\n\n\t// The name of the function\n\tName string `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nDelete a function by name\n\n```go\nfunc (*DeleteRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *DeleteRequest) GetName() string\n```\n\n```go\nfunc (*DeleteRequest) ProtoMessage()\n```\n\n```go\nfunc (x *DeleteRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *DeleteRequest) Reset()\n```\n\n```go\nfunc (x *DeleteRequest) String() string\n```\n\n```go\ntype DeleteResponse struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*DeleteResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (*DeleteResponse) ProtoMessage()\n```\n\n```go\nfunc (x *DeleteResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *DeleteResponse) Reset()\n```\n\n```go\nfunc (x *DeleteResponse) String() string\n```\n\n```go\ntype DeployRequest struct {\n\n\t// function name\n\tName string `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\t// inline source code\n\tSource string `protobuf:\"bytes,2,opt,name=source,proto3\" json:\"source,omitempty\"`\n\t// github url for a repo\n\tRepo string `protobuf:\"bytes,3,opt,name=repo,proto3\" json:\"repo,omitempty\"`\n\t// branch to deploy. defaults to master\n\tBranch string `protobuf:\"bytes,4,opt,name=branch,proto3\" json:\"branch,omitempty\"`\n\t// optional subfolder path\n\tSubfolder string `protobuf:\"bytes,5,opt,name=subfolder,proto3\" json:\"subfolder,omitempty\"`\n\t// entry point, ie. handler name in the source code\n\t// if not provided, defaults to the name parameter\n\tEntrypoint string `protobuf:\"bytes,6,opt,name=entrypoint,proto3\" json:\"entrypoint,omitempty\"`\n\t// runtime/lanaguage of the function e.g php74,\n\t// nodejs6, nodejs8, nodejs10, nodejs12, nodejs14, nodejs16,\n\t// dotnet3, java11, ruby26, ruby27, go111, go113, go116,\n\t// python37, python38, python39\n\tRuntime string `protobuf:\"bytes,7,opt,name=runtime,proto3\" json:\"runtime,omitempty\"`\n\t// region to deploy in. defaults to europe-west1\n\tRegion string `protobuf:\"bytes,8,opt,name=region,proto3\" json:\"region,omitempty\"`\n\t// environment variables to pass in at runtime\n\tEnvVars map[string]string `protobuf:\"bytes,9,rep,name=env_vars,json=envVars,proto3\" json:\"env_vars,omitempty\" protobuf_key:\"bytes,1,opt,name=key,proto3\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n\t// contains filtered or unexported fields\n}\n```\nDeploy a group of functions\n\n```go\nfunc (*DeployRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use DeployRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *DeployRequest) GetBranch() string\n```\n\n```go\nfunc (x *DeployRequest) GetEntrypoint() string\n```\n\n```go\nfunc (x *DeployRequest) GetEnvVars() map[string]string\n```\n\n```go\nfunc (x *DeployRequest) GetName() string\n```\n\n```go\nfunc (x *DeployRequest) GetRegion() string\n```\n\n```go\nfunc (x *DeployRequest) GetRepo() string\n```\n\n```go\nfunc (x *DeployRequest) GetRuntime() string\n```\n\n```go\nfunc (x *DeployRequest) GetSource() string\n```\n\n```go\nfunc (x *DeployRequest) GetSubfolder() string\n```\n\n```go\nfunc (*DeployRequest) ProtoMessage()\n```\n\n```go\nfunc (x *DeployRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *DeployRequest) Reset()\n```\n\n```go\nfunc (x *DeployRequest) String() string\n```\n\n```go\ntype DeployResponse struct {\n\tFunction *Func `protobuf:\"bytes,1,opt,name=function,proto3\" json:\"function,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*DeployResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use DeployResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *DeployResponse) GetFunction() *Func\n```\n\n```go\nfunc (*DeployResponse) ProtoMessage()\n```\n\n```go\nfunc (x *DeployResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *DeployResponse) Reset()\n```\n\n```go\nfunc (x *DeployResponse) String() string\n```\n\n```go\ntype DescribeRequest struct {\n\n\t// The name of the function\n\tName string `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nGet the info for a deployed function\n\n```go\nfunc (*DescribeRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use DescribeRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *DescribeRequest) GetName() string\n```\n\n```go\nfunc (*DescribeRequest) ProtoMessage()\n```\n\n```go\nfunc (x *DescribeRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *DescribeRequest) Reset()\n```\n\n```go\nfunc (x *DescribeRequest) String() string\n```\n\n```go\ntype DescribeResponse struct {\n\n\t// The function requested\n\tFunction *Func `protobuf:\"bytes,1,opt,name=function,proto3\" json:\"function,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*DescribeResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use DescribeResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *DescribeResponse) GetFunction() *Func\n```\n\n```go\nfunc (*DescribeResponse) ProtoMessage()\n```\n\n```go\nfunc (x *DescribeResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *DescribeResponse) Reset()\n```\n\n```go\nfunc (x *DescribeResponse) String() string\n```\n\n```go\ntype Func struct {\n\n\t// id of the function\n\tId string `protobuf:\"bytes,1,opt,name=id,proto3\" json:\"id,omitempty\"`\n\t// function name\n\t// limitation: must be unique across projects\n\tName string `protobuf:\"bytes,2,opt,name=name,proto3\" json:\"name,omitempty\"`\n\t// the source code\n\tSource string `protobuf:\"bytes,3,opt,name=source,proto3\" json:\"source,omitempty\"`\n\t// git repo address\n\tRepo string `protobuf:\"bytes,4,opt,name=repo,proto3\" json:\"repo,omitempty\"`\n\t// branch to deploy. defaults to master\n\tBranch string `protobuf:\"bytes,5,opt,name=branch,proto3\" json:\"branch,omitempty\"`\n\t// name of handler in source code\n\tEntrypoint string `protobuf:\"bytes,6,opt,name=entrypoint,proto3\" json:\"entrypoint,omitempty\"`\n\t// subfolder path to entrypoint\n\tSubfolder string `protobuf:\"bytes,7,opt,name=subfolder,proto3\" json:\"subfolder,omitempty\"`\n\t// runtime/language of the function e.g php74,\n\t// nodejs6, nodejs8, nodejs10, nodejs12, nodejs14, nodejs16,\n\t// dotnet3, java11, ruby26, ruby27, go111, go113, go116,\n\t// python37, python38, python39\n\tRuntime string `protobuf:\"bytes,8,opt,name=runtime,proto3\" json:\"runtime,omitempty\"`\n\t// region to deploy in. defaults to europe-west1\n\tRegion string `protobuf:\"bytes,9,opt,name=region,proto3\" json:\"region,omitempty\"`\n\t// associated env vars\n\tEnvVars map[string]string `protobuf:\"bytes,10,rep,name=env_vars,json=envVars,proto3\" json:\"env_vars,omitempty\" protobuf_key:\"bytes,1,opt,name=key,proto3\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n\t// eg. ACTIVE, DEPLOY_IN_PROGRESS, OFFLINE etc\n\tStatus string `protobuf:\"bytes,11,opt,name=status,proto3\" json:\"status,omitempty\"`\n\t// unique url of the function\n\tUrl string `protobuf:\"bytes,12,opt,name=url,proto3\" json:\"url,omitempty\"`\n\t// time of creation\n\tCreated string `protobuf:\"bytes,13,opt,name=created,proto3\" json:\"created,omitempty\"`\n\t// time it was updated\n\tUpdated string `protobuf:\"bytes,14,opt,name=updated,proto3\" json:\"updated,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*Func) Descriptor() ([]byte, []int)\n```\nDeprecated: Use Func.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *Func) GetBranch() string\n```\n\n```go\nfunc (x *Func) GetCreated() string\n```\n\n```go\nfunc (x *Func) GetEntrypoint() string\n```\n\n```go\nfunc (x *Func) GetEnvVars() map[string]string\n```\n\n```go\nfunc (x *Func) GetId() string\n```\n\n```go\nfunc (x *Func) GetName() string\n```\n\n```go\nfunc (x *Func) GetRegion() string\n```\n\n```go\nfunc (x *Func) GetRepo() string\n```\n\n```go\nfunc (x *Func) GetRuntime() string\n```\n\n```go\nfunc (x *Func) GetSource() string\n```\n\n```go\nfunc (x *Func) GetStatus() string\n```\n\n```go\nfunc (x *Func) GetSubfolder() string\n```\n\n```go\nfunc (x *Func) GetUpdated() string\n```\n\n```go\nfunc (x *Func) GetUrl() string\n```\n\n```go\nfunc (*Func) ProtoMessage()\n```\n\n```go\nfunc (x *Func) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *Func) Reset()\n```\n\n```go\nfunc (x *Func) String() string\n```\n\n```go\ntype FunctionHandler interface {\n\tCall(context.Context, *CallRequest, *CallResponse) error\n\tDeploy(context.Context, *DeployRequest, *DeployResponse) error\n\tList(context.Context, *ListRequest, *ListResponse) error\n\tDelete(context.Context, *DeleteRequest, *DeleteResponse) error\n\tDescribe(context.Context, *DescribeRequest, *DescribeResponse) error\n\tUpdate(context.Context, *UpdateRequest, *UpdateResponse) error\n\tProxy(context.Context, *ProxyRequest, *ProxyResponse) error\n\tRegions(context.Context, *RegionsRequest, *RegionsResponse) error\n\tReserve(context.Context, *ReserveRequest, *ReserveResponse) error\n\tRuntimes(context.Context, *RuntimesRequest, *RuntimesResponse) error\n\tLogs(context.Context, *LogsRequest, *LogsResponse) error\n}\n```\n\n```go\ntype FunctionService interface {\n\tCall(ctx context.Context, in *CallRequest, opts ...client.CallOption) (*CallResponse, error)\n\tDeploy(ctx context.Context, in *DeployRequest, opts ...client.CallOption) (*DeployResponse, error)\n\tList(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error)\n\tDelete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error)\n\tDescribe(ctx context.Context, in *DescribeRequest, opts ...client.CallOption) (*DescribeResponse, error)\n\tUpdate(ctx context.Context, in *UpdateRequest, opts ...client.CallOption) (*UpdateResponse, error)\n\tProxy(ctx context.Context, in *ProxyRequest, opts ...client.CallOption) (*ProxyResponse, error)\n\tRegions(ctx context.Context, in *RegionsRequest, opts ...client.CallOption) (*RegionsResponse, error)\n\tReserve(ctx context.Context, in *ReserveRequest, opts ...client.CallOption) (*ReserveResponse, error)\n\tRuntimes(ctx context.Context, in *RuntimesRequest, opts ...client.CallOption) (*RuntimesResponse, error)\n\tLogs(ctx context.Context, in *LogsRequest, opts ...client.CallOption) (*LogsResponse, error)\n}\n```\n\n```go\nfunc NewFunctionService(name string, c client.Client) FunctionService\n```\n\n```go\ntype ListRequest struct {\n\t// contains filtered or unexported fields\n}\n```\nList all the deployed functions\n\n```go\nfunc (*ListRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use ListRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (*ListRequest) ProtoMessage()\n```\n\n```go\nfunc (x *ListRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *ListRequest) Reset()\n```\n\n```go\nfunc (x *ListRequest) String() string\n```\n\n```go\ntype ListResponse struct {\n\n\t// List of functions deployed\n\tFunctions []*Func `protobuf:\"bytes,1,rep,name=functions,proto3\" json:\"functions,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*ListResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use ListResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *ListResponse) GetFunctions() []*Func\n```\n\n```go\nfunc (*ListResponse) ProtoMessage()\n```\n\n```go\nfunc (x *ListResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *ListResponse) Reset()\n```\n\n```go\nfunc (x *ListResponse) String() string\n```\n\n```go\ntype LogsRequest struct {\n\n\t// the name of the function\n\tName string `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\t// type of logs to retrieve, currently supported options - \"build\"\n\tLogsType string `protobuf:\"bytes,2,opt,name=logs_type,json=logsType,proto3\" json:\"logs_type,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nGet the logs for a function\n\n```go\nfunc (*LogsRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use LogsRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *LogsRequest) GetLogsType() string\n```\n\n```go\nfunc (x *LogsRequest) GetName() string\n```\n\n```go\nfunc (*LogsRequest) ProtoMessage()\n```\n\n```go\nfunc (x *LogsRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *LogsRequest) Reset()\n```\n\n```go\nfunc (x *LogsRequest) String() string\n```\n\n```go\ntype LogsResponse struct {\n\tLogs string `protobuf:\"bytes,1,opt,name=logs,proto3\" json:\"logs,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*LogsResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use LogsResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *LogsResponse) GetLogs() string\n```\n\n```go\nfunc (*LogsResponse) ProtoMessage()\n```\n\n```go\nfunc (x *LogsResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *LogsResponse) Reset()\n```\n\n```go\nfunc (x *LogsResponse) String() string\n```\n\n```go\ntype ProxyRequest struct {\n\n\t// id of the function\n\tId string `protobuf:\"bytes,1,opt,name=id,proto3\" json:\"id,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nReturn the backend url for proxying\n\n```go\nfunc (*ProxyRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use ProxyRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *ProxyRequest) GetId() string\n```\n\n```go\nfunc (*ProxyRequest) ProtoMessage()\n```\n\n```go\nfunc (x *ProxyRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *ProxyRequest) Reset()\n```\n\n```go\nfunc (x *ProxyRequest) String() string\n```\n\n```go\ntype ProxyResponse struct {\n\n\t// backend url\n\tUrl string `protobuf:\"bytes,1,opt,name=url,proto3\" json:\"url,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*ProxyResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use ProxyResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *ProxyResponse) GetUrl() string\n```\n\n```go\nfunc (*ProxyResponse) ProtoMessage()\n```\n\n```go\nfunc (x *ProxyResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *ProxyResponse) Reset()\n```\n\n```go\nfunc (x *ProxyResponse) String() string\n```\n\n```go\ntype RegionsRequest struct {\n\t// contains filtered or unexported fields\n}\n```\nReturn a list of supported regions\n\n```go\nfunc (*RegionsRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use RegionsRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (*RegionsRequest) ProtoMessage()\n```\n\n```go\nfunc (x *RegionsRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *RegionsRequest) Reset()\n```\n\n```go\nfunc (x *RegionsRequest) String() string\n```\n\n```go\ntype RegionsResponse struct {\n\tRegions []string `protobuf:\"bytes,1,rep,name=regions,proto3\" json:\"regions,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*RegionsResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use RegionsResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *RegionsResponse) GetRegions() []string\n```\n\n```go\nfunc (*RegionsResponse) ProtoMessage()\n```\n\n```go\nfunc (x *RegionsResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *RegionsResponse) Reset()\n```\n\n```go\nfunc (x *RegionsResponse) String() string\n```\n\n```go\ntype Reservation struct {\n\n\t// name of the app\n\tName string `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\t// owner id\n\tOwner string `protobuf:\"bytes,2,opt,name=owner,proto3\" json:\"owner,omitempty\"`\n\t// associated token\n\tToken string `protobuf:\"bytes,3,opt,name=token,proto3\" json:\"token,omitempty\"`\n\t// time of reservation\n\tCreated string `protobuf:\"bytes,4,opt,name=created,proto3\" json:\"created,omitempty\"`\n\t// time reservation expires\n\tExpires string `protobuf:\"bytes,5,opt,name=expires,proto3\" json:\"expires,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nReservation represents a reserved function\n\n```go\nfunc (*Reservation) Descriptor() ([]byte, []int)\n```\nDeprecated: Use Reservation.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *Reservation) GetCreated() string\n```\n\n```go\nfunc (x *Reservation) GetExpires() string\n```\n\n```go\nfunc (x *Reservation) GetName() string\n```\n\n```go\nfunc (x *Reservation) GetOwner() string\n```\n\n```go\nfunc (x *Reservation) GetToken() string\n```\n\n```go\nfunc (*Reservation) ProtoMessage()\n```\n\n```go\nfunc (x *Reservation) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *Reservation) Reset()\n```\n\n```go\nfunc (x *Reservation) String() string\n```\n\n```go\ntype ReserveRequest struct {\n\n\t// name of your app e.g helloworld\n\tName string `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nReserve function names and resources beyond free quota\n\n```go\nfunc (*ReserveRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use ReserveRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *ReserveRequest) GetName() string\n```\n\n```go\nfunc (*ReserveRequest) ProtoMessage()\n```\n\n```go\nfunc (x *ReserveRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *ReserveRequest) Reset()\n```\n\n```go\nfunc (x *ReserveRequest) String() string\n```\n\n```go\ntype ReserveResponse struct {\n\n\t// The app reservation\n\tReservation *Reservation `protobuf:\"bytes,1,opt,name=reservation,proto3\" json:\"reservation,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*ReserveResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use ReserveResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *ReserveResponse) GetReservation() *Reservation\n```\n\n```go\nfunc (*ReserveResponse) ProtoMessage()\n```\n\n```go\nfunc (x *ReserveResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *ReserveResponse) Reset()\n```\n\n```go\nfunc (x *ReserveResponse) String() string\n```\n\n```go\ntype RuntimesRequest struct {\n\t// contains filtered or unexported fields\n}\n```\nReturn a list of supported runtimes\n\n```go\nfunc (*RuntimesRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use RuntimesRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (*RuntimesRequest) ProtoMessage()\n```\n\n```go\nfunc (x *RuntimesRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *RuntimesRequest) Reset()\n```\n\n```go\nfunc (x *RuntimesRequest) String() string\n```\n\n```go\ntype RuntimesResponse struct {\n\tRuntimes []string `protobuf:\"bytes,1,rep,name=runtimes,proto3\" json:\"runtimes,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*RuntimesResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use RuntimesResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *RuntimesResponse) GetRuntimes() []string\n```\n\n```go\nfunc (*RuntimesResponse) ProtoMessage()\n```\n\n```go\nfunc (x *RuntimesResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *RuntimesResponse) Reset()\n```\n\n```go\nfunc (x *RuntimesResponse) String() string\n```\n\n```go\ntype UpdateRequest struct {\n\n\t// function name\n\tName string `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\t// inline source code\n\tSource string `protobuf:\"bytes,2,opt,name=source,proto3\" json:\"source,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nUpdate a function. Downloads the source, builds and redeploys\n\n```go\nfunc (*UpdateRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *UpdateRequest) GetName() string\n```\n\n```go\nfunc (x *UpdateRequest) GetSource() string\n```\n\n```go\nfunc (*UpdateRequest) ProtoMessage()\n```\n\n```go\nfunc (x *UpdateRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *UpdateRequest) Reset()\n```\n\n```go\nfunc (x *UpdateRequest) String() string\n```\n\n```go\ntype UpdateResponse struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*UpdateResponse) Descriptor() ([]byte, []int)\n```\nDeprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.\n\n```go\nfunc (*UpdateResponse) ProtoMessage()\n```\n\n```go\nfunc (x *UpdateResponse) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *UpdateResponse) Reset()\n```\n\n```go\nfunc (x *UpdateResponse) String() string\n```\n\n","path":"github.com/micro/services/function/proto","name":"function","synopsis":"","isRedistributable":true}
