Documentation ¶
Index ¶
- Variables
- type Function
- type GoogleFunction
- func (e *GoogleFunction) Call(ctx context.Context, req *function.CallRequest, rsp *function.CallResponse) error
- func (e *GoogleFunction) Delete(ctx context.Context, req *function.DeleteRequest, rsp *function.DeleteResponse) error
- func (e *GoogleFunction) DeleteData(ctx context.Context, request *adminpb.DeleteDataRequest, ...) error
- func (e *GoogleFunction) Deploy(ctx context.Context, req *function.DeployRequest, rsp *function.DeployResponse) error
- func (e *GoogleFunction) Describe(ctx context.Context, req *function.DescribeRequest, ...) error
- func (e *GoogleFunction) List(ctx context.Context, req *function.ListRequest, rsp *function.ListResponse) error
- func (e *GoogleFunction) Logs(ctx context.Context, req *function.LogsRequest, rsp *function.LogsResponse) error
- func (g *GoogleFunction) Proxy(ctx context.Context, req *function.ProxyRequest, rsp *function.ProxyResponse) error
- func (e *GoogleFunction) Regions(ctx context.Context, req *function.RegionsRequest, ...) error
- func (e *GoogleFunction) Runtimes(ctx context.Context, req *function.RuntimesRequest, ...) error
- func (e *GoogleFunction) Update(ctx context.Context, req *function.UpdateRequest, rsp *function.UpdateResponse) error
- func (e *GoogleFunction) Usage(ctx context.Context, request *adminpb.UsageRequest, ...) error
- func (e *GoogleFunction) WriteGcloudIgnore(dir string) error
- type Reservation
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IDFormat = regexp.MustCompilePOSIX("^[a-z0-9-]+$") NameFormat = regexp.MustCompilePOSIX("^[a-z0-9]+$") FunctionKey = "function/func/" OwnerKey = "function/owner/" ReservationKey = "function/reservation/" BuildLogsKey = "function/buildlogs/" )
View Source
var ( GoogleRuntimes = []string{ "nodejs16", "python39", "go116", "java11", "dotnet3", "ruby27", "php74", } // hardcoded list of supported regions GoogleRegions = []string{"europe-west1", "us-central1", "us-east1", "us-west1", "asia-east1"} SourceFile = map[string]string{ "nodejs16": "index.js", "nodejs14": "index.js", "nodejs12": "index.js", "nodejs10": "index.js", "nodejs8": "index.js", "nodejs6": "index.js", "python39": "main.py", "python38": "main.py", "python37": "main.py", "go116": "main.go", "go113": "main.go", "go111": "main.go", "java11": "main.java", "dotnet3": "main.cs", "ruby27": "app.rb", "ruby26": "app.rb", "php74": "index.php", } GitIgnore = []string{ ".git", "dist", "node_modules", "vendor", "*.jar", } )
Functions ¶
This section is empty.
Types ¶
type Function ¶
type Function struct{}
func (*Function) Reserve ¶
func (f *Function) Reserve(ctx context.Context, req *pb.ReserveRequest, rsp *pb.ReserveResponse) error
Call is a single request handler called via client.Call or the generated client code
func (*Function) Usage ¶
func (a *Function) Usage(ctx context.Context, request *adminpb.UsageRequest, response *adminpb.UsageResponse) error
type GoogleFunction ¶
type GoogleFunction struct { *Function // contains filtered or unexported fields }
func NewFunction ¶
func NewFunction(svc *service.Service) *GoogleFunction
func (*GoogleFunction) Call ¶
func (e *GoogleFunction) Call(ctx context.Context, req *function.CallRequest, rsp *function.CallResponse) error
func (*GoogleFunction) Delete ¶
func (e *GoogleFunction) Delete(ctx context.Context, req *function.DeleteRequest, rsp *function.DeleteResponse) error
func (*GoogleFunction) DeleteData ¶
func (e *GoogleFunction) DeleteData(ctx context.Context, request *adminpb.DeleteDataRequest, response *adminpb.DeleteDataResponse) error
func (*GoogleFunction) Deploy ¶
func (e *GoogleFunction) Deploy(ctx context.Context, req *function.DeployRequest, rsp *function.DeployResponse) error
func (*GoogleFunction) Describe ¶
func (e *GoogleFunction) Describe(ctx context.Context, req *function.DescribeRequest, rsp *function.DescribeResponse) error
func (*GoogleFunction) List ¶
func (e *GoogleFunction) List(ctx context.Context, req *function.ListRequest, rsp *function.ListResponse) error
func (*GoogleFunction) Logs ¶
func (e *GoogleFunction) Logs(ctx context.Context, req *function.LogsRequest, rsp *function.LogsResponse) error
func (*GoogleFunction) Proxy ¶
func (g *GoogleFunction) Proxy(ctx context.Context, req *function.ProxyRequest, rsp *function.ProxyResponse) error
func (*GoogleFunction) Regions ¶
func (e *GoogleFunction) Regions(ctx context.Context, req *function.RegionsRequest, rsp *function.RegionsResponse) error
func (*GoogleFunction) Runtimes ¶
func (e *GoogleFunction) Runtimes(ctx context.Context, req *function.RuntimesRequest, rsp *function.RuntimesResponse) error
func (*GoogleFunction) Update ¶
func (e *GoogleFunction) Update(ctx context.Context, req *function.UpdateRequest, rsp *function.UpdateResponse) error
func (*GoogleFunction) Usage ¶
func (e *GoogleFunction) Usage(ctx context.Context, request *adminpb.UsageRequest, response *adminpb.UsageResponse) error
func (*GoogleFunction) WriteGcloudIgnore ¶
func (e *GoogleFunction) WriteGcloudIgnore(dir string) error
type Reservation ¶
Click to show internal directories.
Click to hide internal directories.