app

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_app_proto protoreflect.FileDescriptor

Functions

func NewAppEndpoints

func NewAppEndpoints() []*api.Endpoint

func RegisterAppHandler

func RegisterAppHandler(s server.Server, hdlr AppHandler, opts ...server.HandlerOption) error

Types

type DeleteRequest

type DeleteRequest struct {

	// name of the app
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Delete an app

func (*DeleteRequest) Descriptor deprecated

func (*DeleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetName

func (x *DeleteRequest) GetName() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

func (x *DeleteRequest) ProtoReflect() protoreflect.Message

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type DeleteResponse

type DeleteResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteResponse) Descriptor deprecated

func (*DeleteResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

func (x *DeleteResponse) ProtoReflect() protoreflect.Message

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type GetRequest added in v1.5.0

type GetRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Get an app by name

func (*GetRequest) Descriptor deprecated added in v1.5.0

func (*GetRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetName added in v1.5.0

func (x *GetRequest) GetName() string

func (*GetRequest) ProtoMessage added in v1.5.0

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect added in v1.5.0

func (x *GetRequest) ProtoReflect() protoreflect.Message

func (*GetRequest) Reset added in v1.5.0

func (x *GetRequest) Reset()

func (*GetRequest) String added in v1.5.0

func (x *GetRequest) String() string

type GetResponse added in v1.5.0

type GetResponse struct {
	Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResponse) Descriptor deprecated added in v1.5.0

func (*GetResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetService added in v1.5.0

func (x *GetResponse) GetService() *Service

func (*GetResponse) ProtoMessage added in v1.5.0

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect added in v1.5.0

func (x *GetResponse) ProtoReflect() protoreflect.Message

func (*GetResponse) Reset added in v1.5.0

func (x *GetResponse) Reset()

func (*GetResponse) String added in v1.5.0

func (x *GetResponse) String() string

type ListRequest

type ListRequest struct {
	// contains filtered or unexported fields
}

List all the apps

func (*ListRequest) Descriptor deprecated

func (*ListRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

func (x *ListRequest) ProtoReflect() protoreflect.Message

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListResponse

type ListResponse struct {

	// all the apps
	Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

func (*ListResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetServices

func (x *ListResponse) GetServices() []*Service

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

func (x *ListResponse) ProtoReflect() protoreflect.Message

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type LogsRequest added in v0.26.0

type LogsRequest struct {

	// name of the app
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// type of logs to retrieve, currently supported options - "build"
	LogsType string `protobuf:"bytes,2,opt,name=logs_type,json=logsType,proto3" json:"logs_type,omitempty"`
	// contains filtered or unexported fields
}

Get the logs for an app

func (*LogsRequest) Descriptor deprecated added in v0.26.0

func (*LogsRequest) Descriptor() ([]byte, []int)

Deprecated: Use LogsRequest.ProtoReflect.Descriptor instead.

func (*LogsRequest) GetLogsType added in v0.26.0

func (x *LogsRequest) GetLogsType() string

func (*LogsRequest) GetName added in v0.26.0

func (x *LogsRequest) GetName() string

func (*LogsRequest) ProtoMessage added in v0.26.0

func (*LogsRequest) ProtoMessage()

func (*LogsRequest) ProtoReflect added in v0.26.0

func (x *LogsRequest) ProtoReflect() protoreflect.Message

func (*LogsRequest) Reset added in v0.26.0

func (x *LogsRequest) Reset()

func (*LogsRequest) String added in v0.26.0

func (x *LogsRequest) String() string

type LogsResponse added in v0.26.0

type LogsResponse struct {
	Logs string `protobuf:"bytes,1,opt,name=logs,proto3" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

func (*LogsResponse) Descriptor deprecated added in v0.26.0

func (*LogsResponse) Descriptor() ([]byte, []int)

Deprecated: Use LogsResponse.ProtoReflect.Descriptor instead.

func (*LogsResponse) GetLogs added in v0.26.0

func (x *LogsResponse) GetLogs() string

func (*LogsResponse) ProtoMessage added in v0.26.0

func (*LogsResponse) ProtoMessage()

func (*LogsResponse) ProtoReflect added in v0.26.0

func (x *LogsResponse) ProtoReflect() protoreflect.Message

func (*LogsResponse) Reset added in v0.26.0

func (x *LogsResponse) Reset()

func (*LogsResponse) String added in v0.26.0

func (x *LogsResponse) String() string

type RegionsRequest

type RegionsRequest struct {
	// contains filtered or unexported fields
}

Return the support regions

func (*RegionsRequest) Descriptor deprecated

func (*RegionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use RegionsRequest.ProtoReflect.Descriptor instead.

func (*RegionsRequest) ProtoMessage

func (*RegionsRequest) ProtoMessage()

func (*RegionsRequest) ProtoReflect

func (x *RegionsRequest) ProtoReflect() protoreflect.Message

func (*RegionsRequest) Reset

func (x *RegionsRequest) Reset()

func (*RegionsRequest) String

func (x *RegionsRequest) String() string

type RegionsResponse

type RegionsResponse struct {
	Regions []string `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"`
	// contains filtered or unexported fields
}

func (*RegionsResponse) Descriptor deprecated

func (*RegionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegionsResponse.ProtoReflect.Descriptor instead.

func (*RegionsResponse) GetRegions

func (x *RegionsResponse) GetRegions() []string

func (*RegionsResponse) ProtoMessage

func (*RegionsResponse) ProtoMessage()

func (*RegionsResponse) ProtoReflect

func (x *RegionsResponse) ProtoReflect() protoreflect.Message

func (*RegionsResponse) Reset

func (x *RegionsResponse) Reset()

func (*RegionsResponse) String

func (x *RegionsResponse) String() string

type Reservation

type Reservation struct {

	// name of the app
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// owner id
	Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	// associated token
	Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	// time of reservation
	Created string `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"`
	// time reservation expires
	Expires string `protobuf:"bytes,5,opt,name=expires,proto3" json:"expires,omitempty"`
	// contains filtered or unexported fields
}

Reservation represents a reserved app instance

func (*Reservation) Descriptor deprecated

func (*Reservation) Descriptor() ([]byte, []int)

Deprecated: Use Reservation.ProtoReflect.Descriptor instead.

func (*Reservation) GetCreated

func (x *Reservation) GetCreated() string

func (*Reservation) GetExpires

func (x *Reservation) GetExpires() string

func (*Reservation) GetName

func (x *Reservation) GetName() string

func (*Reservation) GetOwner

func (x *Reservation) GetOwner() string

func (*Reservation) GetToken

func (x *Reservation) GetToken() string

func (*Reservation) ProtoMessage

func (*Reservation) ProtoMessage()

func (*Reservation) ProtoReflect

func (x *Reservation) ProtoReflect() protoreflect.Message

func (*Reservation) Reset

func (x *Reservation) Reset()

func (*Reservation) String

func (x *Reservation) String() string

type ReserveRequest

type ReserveRequest struct {

	// name of your app e.g helloworld
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Reserve app names

func (*ReserveRequest) Descriptor deprecated

func (*ReserveRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReserveRequest.ProtoReflect.Descriptor instead.

func (*ReserveRequest) GetName

func (x *ReserveRequest) GetName() string

func (*ReserveRequest) ProtoMessage

func (*ReserveRequest) ProtoMessage()

func (*ReserveRequest) ProtoReflect

func (x *ReserveRequest) ProtoReflect() protoreflect.Message

func (*ReserveRequest) Reset

func (x *ReserveRequest) Reset()

func (*ReserveRequest) String

func (x *ReserveRequest) String() string

type ReserveResponse

type ReserveResponse struct {

	// The app reservation
	Reservation *Reservation `protobuf:"bytes,1,opt,name=reservation,proto3" json:"reservation,omitempty"`
	// contains filtered or unexported fields
}

func (*ReserveResponse) Descriptor deprecated

func (*ReserveResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReserveResponse.ProtoReflect.Descriptor instead.

func (*ReserveResponse) GetReservation

func (x *ReserveResponse) GetReservation() *Reservation

func (*ReserveResponse) ProtoMessage

func (*ReserveResponse) ProtoMessage()

func (*ReserveResponse) ProtoReflect

func (x *ReserveResponse) ProtoReflect() protoreflect.Message

func (*ReserveResponse) Reset

func (x *ReserveResponse) Reset()

func (*ReserveResponse) String

func (x *ReserveResponse) String() string

type ResolveRequest

type ResolveRequest struct {

	// the service id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Resolve an app by id to its raw backend endpoint

func (*ResolveRequest) Descriptor deprecated

func (*ResolveRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResolveRequest.ProtoReflect.Descriptor instead.

func (*ResolveRequest) GetId

func (x *ResolveRequest) GetId() string

func (*ResolveRequest) ProtoMessage

func (*ResolveRequest) ProtoMessage()

func (*ResolveRequest) ProtoReflect

func (x *ResolveRequest) ProtoReflect() protoreflect.Message

func (*ResolveRequest) Reset

func (x *ResolveRequest) Reset()

func (*ResolveRequest) String

func (x *ResolveRequest) String() string

type ResolveResponse

type ResolveResponse struct {

	// the end provider url
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveResponse) Descriptor deprecated

func (*ResolveResponse) Descriptor() ([]byte, []int)

Deprecated: Use ResolveResponse.ProtoReflect.Descriptor instead.

func (*ResolveResponse) GetUrl

func (x *ResolveResponse) GetUrl() string

func (*ResolveResponse) ProtoMessage

func (*ResolveResponse) ProtoMessage()

func (*ResolveResponse) ProtoReflect

func (x *ResolveResponse) ProtoReflect() protoreflect.Message

func (*ResolveResponse) Reset

func (x *ResolveResponse) Reset()

func (*ResolveResponse) String

func (x *ResolveResponse) String() string

type RunRequest

type RunRequest struct {

	// name of the app
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// source repository
	Repo string `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"`
	// branch. defaults to master
	Branch string `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"`
	// region to run in
	Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
	// port to run on
	Port int32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"`
	// associated env vars to pass in
	EnvVars map[string]string `` /* 170-byte string literal not displayed */
	// path to code
	Path string `protobuf:"bytes,7,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Run an app from source

func (*RunRequest) Descriptor deprecated

func (*RunRequest) Descriptor() ([]byte, []int)

Deprecated: Use RunRequest.ProtoReflect.Descriptor instead.

func (*RunRequest) GetBranch

func (x *RunRequest) GetBranch() string

func (*RunRequest) GetEnvVars

func (x *RunRequest) GetEnvVars() map[string]string

func (*RunRequest) GetName

func (x *RunRequest) GetName() string

func (*RunRequest) GetPath added in v1.5.0

func (x *RunRequest) GetPath() string

func (*RunRequest) GetPort

func (x *RunRequest) GetPort() int32

func (*RunRequest) GetRegion

func (x *RunRequest) GetRegion() string

func (*RunRequest) GetRepo

func (x *RunRequest) GetRepo() string

func (*RunRequest) ProtoMessage

func (*RunRequest) ProtoMessage()

func (*RunRequest) ProtoReflect

func (x *RunRequest) ProtoReflect() protoreflect.Message

func (*RunRequest) Reset

func (x *RunRequest) Reset()

func (*RunRequest) String

func (x *RunRequest) String() string

type RunResponse

type RunResponse struct {

	// The running service
	Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	// contains filtered or unexported fields
}

func (*RunResponse) Descriptor deprecated

func (*RunResponse) Descriptor() ([]byte, []int)

Deprecated: Use RunResponse.ProtoReflect.Descriptor instead.

func (*RunResponse) GetService

func (x *RunResponse) GetService() *Service

func (*RunResponse) ProtoMessage

func (*RunResponse) ProtoMessage()

func (*RunResponse) ProtoReflect

func (x *RunResponse) ProtoReflect() protoreflect.Message

func (*RunResponse) Reset

func (x *RunResponse) Reset()

func (*RunResponse) String

func (x *RunResponse) String() string

type Service

type Service struct {

	// unique id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// name of the app
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// source repository
	Repo string `protobuf:"bytes,3,opt,name=repo,proto3" json:"repo,omitempty"`
	// branch of code
	Branch string `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"`
	// region running in
	Region string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"`
	// port running on
	Port int32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
	// status of the app
	Status string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
	// app url
	Url string `protobuf:"bytes,8,opt,name=url,proto3" json:"url,omitempty"`
	// raw backend endpoint
	Backend string `protobuf:"bytes,9,opt,name=backend,proto3" json:"backend,omitempty"`
	// time of creation
	Created string `protobuf:"bytes,10,opt,name=created,proto3" json:"created,omitempty"`
	// last updated
	Updated string `protobuf:"bytes,11,opt,name=updated,proto3" json:"updated,omitempty"`
	// associated env vars
	EnvVars map[string]string `` /* 171-byte string literal not displayed */
	// custom domains
	CustomDomains []string `protobuf:"bytes,13,rep,name=custom_domains,json=customDomains,proto3" json:"custom_domains,omitempty"`
	// path for the app
	Path string `protobuf:"bytes,14,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

func (*Service) Descriptor() ([]byte, []int)

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetBackend added in v1.3.0

func (x *Service) GetBackend() string

func (*Service) GetBranch

func (x *Service) GetBranch() string

func (*Service) GetCreated

func (x *Service) GetCreated() string

func (*Service) GetCustomDomains

func (x *Service) GetCustomDomains() []string

func (*Service) GetEnvVars

func (x *Service) GetEnvVars() map[string]string

func (*Service) GetId

func (x *Service) GetId() string

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) GetPath added in v1.5.0

func (x *Service) GetPath() string

func (*Service) GetPort

func (x *Service) GetPort() int32

func (*Service) GetRegion

func (x *Service) GetRegion() string

func (*Service) GetRepo

func (x *Service) GetRepo() string

func (*Service) GetStatus

func (x *Service) GetStatus() string

func (*Service) GetUpdated

func (x *Service) GetUpdated() string

func (*Service) GetUrl

func (x *Service) GetUrl() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

func (x *Service) ProtoReflect() protoreflect.Message

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type StatusRequest

type StatusRequest struct {

	// name of the app
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Get the status of an app

func (*StatusRequest) Descriptor deprecated

func (*StatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.

func (*StatusRequest) GetName

func (x *StatusRequest) GetName() string

func (*StatusRequest) ProtoMessage

func (*StatusRequest) ProtoMessage()

func (*StatusRequest) ProtoReflect

func (x *StatusRequest) ProtoReflect() protoreflect.Message

func (*StatusRequest) Reset

func (x *StatusRequest) Reset()

func (*StatusRequest) String

func (x *StatusRequest) String() string

type StatusResponse

type StatusResponse struct {

	// running service info
	Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusResponse) Descriptor deprecated

func (*StatusResponse) Descriptor() ([]byte, []int)

Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.

func (*StatusResponse) GetService

func (x *StatusResponse) GetService() *Service

func (*StatusResponse) ProtoMessage

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) ProtoReflect

func (x *StatusResponse) ProtoReflect() protoreflect.Message

func (*StatusResponse) Reset

func (x *StatusResponse) Reset()

func (*StatusResponse) String

func (x *StatusResponse) String() string

type UpdateRequest

type UpdateRequest struct {

	// name of the app
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Additional env vars to update
	EnvVars map[string]string `` /* 170-byte string literal not displayed */
	// contains filtered or unexported fields
}

Update the app. The latest source code will be downloaded, built and deployed.

func (*UpdateRequest) Descriptor deprecated

func (*UpdateRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetEnvVars added in v0.26.0

func (x *UpdateRequest) GetEnvVars() map[string]string

func (*UpdateRequest) GetName

func (x *UpdateRequest) GetName() string

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

func (x *UpdateRequest) ProtoReflect() protoreflect.Message

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

type UpdateResponse

type UpdateResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateResponse) Descriptor deprecated

func (*UpdateResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect

func (x *UpdateResponse) ProtoReflect() protoreflect.Message

func (*UpdateResponse) Reset

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String

func (x *UpdateResponse) String() string

Jump to

Keyboard shortcuts

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