Documentation
¶
Index ¶
- Variables
- type App
- type GoogleApp
- func (e *GoogleApp) Delete(ctx context.Context, req *pb.DeleteRequest, rsp *pb.DeleteResponse) error
- func (e *GoogleApp) List(ctx context.Context, req *pb.ListRequest, rsp *pb.ListResponse) error
- func (e *GoogleApp) Regions(ctx context.Context, req *pb.RegionsRequest, rsp *pb.RegionsResponse) error
- func (e *GoogleApp) Run(ctx context.Context, req *pb.RunRequest, rsp *pb.RunResponse) error
- func (e *GoogleApp) Status(ctx context.Context, req *pb.StatusRequest, rsp *pb.StatusResponse) error
- func (e *GoogleApp) Update(ctx context.Context, req *pb.UpdateRequest, rsp *pb.UpdateResponse) error
- type Reservation
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OwnerKey = "app/owner/" ServiceKey = "app/service/" ReservationKey = "app/reservation/" NameFormat = regexp.MustCompilePOSIX("[a-z0-9]+") )
View Source
var ( // hardcoded list of supported regions GoogleRegions = []string{"europe-west1", "us-central1", "us-east1", "us-west1", "asia-east1"} // hardcoded list of valid repos GitRepos = []string{"github.com", "gitlab.org", "bitbucket.org"} )
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct{}
func (*App) Reserve ¶
func (a *App) 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 (*App) Resolve ¶
func (a *App) Resolve(ctx context.Context, req *pb.ResolveRequest, rsp *pb.ResolveResponse) error
type GoogleApp ¶
type GoogleApp struct {
// Embed the app handler
*App
// contains filtered or unexported fields
}
func (*GoogleApp) Delete ¶
func (e *GoogleApp) Delete(ctx context.Context, req *pb.DeleteRequest, rsp *pb.DeleteResponse) error
func (*GoogleApp) List ¶
func (e *GoogleApp) List(ctx context.Context, req *pb.ListRequest, rsp *pb.ListResponse) error
func (*GoogleApp) Regions ¶
func (e *GoogleApp) Regions(ctx context.Context, req *pb.RegionsRequest, rsp *pb.RegionsResponse) error
func (*GoogleApp) Run ¶
func (e *GoogleApp) Run(ctx context.Context, req *pb.RunRequest, rsp *pb.RunResponse) error
func (*GoogleApp) Status ¶
func (e *GoogleApp) Status(ctx context.Context, req *pb.StatusRequest, rsp *pb.StatusResponse) error
func (*GoogleApp) Update ¶
func (e *GoogleApp) Update(ctx context.Context, req *pb.UpdateRequest, rsp *pb.UpdateResponse) error
type Reservation ¶
Click to show internal directories.
Click to hide internal directories.