services

package
v0.0.0-...-fe3a3ad Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package services is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	Region_name = map[int32]string{
		0: "REGION_UNSPECIFIED",
		1: "REGION_WEST_EUROPE",
		2: "REGION_CENTRAL_USA",
		3: "REGION_EAST_ASIA",
	}
	Region_value = map[string]int32{
		"REGION_UNSPECIFIED": 0,
		"REGION_WEST_EUROPE": 1,
		"REGION_CENTRAL_USA": 2,
		"REGION_EAST_ASIA":   3,
	}
)

Enum value maps for Region.

View Source
var (
	DeploymentType_name = map[int32]string{
		0: "DEPLOYMENT_TYPE_UNSPECIFIED",
		1: "DEPLOYMENT_TYPE_MANUAL",
		2: "DEPLOYMENT_TYPE_GITHUB",
	}
	DeploymentType_value = map[string]int32{
		"DEPLOYMENT_TYPE_UNSPECIFIED": 0,
		"DEPLOYMENT_TYPE_MANUAL":      1,
		"DEPLOYMENT_TYPE_GITHUB":      2,
	}
)

Enum value maps for DeploymentType.

View Source
var (
	PortType_name = map[int32]string{
		0: "PORT_TYPE_UNSPECIFIED",
		1: "PORT_TYPE_TCP",
		2: "PORT_TYPE_HTTP",
		3: "PORT_TYPE_HTTPS",
		4: "PORT_TYPE_GRPC",
		5: "PORT_TYPE_GRAPHQL",
	}
	PortType_value = map[string]int32{
		"PORT_TYPE_UNSPECIFIED": 0,
		"PORT_TYPE_TCP":         1,
		"PORT_TYPE_HTTP":        2,
		"PORT_TYPE_HTTPS":       3,
		"PORT_TYPE_GRPC":        4,
		"PORT_TYPE_GRAPHQL":     5,
	}
)

Enum value maps for PortType.

View Source
var (
	InstanceStatus_name = map[int32]string{
		0: "INSTANCE_STATUS_UNSPECIFIED",
		1: "INSTANCE_STATUS_PENDING",
		2: "INSTANCE_STATUS_RUNNING",
		3: "INSTANCE_STATUS_SUCCEEDED",
		4: "INSTANCE_STATUS_FAILED",
	}
	InstanceStatus_value = map[string]int32{
		"INSTANCE_STATUS_UNSPECIFIED": 0,
		"INSTANCE_STATUS_PENDING":     1,
		"INSTANCE_STATUS_RUNNING":     2,
		"INSTANCE_STATUS_SUCCEEDED":   3,
		"INSTANCE_STATUS_FAILED":      4,
	}
)

Enum value maps for InstanceStatus.

View Source
var (
	BuildStatus_name = map[int32]string{
		0: "BUILD_STATUS_UNSPECIFIED",
		1: "BUILD_STATUS_PENDING",
		2: "BUILD_STATUS_RUNNING",
		3: "BUILD_STATUS_SUCCEEDED",
		4: "BUILD_STATUS_FAILED",
	}
	BuildStatus_value = map[string]int32{
		"BUILD_STATUS_UNSPECIFIED": 0,
		"BUILD_STATUS_PENDING":     1,
		"BUILD_STATUS_RUNNING":     2,
		"BUILD_STATUS_SUCCEEDED":   3,
		"BUILD_STATUS_FAILED":      4,
	}
)

Enum value maps for BuildStatus.

View Source
var File_api_services_services_proto protoreflect.FileDescriptor
View Source
var Services_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.services.Services",
	HandlerType: (*ServicesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _Services_Get_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _Services_Create_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Services_List_Handler,
		},
		{
			MethodName: "ListVersions",
			Handler:    _Services_ListVersions_Handler,
		},
		{
			MethodName: "ListGithubRepos",
			Handler:    _Services_ListGithubRepos_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetBuildLog",
			Handler:       _Services_GetBuildLog_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "api/services/services.proto",
}

Services_ServiceDesc is the grpc.ServiceDesc for Services service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterServicesHandler

func RegisterServicesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterServicesHandler registers the http handlers for service Services to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterServicesHandlerClient

func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServicesClient) error

RegisterServicesHandlerClient registers the http handlers for service Services to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ServicesClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ServicesClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ServicesClient" to call the correct interceptors.

func RegisterServicesHandlerFromEndpoint

func RegisterServicesHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterServicesHandlerFromEndpoint is same as RegisterServicesHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterServicesHandlerServer

func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServicesServer) error

RegisterServicesHandlerServer registers the http handlers for service Services to "mux". UnaryRPC :call ServicesServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterServicesHandlerFromEndpoint instead.

func RegisterServicesServer

func RegisterServicesServer(s grpc.ServiceRegistrar, srv ServicesServer)

Types

type BuildStatus

type BuildStatus int32
const (
	BuildStatus_BUILD_STATUS_UNSPECIFIED BuildStatus = 0
	BuildStatus_BUILD_STATUS_PENDING     BuildStatus = 1
	BuildStatus_BUILD_STATUS_RUNNING     BuildStatus = 2
	BuildStatus_BUILD_STATUS_SUCCEEDED   BuildStatus = 3
	BuildStatus_BUILD_STATUS_FAILED      BuildStatus = 4
)

func (BuildStatus) Descriptor

func (BuildStatus) Enum

func (x BuildStatus) Enum() *BuildStatus

func (BuildStatus) EnumDescriptor deprecated

func (BuildStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use BuildStatus.Descriptor instead.

func (BuildStatus) Number

func (x BuildStatus) Number() protoreflect.EnumNumber

func (BuildStatus) String

func (x BuildStatus) String() string

func (BuildStatus) Type

type CommitPushed

type CommitPushed struct {

	// We know this as the webhook url contains it
	ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// int64 of Githubs repo ID
	RepoId int64 `protobuf:"varint,2,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	// the github "path" i.e arbarlow/dotfiles
	RepoName string `protobuf:"bytes,3,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"`
	// e.g refs/heads/main
	Ref string `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"`
	// The SHA of the most recent commit on ref after the push.
	Head string `protobuf:"bytes,5,opt,name=head,proto3" json:"head,omitempty"`
	// contains filtered or unexported fields
}

Comes from Github webhook via API service

func (*CommitPushed) Descriptor deprecated

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

Deprecated: Use CommitPushed.ProtoReflect.Descriptor instead.

func (*CommitPushed) GetHead

func (x *CommitPushed) GetHead() string

func (*CommitPushed) GetRef

func (x *CommitPushed) GetRef() string

func (*CommitPushed) GetRepoId

func (x *CommitPushed) GetRepoId() int64

func (*CommitPushed) GetRepoName

func (x *CommitPushed) GetRepoName() string

func (*CommitPushed) GetServiceId

func (x *CommitPushed) GetServiceId() string

func (*CommitPushed) ProtoMessage

func (*CommitPushed) ProtoMessage()

func (*CommitPushed) ProtoReflect

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

func (*CommitPushed) Reset

func (x *CommitPushed) Reset()

func (*CommitPushed) String

func (x *CommitPushed) String() string

type CreateRequest

type CreateRequest struct {
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	AccountId string `protobuf:"bytes,11,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// How the service is referenced throughough the UI
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// A DNS addressable version of the service name
	DnsSafeName string `protobuf:"bytes,3,opt,name=dns_safe_name,json=dnsSafeName,proto3" json:"dns_safe_name,omitempty"`
	// One or more regions to deploy to
	Regions []Region `protobuf:"varint,4,rep,packed,name=regions,proto3,enum=api.services.Region" json:"regions,omitempty"`
	// Link to Github repo
	GithubRepoId int64 `protobuf:"varint,5,opt,name=github_repo_id,json=githubRepoId,proto3" json:"github_repo_id,omitempty"`
	// Port, Type/name mapping of ports
	Ports map[string]PortType `` /* 179-byte string literal not displayed */
	// ENV variables
	EnvironmentVariables map[string]string `` /* 209-byte string literal not displayed */
	// How many instances per region to deploy
	ReplicasPerRegion int32 `protobuf:"varint,8,opt,name=replicas_per_region,json=replicasPerRegion,proto3" json:"replicas_per_region,omitempty"`
	// In milli, i.e 250 is 0.25 of a CPU
	Cpu int32 `protobuf:"varint,9,opt,name=cpu,proto3" json:"cpu,omitempty"`
	// In MB, 256 = 256MB
	Memory int32 `protobuf:"varint,10,opt,name=memory,proto3" json:"memory,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetAccountId

func (x *CreateRequest) GetAccountId() string

func (*CreateRequest) GetCpu

func (x *CreateRequest) GetCpu() int32

func (*CreateRequest) GetDnsSafeName

func (x *CreateRequest) GetDnsSafeName() string

func (*CreateRequest) GetEnvironmentVariables

func (x *CreateRequest) GetEnvironmentVariables() map[string]string

func (*CreateRequest) GetGithubRepoId

func (x *CreateRequest) GetGithubRepoId() int64

func (*CreateRequest) GetMemory

func (x *CreateRequest) GetMemory() int32

func (*CreateRequest) GetName

func (x *CreateRequest) GetName() string

func (*CreateRequest) GetPorts

func (x *CreateRequest) GetPorts() map[string]PortType

func (*CreateRequest) GetProjectId

func (x *CreateRequest) GetProjectId() string

func (*CreateRequest) GetRegions

func (x *CreateRequest) GetRegions() []Region

func (*CreateRequest) GetReplicasPerRegion

func (x *CreateRequest) GetReplicasPerRegion() int32

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

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

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetService

func (x *CreateResponse) GetService() *Service

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type DeploymentType

type DeploymentType int32
const (
	DeploymentType_DEPLOYMENT_TYPE_UNSPECIFIED DeploymentType = 0
	DeploymentType_DEPLOYMENT_TYPE_MANUAL      DeploymentType = 1
	DeploymentType_DEPLOYMENT_TYPE_GITHUB      DeploymentType = 2
)

func (DeploymentType) Descriptor

func (DeploymentType) Enum

func (x DeploymentType) Enum() *DeploymentType

func (DeploymentType) EnumDescriptor deprecated

func (DeploymentType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeploymentType.Descriptor instead.

func (DeploymentType) Number

func (DeploymentType) String

func (x DeploymentType) String() string

func (DeploymentType) Type

type Environment

type Environment struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// User friendly name
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// A DNS addressable version of the environment
	DnsSafeName string `protobuf:"bytes,3,opt,name=dns_safe_name,json=dnsSafeName,proto3" json:"dns_safe_name,omitempty"`
	// Timestamps
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,1000,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamp.Timestamp `protobuf:"bytes,1001,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Environment) Descriptor deprecated

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

Deprecated: Use Environment.ProtoReflect.Descriptor instead.

func (*Environment) GetCreatedAt

func (x *Environment) GetCreatedAt() *timestamp.Timestamp

func (*Environment) GetDnsSafeName

func (x *Environment) GetDnsSafeName() string

func (*Environment) GetId

func (x *Environment) GetId() string

func (*Environment) GetName

func (x *Environment) GetName() string

func (*Environment) GetUpdatedAt

func (x *Environment) GetUpdatedAt() *timestamp.Timestamp

func (*Environment) ProtoMessage

func (*Environment) ProtoMessage()

func (*Environment) ProtoReflect

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

func (*Environment) Reset

func (x *Environment) Reset()

func (*Environment) String

func (x *Environment) String() string

type EnvironmentStatus

type EnvironmentStatus struct {
	Environment *Environment                `protobuf:"bytes,1,opt,name=environment,proto3" json:"environment,omitempty"`
	Versions    []*EnvironmentVersionStatus `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"`
	// contains filtered or unexported fields
}

func (*EnvironmentStatus) Descriptor deprecated

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

Deprecated: Use EnvironmentStatus.ProtoReflect.Descriptor instead.

func (*EnvironmentStatus) GetEnvironment

func (x *EnvironmentStatus) GetEnvironment() *Environment

func (*EnvironmentStatus) GetVersions

func (x *EnvironmentStatus) GetVersions() []*EnvironmentVersionStatus

func (*EnvironmentStatus) ProtoMessage

func (*EnvironmentStatus) ProtoMessage()

func (*EnvironmentStatus) ProtoReflect

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

func (*EnvironmentStatus) Reset

func (x *EnvironmentStatus) Reset()

func (*EnvironmentStatus) String

func (x *EnvironmentStatus) String() string

type EnvironmentVersionStatus

type EnvironmentVersionStatus struct {
	TrafficPercentage int32       `protobuf:"varint,2,opt,name=traffic_percentage,json=trafficPercentage,proto3" json:"traffic_percentage,omitempty"`
	Instances         []*Instance `protobuf:"bytes,3,rep,name=instances,proto3" json:"instances,omitempty"`
	// contains filtered or unexported fields
}

func (*EnvironmentVersionStatus) Descriptor deprecated

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

Deprecated: Use EnvironmentVersionStatus.ProtoReflect.Descriptor instead.

func (*EnvironmentVersionStatus) GetInstances

func (x *EnvironmentVersionStatus) GetInstances() []*Instance

func (*EnvironmentVersionStatus) GetTrafficPercentage

func (x *EnvironmentVersionStatus) GetTrafficPercentage() int32

func (*EnvironmentVersionStatus) ProtoMessage

func (*EnvironmentVersionStatus) ProtoMessage()

func (*EnvironmentVersionStatus) ProtoReflect

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

func (*EnvironmentVersionStatus) Reset

func (x *EnvironmentVersionStatus) Reset()

func (*EnvironmentVersionStatus) String

func (x *EnvironmentVersionStatus) String() string

type GetBuildLogRequest

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

func (*GetBuildLogRequest) Descriptor deprecated

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

Deprecated: Use GetBuildLogRequest.ProtoReflect.Descriptor instead.

func (*GetBuildLogRequest) GetVersionId

func (x *GetBuildLogRequest) GetVersionId() string

func (*GetBuildLogRequest) ProtoMessage

func (*GetBuildLogRequest) ProtoMessage()

func (*GetBuildLogRequest) ProtoReflect

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

func (*GetBuildLogRequest) Reset

func (x *GetBuildLogRequest) Reset()

func (*GetBuildLogRequest) String

func (x *GetBuildLogRequest) String() string

type GetBuildLogResponse

type GetBuildLogResponse struct {
	Log       string      `protobuf:"bytes,1,opt,name=log,proto3" json:"log,omitempty"`
	Status    BuildStatus `protobuf:"varint,2,opt,name=status,proto3,enum=api.services.BuildStatus" json:"status,omitempty"`
	Available bool        `protobuf:"varint,3,opt,name=available,proto3" json:"available,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBuildLogResponse) Descriptor deprecated

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

Deprecated: Use GetBuildLogResponse.ProtoReflect.Descriptor instead.

func (*GetBuildLogResponse) GetAvailable

func (x *GetBuildLogResponse) GetAvailable() bool

func (*GetBuildLogResponse) GetLog

func (x *GetBuildLogResponse) GetLog() string

func (*GetBuildLogResponse) GetStatus

func (x *GetBuildLogResponse) GetStatus() BuildStatus

func (*GetBuildLogResponse) ProtoMessage

func (*GetBuildLogResponse) ProtoMessage()

func (*GetBuildLogResponse) ProtoReflect

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

func (*GetBuildLogResponse) Reset

func (x *GetBuildLogResponse) Reset()

func (*GetBuildLogResponse) String

func (x *GetBuildLogResponse) String() string

type GetRequest

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

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetId

func (x *GetRequest) GetId() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type GetResponse

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

func (*GetResponse) Descriptor deprecated

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetService

func (x *GetResponse) GetService() *Service

func (*GetResponse) GetStatus

func (x *GetResponse) GetStatus() *ServiceStatus

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

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

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

type GithubInfo

type GithubInfo struct {

	// Github ID
	GithubRepoId int64 `protobuf:"varint,1,opt,name=github_repo_id,json=githubRepoId,proto3" json:"github_repo_id,omitempty"`
	// Full github style url i.e (myusername/repo)
	FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	// This allows for some automatic pushing to staging environments
	// or checking if a pull request is into the main branch
	MainBranch string `protobuf:"bytes,3,opt,name=main_branch,json=mainBranch,proto3" json:"main_branch,omitempty"`
	// contains filtered or unexported fields
}

func (*GithubInfo) Descriptor deprecated

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

Deprecated: Use GithubInfo.ProtoReflect.Descriptor instead.

func (*GithubInfo) GetFullName

func (x *GithubInfo) GetFullName() string

func (*GithubInfo) GetGithubRepoId

func (x *GithubInfo) GetGithubRepoId() int64

func (*GithubInfo) GetMainBranch

func (x *GithubInfo) GetMainBranch() string

func (*GithubInfo) ProtoMessage

func (*GithubInfo) ProtoMessage()

func (*GithubInfo) ProtoReflect

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

func (*GithubInfo) Reset

func (x *GithubInfo) Reset()

func (*GithubInfo) String

func (x *GithubInfo) String() string

type GithubRepo

type GithubRepo struct {
	Id        int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	FullName  string               `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	Private   bool                 `protobuf:"varint,3,opt,name=private,proto3" json:"private,omitempty"`
	LastPush  *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_push,json=lastPush,proto3" json:"last_push,omitempty"`
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,1000,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamp.Timestamp `protobuf:"bytes,1001,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*GithubRepo) Descriptor deprecated

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

Deprecated: Use GithubRepo.ProtoReflect.Descriptor instead.

func (*GithubRepo) GetCreatedAt

func (x *GithubRepo) GetCreatedAt() *timestamp.Timestamp

func (*GithubRepo) GetFullName

func (x *GithubRepo) GetFullName() string

func (*GithubRepo) GetId

func (x *GithubRepo) GetId() int64

func (*GithubRepo) GetLastPush

func (x *GithubRepo) GetLastPush() *timestamp.Timestamp

func (*GithubRepo) GetPrivate

func (x *GithubRepo) GetPrivate() bool

func (*GithubRepo) GetUpdatedAt

func (x *GithubRepo) GetUpdatedAt() *timestamp.Timestamp

func (*GithubRepo) ProtoMessage

func (*GithubRepo) ProtoMessage()

func (*GithubRepo) ProtoReflect

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

func (*GithubRepo) Reset

func (x *GithubRepo) Reset()

func (*GithubRepo) String

func (x *GithubRepo) String() string

type Instance

type Instance struct {
	Id     string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Status InstanceStatus `protobuf:"varint,2,opt,name=status,proto3,enum=api.services.InstanceStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

Analogous to a Kubernetes Pod

func (*Instance) Descriptor deprecated

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

Deprecated: Use Instance.ProtoReflect.Descriptor instead.

func (*Instance) GetId

func (x *Instance) GetId() string

func (*Instance) GetStatus

func (x *Instance) GetStatus() InstanceStatus

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) ProtoReflect

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

func (*Instance) Reset

func (x *Instance) Reset()

func (*Instance) String

func (x *Instance) String() string

type InstanceStatus

type InstanceStatus int32
const (
	InstanceStatus_INSTANCE_STATUS_UNSPECIFIED InstanceStatus = 0
	InstanceStatus_INSTANCE_STATUS_PENDING     InstanceStatus = 1
	InstanceStatus_INSTANCE_STATUS_RUNNING     InstanceStatus = 2
	InstanceStatus_INSTANCE_STATUS_SUCCEEDED   InstanceStatus = 3
	InstanceStatus_INSTANCE_STATUS_FAILED      InstanceStatus = 4
)

func (InstanceStatus) Descriptor

func (InstanceStatus) Enum

func (x InstanceStatus) Enum() *InstanceStatus

func (InstanceStatus) EnumDescriptor deprecated

func (InstanceStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use InstanceStatus.Descriptor instead.

func (InstanceStatus) Number

func (InstanceStatus) String

func (x InstanceStatus) String() string

func (InstanceStatus) Type

type ListGithubReposRequest

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

func (*ListGithubReposRequest) Descriptor deprecated

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

Deprecated: Use ListGithubReposRequest.ProtoReflect.Descriptor instead.

func (*ListGithubReposRequest) ProtoMessage

func (*ListGithubReposRequest) ProtoMessage()

func (*ListGithubReposRequest) ProtoReflect

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

func (*ListGithubReposRequest) Reset

func (x *ListGithubReposRequest) Reset()

func (*ListGithubReposRequest) String

func (x *ListGithubReposRequest) String() string

type ListGithubReposResponse

type ListGithubReposResponse struct {
	Repos []*GithubRepo `protobuf:"bytes,1,rep,name=repos,proto3" json:"repos,omitempty"`
	// contains filtered or unexported fields
}

func (*ListGithubReposResponse) Descriptor deprecated

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

Deprecated: Use ListGithubReposResponse.ProtoReflect.Descriptor instead.

func (*ListGithubReposResponse) GetRepos

func (x *ListGithubReposResponse) GetRepos() []*GithubRepo

func (*ListGithubReposResponse) ProtoMessage

func (*ListGithubReposResponse) ProtoMessage()

func (*ListGithubReposResponse) ProtoReflect

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

func (*ListGithubReposResponse) Reset

func (x *ListGithubReposResponse) Reset()

func (*ListGithubReposResponse) String

func (x *ListGithubReposResponse) String() string

type ListRequest

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

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetProjectId

func (x *ListRequest) GetProjectId() string

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 {
	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 ListVersionsRequest

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

func (*ListVersionsRequest) Descriptor deprecated

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

Deprecated: Use ListVersionsRequest.ProtoReflect.Descriptor instead.

func (*ListVersionsRequest) GetServiceId

func (x *ListVersionsRequest) GetServiceId() string

func (*ListVersionsRequest) ProtoMessage

func (*ListVersionsRequest) ProtoMessage()

func (*ListVersionsRequest) ProtoReflect

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

func (*ListVersionsRequest) Reset

func (x *ListVersionsRequest) Reset()

func (*ListVersionsRequest) String

func (x *ListVersionsRequest) String() string

type ListVersionsResponse

type ListVersionsResponse struct {
	Versions []*Version `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVersionsResponse) Descriptor deprecated

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

Deprecated: Use ListVersionsResponse.ProtoReflect.Descriptor instead.

func (*ListVersionsResponse) GetVersions

func (x *ListVersionsResponse) GetVersions() []*Version

func (*ListVersionsResponse) ProtoMessage

func (*ListVersionsResponse) ProtoMessage()

func (*ListVersionsResponse) ProtoReflect

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

func (*ListVersionsResponse) Reset

func (x *ListVersionsResponse) Reset()

func (*ListVersionsResponse) String

func (x *ListVersionsResponse) String() string

type PortType

type PortType int32
const (
	PortType_PORT_TYPE_UNSPECIFIED PortType = 0
	PortType_PORT_TYPE_TCP         PortType = 1
	PortType_PORT_TYPE_HTTP        PortType = 2
	PortType_PORT_TYPE_HTTPS       PortType = 3
	PortType_PORT_TYPE_GRPC        PortType = 4
	PortType_PORT_TYPE_GRAPHQL     PortType = 5
)

func (PortType) Descriptor

func (PortType) Descriptor() protoreflect.EnumDescriptor

func (PortType) Enum

func (x PortType) Enum() *PortType

func (PortType) EnumDescriptor deprecated

func (PortType) EnumDescriptor() ([]byte, []int)

Deprecated: Use PortType.Descriptor instead.

func (PortType) Number

func (x PortType) Number() protoreflect.EnumNumber

func (PortType) String

func (x PortType) String() string

func (PortType) Type

type Region

type Region int32
const (
	Region_REGION_UNSPECIFIED Region = 0
	Region_REGION_WEST_EUROPE Region = 1
	Region_REGION_CENTRAL_USA Region = 2
	Region_REGION_EAST_ASIA   Region = 3
)

func (Region) Descriptor

func (Region) Descriptor() protoreflect.EnumDescriptor

func (Region) Enum

func (x Region) Enum() *Region

func (Region) EnumDescriptor deprecated

func (Region) EnumDescriptor() ([]byte, []int)

Deprecated: Use Region.Descriptor instead.

func (Region) Number

func (x Region) Number() protoreflect.EnumNumber

func (Region) String

func (x Region) String() string

func (Region) Type

func (Region) Type() protoreflect.EnumType

type Service

type Service struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	AccountId string `protobuf:"bytes,12,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// Which project it belongs to
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// How the service is referenced throughough the UI
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// A DNS addressable version of the service name
	DnsSafeName string `protobuf:"bytes,4,opt,name=dns_safe_name,json=dnsSafeName,proto3" json:"dns_safe_name,omitempty"`
	// One or more regions to deploy to
	Regions []Region `protobuf:"varint,5,rep,packed,name=regions,proto3,enum=api.services.Region" json:"regions,omitempty"`
	// Link to Github repo
	GithubInfo *GithubInfo `protobuf:"bytes,6,opt,name=github_info,json=githubInfo,proto3" json:"github_info,omitempty"`
	// Port, Type/name mapping of ports
	Ports map[string]PortType `` /* 179-byte string literal not displayed */
	// ENV variables
	EnvironmentVariables map[string]string `` /* 209-byte string literal not displayed */
	// How many instances per region to deploy
	ReplicasPerRegion int32 `protobuf:"varint,9,opt,name=replicas_per_region,json=replicasPerRegion,proto3" json:"replicas_per_region,omitempty"`
	// In milli, i.e 250 is 0.25 of a CPU
	Cpu int32 `protobuf:"varint,10,opt,name=cpu,proto3" json:"cpu,omitempty"`
	// In MB, 256 = 256MB
	Memory int32 `protobuf:"varint,11,opt,name=memory,proto3" json:"memory,omitempty"`
	// Timestamps
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,1000,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamp.Timestamp `protobuf:"bytes,1001,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetAccountId

func (x *Service) GetAccountId() string

func (*Service) GetCpu

func (x *Service) GetCpu() int32

func (*Service) GetCreatedAt

func (x *Service) GetCreatedAt() *timestamp.Timestamp

func (*Service) GetDnsSafeName

func (x *Service) GetDnsSafeName() string

func (*Service) GetEnvironmentVariables

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

func (*Service) GetGithubInfo

func (x *Service) GetGithubInfo() *GithubInfo

func (*Service) GetId

func (x *Service) GetId() string

func (*Service) GetMemory

func (x *Service) GetMemory() int32

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) GetPorts

func (x *Service) GetPorts() map[string]PortType

func (*Service) GetProjectId

func (x *Service) GetProjectId() string

func (*Service) GetRegions

func (x *Service) GetRegions() []Region

func (*Service) GetReplicasPerRegion

func (x *Service) GetReplicasPerRegion() int32

func (*Service) GetUpdatedAt

func (x *Service) GetUpdatedAt() *timestamp.Timestamp

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 ServiceStatus

type ServiceStatus struct {
	Environments []*EnvironmentStatus `protobuf:"bytes,1,rep,name=environments,proto3" json:"environments,omitempty"`
	// contains filtered or unexported fields
}

ServiceStatus is a top level object encapsulating a services overall status accross versions and environments

func (*ServiceStatus) Descriptor deprecated

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

Deprecated: Use ServiceStatus.ProtoReflect.Descriptor instead.

func (*ServiceStatus) GetEnvironments

func (x *ServiceStatus) GetEnvironments() []*EnvironmentStatus

func (*ServiceStatus) ProtoMessage

func (*ServiceStatus) ProtoMessage()

func (*ServiceStatus) ProtoReflect

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

func (*ServiceStatus) Reset

func (x *ServiceStatus) Reset()

func (*ServiceStatus) String

func (x *ServiceStatus) String() string

type ServicesClient

type ServicesClient interface {
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	ListVersions(ctx context.Context, in *ListVersionsRequest, opts ...grpc.CallOption) (*ListVersionsResponse, error)
	GetBuildLog(ctx context.Context, in *GetBuildLogRequest, opts ...grpc.CallOption) (Services_GetBuildLogClient, error)
	ListGithubRepos(ctx context.Context, in *ListGithubReposRequest, opts ...grpc.CallOption) (*ListGithubReposResponse, error)
}

ServicesClient is the client API for Services service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewServicesClient

func NewServicesClient(cc grpc.ClientConnInterface) ServicesClient

type ServicesServer

type ServicesServer interface {
	Get(context.Context, *GetRequest) (*GetResponse, error)
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	List(context.Context, *ListRequest) (*ListResponse, error)
	ListVersions(context.Context, *ListVersionsRequest) (*ListVersionsResponse, error)
	GetBuildLog(*GetBuildLogRequest, Services_GetBuildLogServer) error
	ListGithubRepos(context.Context, *ListGithubReposRequest) (*ListGithubReposResponse, error)
	// contains filtered or unexported methods
}

ServicesServer is the server API for Services service. All implementations must embed UnimplementedServicesServer for forward compatibility

type Services_GetBuildLogClient

type Services_GetBuildLogClient interface {
	Recv() (*GetBuildLogResponse, error)
	grpc.ClientStream
}

type Services_GetBuildLogServer

type Services_GetBuildLogServer interface {
	Send(*GetBuildLogResponse) error
	grpc.ServerStream
}

type UnimplementedServicesServer

type UnimplementedServicesServer struct {
}

UnimplementedServicesServer must be embedded to have forward compatible implementations.

func (UnimplementedServicesServer) Create

func (UnimplementedServicesServer) Get

func (UnimplementedServicesServer) GetBuildLog

func (UnimplementedServicesServer) List

func (UnimplementedServicesServer) ListGithubRepos

func (UnimplementedServicesServer) ListVersions

type UnsafeServicesServer

type UnsafeServicesServer interface {
	// contains filtered or unexported methods
}

UnsafeServicesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServicesServer will result in compilation errors.

type Version

type Version struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// most likely a semvar like tag "v0.1.2"
	Version        string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	Sha            string `protobuf:"bytes,4,opt,name=sha,proto3" json:"sha,omitempty"`
	CommitMessage  string `protobuf:"bytes,5,opt,name=commit_message,json=commitMessage,proto3" json:"commit_message,omitempty"`
	AuthorUsername string `protobuf:"bytes,6,opt,name=author_username,json=authorUsername,proto3" json:"author_username,omitempty"`
	AuthorEmail    string `protobuf:"bytes,7,opt,name=author_email,json=authorEmail,proto3" json:"author_email,omitempty"`
	// If they have a deply account, we will link here
	AuthorAccountId string `protobuf:"bytes,8,opt,name=author_account_id,json=authorAccountId,proto3" json:"author_account_id,omitempty"`
	// Image of build container, either provided by user
	// or built by Deply
	ContainerUrl string      `protobuf:"bytes,9,opt,name=container_url,json=containerUrl,proto3" json:"container_url,omitempty"`
	BuildStatus  BuildStatus `` /* 126-byte string literal not displayed */
	// Is thie version available for deployment
	// it may not be because of a build error or it's
	// stil being built
	Available bool `protobuf:"varint,11,opt,name=available,proto3" json:"available,omitempty"`
	// Timestamps
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,1000,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Version) Descriptor deprecated

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetAuthorAccountId

func (x *Version) GetAuthorAccountId() string

func (*Version) GetAuthorEmail

func (x *Version) GetAuthorEmail() string

func (*Version) GetAuthorUsername

func (x *Version) GetAuthorUsername() string

func (*Version) GetAvailable

func (x *Version) GetAvailable() bool

func (*Version) GetBuildStatus

func (x *Version) GetBuildStatus() BuildStatus

func (*Version) GetCommitMessage

func (x *Version) GetCommitMessage() string

func (*Version) GetContainerUrl

func (x *Version) GetContainerUrl() string

func (*Version) GetCreatedAt

func (x *Version) GetCreatedAt() *timestamp.Timestamp

func (*Version) GetId

func (x *Version) GetId() string

func (*Version) GetServiceId

func (x *Version) GetServiceId() string

func (*Version) GetSha

func (x *Version) GetSha() string

func (*Version) GetVersion

func (x *Version) GetVersion() string

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

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

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

Jump to

Keyboard shortcuts

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