handler

package
v0.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

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 (*GoogleFunction) Delete added in v0.24.0

func (*GoogleFunction) DeleteData added in v0.25.0

func (e *GoogleFunction) DeleteData(ctx context.Context, request *adminpb.DeleteDataRequest, response *adminpb.DeleteDataResponse) error

func (*GoogleFunction) Deploy added in v0.24.0

func (*GoogleFunction) Describe added in v0.24.0

func (*GoogleFunction) List added in v0.24.0

func (*GoogleFunction) Proxy added in v0.24.0

func (*GoogleFunction) Regions added in v0.24.0

func (*GoogleFunction) Update added in v0.24.0

type Reservation added in v0.24.0

type Reservation struct {
	// The function name
	Name string `json:"name"`
	// The owner e.g tenant id
	Owner string `json:"owner"`
	// Uniq associated token
	Token string `json:"token"`
	// Time of creation
	Created time.Time `json:"created"`
	// The expiry time
	Expires time.Time `json:"expires"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL