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) 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 (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) Update(ctx context.Context, req *function.UpdateRequest, rsp *function.UpdateResponse) 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/" )
View Source
var ( GoogleRuntimes = []string{ "nodejs16", "nodejs14", "nodejs12", "nodejs10", "nodejs8", "nodejs6", "python39", "python38", "python37", "go116", "go113", "go111", "java11", "dotnet3", "ruby27", "ruby26", "php74", } // hardcoded list of supported regions GoogleRegions = []string{"europe-west1", "us-central1", "us-east1", "us-west1", "asia-east1"} )
Functions ¶
This section is empty.
Types ¶
type Function ¶
type Function struct{}
func (*Function) Reserve ¶ added in v0.24.0
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
type GoogleFunction ¶ added in v0.24.0
type GoogleFunction struct {
*Function
// contains filtered or unexported fields
}
func NewFunction ¶
func NewFunction() *GoogleFunction
func (*GoogleFunction) Call ¶ added in v0.24.0
func (e *GoogleFunction) Call(ctx context.Context, req *function.CallRequest, rsp *function.CallResponse) error
func (*GoogleFunction) Delete ¶ added in v0.24.0
func (e *GoogleFunction) Delete(ctx context.Context, req *function.DeleteRequest, rsp *function.DeleteResponse) error
func (*GoogleFunction) Deploy ¶ added in v0.24.0
func (e *GoogleFunction) Deploy(ctx context.Context, req *function.DeployRequest, rsp *function.DeployResponse) error
func (*GoogleFunction) Describe ¶ added in v0.24.0
func (e *GoogleFunction) Describe(ctx context.Context, req *function.DescribeRequest, rsp *function.DescribeResponse) error
func (*GoogleFunction) List ¶ added in v0.24.0
func (e *GoogleFunction) List(ctx context.Context, req *function.ListRequest, rsp *function.ListResponse) error
func (*GoogleFunction) Proxy ¶ added in v0.24.0
func (g *GoogleFunction) Proxy(ctx context.Context, req *function.ProxyRequest, rsp *function.ProxyResponse) error
func (*GoogleFunction) Regions ¶ added in v0.24.0
func (e *GoogleFunction) Regions(ctx context.Context, req *function.RegionsRequest, rsp *function.RegionsResponse) error
func (*GoogleFunction) Update ¶ added in v0.24.0
func (e *GoogleFunction) Update(ctx context.Context, req *function.UpdateRequest, rsp *function.UpdateResponse) error
type Reservation ¶ added in v0.24.0
Click to show internal directories.
Click to hide internal directories.