controller

package
v1.0.0-alpha.19 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package controller is a generated protocol buffer package.

It is generated from these files:

services.proto

It has these top-level messages:

ListRequest
ListResponse
AppRequest
AppListResponse
AuthRequest
AuthResponse
CreateBuildRequest
AppIdRequest
BuildLogRequest
BuildLogResponse
EnvSetRequest
ResourceListResponse
AppListRequest
BuildListResponse
ProcessListResponse
CreateResourceRequest
AppResourceReq
KubectlReq
CmdResponse
LogStreamReq
ProcessRunReq
StreamMsg
ReleaseListResponse
CreateReleaseRequest
ListDomainReqponse
CertificateReq

Package controller is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProviderServiceHandler

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

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

func RegisterProviderServiceHandlerClient

func RegisterProviderServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProviderServiceClient) error

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

func RegisterProviderServiceHandlerFromEndpoint

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

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

func RegisterProviderServiceServer

func RegisterProviderServiceServer(s *grpc.Server, srv ProviderServiceServer)

Types

type AppIdRequest

type AppIdRequest struct {
	App string `protobuf:"bytes,1,opt,name=app" json:"app,omitempty"`
	Id  string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
}

func (*AppIdRequest) Descriptor

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

func (*AppIdRequest) GetApp

func (m *AppIdRequest) GetApp() string

func (*AppIdRequest) GetId

func (m *AppIdRequest) GetId() string

func (*AppIdRequest) ProtoMessage

func (*AppIdRequest) ProtoMessage()

func (*AppIdRequest) Reset

func (m *AppIdRequest) Reset()

func (*AppIdRequest) String

func (m *AppIdRequest) String() string

type AppListRequest

type AppListRequest struct {
	Name  string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Limit int64  `protobuf:"varint,2,opt,name=limit" json:"limit,omitempty"`
}

func (*AppListRequest) Descriptor

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

func (*AppListRequest) GetLimit

func (m *AppListRequest) GetLimit() int64

func (*AppListRequest) GetName

func (m *AppListRequest) GetName() string

func (*AppListRequest) ProtoMessage

func (*AppListRequest) ProtoMessage()

func (*AppListRequest) Reset

func (m *AppListRequest) Reset()

func (*AppListRequest) String

func (m *AppListRequest) String() string

type AppListResponse

type AppListResponse struct {
	Apps   []*models.App `protobuf:"bytes,1,rep,name=apps" json:"apps,omitempty"`
	Limit  int32         `protobuf:"varint,2,opt,name=limit" json:"limit,omitempty"`
	Offset int32         `protobuf:"varint,3,opt,name=offset" json:"offset,omitempty"`
}

func (*AppListResponse) Descriptor

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

func (*AppListResponse) GetApps

func (m *AppListResponse) GetApps() []*models.App

func (*AppListResponse) GetLimit

func (m *AppListResponse) GetLimit() int32

func (*AppListResponse) GetOffset

func (m *AppListResponse) GetOffset() int32

func (*AppListResponse) ProtoMessage

func (*AppListResponse) ProtoMessage()

func (*AppListResponse) Reset

func (m *AppListResponse) Reset()

func (*AppListResponse) String

func (m *AppListResponse) String() string

type AppRequest

type AppRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	RepoUrl string `protobuf:"bytes,2,opt,name=repo_url,json=repoUrl" json:"repo_url,omitempty"`
}

func (*AppRequest) Descriptor

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

func (*AppRequest) GetName

func (m *AppRequest) GetName() string

func (*AppRequest) GetRepoUrl

func (m *AppRequest) GetRepoUrl() string

func (*AppRequest) ProtoMessage

func (*AppRequest) ProtoMessage()

func (*AppRequest) Reset

func (m *AppRequest) Reset()

func (*AppRequest) String

func (m *AppRequest) String() string

type AppResourceReq

type AppResourceReq struct {
	App      string `protobuf:"bytes,1,opt,name=app" json:"app,omitempty"`
	Resource string `protobuf:"bytes,2,opt,name=resource" json:"resource,omitempty"`
}

func (*AppResourceReq) Descriptor

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

func (*AppResourceReq) GetApp

func (m *AppResourceReq) GetApp() string

func (*AppResourceReq) GetResource

func (m *AppResourceReq) GetResource() string

func (*AppResourceReq) ProtoMessage

func (*AppResourceReq) ProtoMessage()

func (*AppResourceReq) Reset

func (m *AppResourceReq) Reset()

func (*AppResourceReq) String

func (m *AppResourceReq) String() string

type AuthRequest

type AuthRequest struct {
	Password string `protobuf:"bytes,1,opt,name=password" json:"password,omitempty"`
}

func (*AuthRequest) Descriptor

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

func (*AuthRequest) GetPassword

func (m *AuthRequest) GetPassword() string

func (*AuthRequest) ProtoMessage

func (*AuthRequest) ProtoMessage()

func (*AuthRequest) Reset

func (m *AuthRequest) Reset()

func (*AuthRequest) String

func (m *AuthRequest) String() string

type AuthResponse

type AuthResponse struct {
	Host     string `protobuf:"bytes,1,opt,name=host" json:"host,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Project  string `protobuf:"bytes,3,opt,name=project" json:"project,omitempty"`
	Region   string `protobuf:"bytes,4,opt,name=region" json:"region,omitempty"`
	Provider string `protobuf:"bytes,5,opt,name=provider" json:"provider,omitempty"`
}

func (*AuthResponse) Descriptor

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

func (*AuthResponse) GetHost

func (m *AuthResponse) GetHost() string

func (*AuthResponse) GetName

func (m *AuthResponse) GetName() string

func (*AuthResponse) GetProject

func (m *AuthResponse) GetProject() string

func (*AuthResponse) GetProvider

func (m *AuthResponse) GetProvider() string

func (*AuthResponse) GetRegion

func (m *AuthResponse) GetRegion() string

func (*AuthResponse) ProtoMessage

func (*AuthResponse) ProtoMessage()

func (*AuthResponse) Reset

func (m *AuthResponse) Reset()

func (*AuthResponse) String

func (m *AuthResponse) String() string

type BuildListResponse

type BuildListResponse struct {
	Builds []*models.Build `protobuf:"bytes,1,rep,name=builds" json:"builds,omitempty"`
}

func (*BuildListResponse) Descriptor

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

func (*BuildListResponse) GetBuilds

func (m *BuildListResponse) GetBuilds() []*models.Build

func (*BuildListResponse) ProtoMessage

func (*BuildListResponse) ProtoMessage()

func (*BuildListResponse) Reset

func (m *BuildListResponse) Reset()

func (*BuildListResponse) String

func (m *BuildListResponse) String() string

type BuildLogRequest

type BuildLogRequest struct {
	App string `protobuf:"bytes,1,opt,name=app" json:"app,omitempty"`
	Id  string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	Pos int32  `protobuf:"varint,3,opt,name=pos" json:"pos,omitempty"`
}

func (*BuildLogRequest) Descriptor

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

func (*BuildLogRequest) GetApp

func (m *BuildLogRequest) GetApp() string

func (*BuildLogRequest) GetId

func (m *BuildLogRequest) GetId() string

func (*BuildLogRequest) GetPos

func (m *BuildLogRequest) GetPos() int32

func (*BuildLogRequest) ProtoMessage

func (*BuildLogRequest) ProtoMessage()

func (*BuildLogRequest) Reset

func (m *BuildLogRequest) Reset()

func (*BuildLogRequest) String

func (m *BuildLogRequest) String() string

type BuildLogResponse

type BuildLogResponse struct {
	Pos   int32    `protobuf:"varint,1,opt,name=pos" json:"pos,omitempty"`
	Lines []string `protobuf:"bytes,2,rep,name=lines" json:"lines,omitempty"`
}

func (*BuildLogResponse) Descriptor

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

func (*BuildLogResponse) GetLines

func (m *BuildLogResponse) GetLines() []string

func (*BuildLogResponse) GetPos

func (m *BuildLogResponse) GetPos() int32

func (*BuildLogResponse) ProtoMessage

func (*BuildLogResponse) ProtoMessage()

func (*BuildLogResponse) Reset

func (m *BuildLogResponse) Reset()

func (*BuildLogResponse) String

func (m *BuildLogResponse) String() string

type CertificateReq

type CertificateReq struct {
	App         string `protobuf:"bytes,1,opt,name=app" json:"app,omitempty"`
	Domain      string `protobuf:"bytes,2,opt,name=domain" json:"domain,omitempty"`
	CertEncoded string `protobuf:"bytes,3,opt,name=cert_encoded,json=certEncoded" json:"cert_encoded,omitempty"`
	KeyEncoded  string `protobuf:"bytes,4,opt,name=key_encoded,json=keyEncoded" json:"key_encoded,omitempty"`
}

func (*CertificateReq) Descriptor

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

func (*CertificateReq) GetApp

func (m *CertificateReq) GetApp() string

func (*CertificateReq) GetCertEncoded

func (m *CertificateReq) GetCertEncoded() string

func (*CertificateReq) GetDomain

func (m *CertificateReq) GetDomain() string

func (*CertificateReq) GetKeyEncoded

func (m *CertificateReq) GetKeyEncoded() string

func (*CertificateReq) ProtoMessage

func (*CertificateReq) ProtoMessage()

func (*CertificateReq) Reset

func (m *CertificateReq) Reset()

func (*CertificateReq) String

func (m *CertificateReq) String() string

type CmdResponse

type CmdResponse struct {
	ExitCode int32  `protobuf:"varint,1,opt,name=exit_code,json=exitCode" json:"exit_code,omitempty"`
	Err      string `protobuf:"bytes,2,opt,name=err" json:"err,omitempty"`
	StdOut   string `protobuf:"bytes,3,opt,name=stdOut" json:"stdOut,omitempty"`
	StdErr   string `protobuf:"bytes,4,opt,name=stdErr" json:"stdErr,omitempty"`
}

func (*CmdResponse) Descriptor

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

func (*CmdResponse) GetErr

func (m *CmdResponse) GetErr() string

func (*CmdResponse) GetExitCode

func (m *CmdResponse) GetExitCode() int32

func (*CmdResponse) GetStdErr

func (m *CmdResponse) GetStdErr() string

func (*CmdResponse) GetStdOut

func (m *CmdResponse) GetStdOut() string

func (*CmdResponse) ProtoMessage

func (*CmdResponse) ProtoMessage()

func (*CmdResponse) Reset

func (m *CmdResponse) Reset()

func (*CmdResponse) String

func (m *CmdResponse) String() string

type CreateBuildRequest

type CreateBuildRequest struct {
	App       string `protobuf:"bytes,1,opt,name=app" json:"app,omitempty"`
	Version   string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
	Procfile  []byte `protobuf:"bytes,3,opt,name=procfile,proto3" json:"procfile,omitempty"`
	Trigger   bool   `protobuf:"varint,4,opt,name=trigger" json:"trigger,omitempty"`
	DockerTag string `protobuf:"bytes,5,opt,name=docker_tag,json=dockerTag" json:"docker_tag,omitempty"`
}

func (*CreateBuildRequest) Descriptor

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

func (*CreateBuildRequest) GetApp

func (m *CreateBuildRequest) GetApp() string

func (*CreateBuildRequest) GetDockerTag

func (m *CreateBuildRequest) GetDockerTag() string

func (*CreateBuildRequest) GetProcfile

func (m *CreateBuildRequest) GetProcfile() []byte

func (*CreateBuildRequest) GetTrigger

func (m *CreateBuildRequest) GetTrigger() bool

func (*CreateBuildRequest) GetVersion

func (m *CreateBuildRequest) GetVersion() string

func (*CreateBuildRequest) ProtoMessage

func (*CreateBuildRequest) ProtoMessage()

func (*CreateBuildRequest) Reset

func (m *CreateBuildRequest) Reset()

func (*CreateBuildRequest) String

func (m *CreateBuildRequest) String() string

type CreateReleaseRequest

type CreateReleaseRequest struct {
	Build  *models.Build `protobuf:"bytes,1,opt,name=build" json:"build,omitempty"`
	Domain string        `protobuf:"bytes,2,opt,name=domain" json:"domain,omitempty"`
}

func (*CreateReleaseRequest) Descriptor

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

func (*CreateReleaseRequest) GetBuild

func (m *CreateReleaseRequest) GetBuild() *models.Build

func (*CreateReleaseRequest) GetDomain

func (m *CreateReleaseRequest) GetDomain() string

func (*CreateReleaseRequest) ProtoMessage

func (*CreateReleaseRequest) ProtoMessage()

func (*CreateReleaseRequest) Reset

func (m *CreateReleaseRequest) Reset()

func (*CreateReleaseRequest) String

func (m *CreateReleaseRequest) String() string

type CreateResourceRequest

type CreateResourceRequest struct {
	Name   string            `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Kind   string            `protobuf:"bytes,2,opt,name=kind" json:"kind,omitempty"`
	Params map[string]string `` /* 132-byte string literal not displayed */
}

func (*CreateResourceRequest) Descriptor

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

func (*CreateResourceRequest) GetKind

func (m *CreateResourceRequest) GetKind() string

func (*CreateResourceRequest) GetName

func (m *CreateResourceRequest) GetName() string

func (*CreateResourceRequest) GetParams

func (m *CreateResourceRequest) GetParams() map[string]string

func (*CreateResourceRequest) ProtoMessage

func (*CreateResourceRequest) ProtoMessage()

func (*CreateResourceRequest) Reset

func (m *CreateResourceRequest) Reset()

func (*CreateResourceRequest) String

func (m *CreateResourceRequest) String() string

type EnvSetRequest

type EnvSetRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Data string `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"`
}

func (*EnvSetRequest) Descriptor

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

func (*EnvSetRequest) GetData

func (m *EnvSetRequest) GetData() string

func (*EnvSetRequest) GetName

func (m *EnvSetRequest) GetName() string

func (*EnvSetRequest) ProtoMessage

func (*EnvSetRequest) ProtoMessage()

func (*EnvSetRequest) Reset

func (m *EnvSetRequest) Reset()

func (*EnvSetRequest) String

func (m *EnvSetRequest) String() string

type KubectlReq

type KubectlReq struct {
	Args []string `protobuf:"bytes,1,rep,name=args" json:"args,omitempty"`
}

func (*KubectlReq) Descriptor

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

func (*KubectlReq) GetArgs

func (m *KubectlReq) GetArgs() []string

func (*KubectlReq) ProtoMessage

func (*KubectlReq) ProtoMessage()

func (*KubectlReq) Reset

func (m *KubectlReq) Reset()

func (*KubectlReq) String

func (m *KubectlReq) String() string

type ListDomainReqponse

type ListDomainReqponse struct {
	Url []string `protobuf:"bytes,1,rep,name=url" json:"url,omitempty"`
}

func (*ListDomainReqponse) Descriptor

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

func (*ListDomainReqponse) GetUrl

func (m *ListDomainReqponse) GetUrl() []string

func (*ListDomainReqponse) ProtoMessage

func (*ListDomainReqponse) ProtoMessage()

func (*ListDomainReqponse) Reset

func (m *ListDomainReqponse) Reset()

func (*ListDomainReqponse) String

func (m *ListDomainReqponse) String() string

type ListRequest

type ListRequest struct {
	Offset int32 `protobuf:"varint,1,opt,name=offset" json:"offset,omitempty"`
	Limit  int32 `protobuf:"varint,2,opt,name=limit" json:"limit,omitempty"`
}

func (*ListRequest) Descriptor

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

func (*ListRequest) GetLimit

func (m *ListRequest) GetLimit() int32

func (*ListRequest) GetOffset

func (m *ListRequest) GetOffset() int32

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset

func (m *ListRequest) Reset()

func (*ListRequest) String

func (m *ListRequest) String() string

type ListResponse

type ListResponse struct {
	Items []string `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}

func (*ListResponse) Descriptor

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

func (*ListResponse) GetItems

func (m *ListResponse) GetItems() []string

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) Reset

func (m *ListResponse) Reset()

func (*ListResponse) String

func (m *ListResponse) String() string

type LogStreamReq

type LogStreamReq struct {
	Name     string                     `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Follow   bool                       `protobuf:"varint,2,opt,name=follow" json:"follow,omitempty"`
	Since    *google_protobuf2.Duration `protobuf:"bytes,3,opt,name=since" json:"since,omitempty"`
	Proctype string                     `protobuf:"bytes,4,opt,name=proctype" json:"proctype,omitempty"`
}

func (*LogStreamReq) Descriptor

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

func (*LogStreamReq) GetFollow

func (m *LogStreamReq) GetFollow() bool

func (*LogStreamReq) GetName

func (m *LogStreamReq) GetName() string

func (*LogStreamReq) GetProctype

func (m *LogStreamReq) GetProctype() string

func (*LogStreamReq) GetSince

func (m *LogStreamReq) GetSince() *google_protobuf2.Duration

func (*LogStreamReq) ProtoMessage

func (*LogStreamReq) ProtoMessage()

func (*LogStreamReq) Reset

func (m *LogStreamReq) Reset()

func (*LogStreamReq) String

func (m *LogStreamReq) String() string

type ProcessListResponse

type ProcessListResponse struct {
	Items []*models.Process `protobuf:"bytes,1,rep,name=Items" json:"Items,omitempty"`
}

func (*ProcessListResponse) Descriptor

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

func (*ProcessListResponse) GetItems

func (m *ProcessListResponse) GetItems() []*models.Process

func (*ProcessListResponse) ProtoMessage

func (*ProcessListResponse) ProtoMessage()

func (*ProcessListResponse) Reset

func (m *ProcessListResponse) Reset()

func (*ProcessListResponse) String

func (m *ProcessListResponse) String() string

type ProcessRunReq

type ProcessRunReq struct {
	Name    string   `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Command []string `protobuf:"bytes,2,rep,name=command" json:"command,omitempty"`
}

func (*ProcessRunReq) Descriptor

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

func (*ProcessRunReq) GetCommand

func (m *ProcessRunReq) GetCommand() []string

func (*ProcessRunReq) GetName

func (m *ProcessRunReq) GetName() string

func (*ProcessRunReq) ProtoMessage

func (*ProcessRunReq) ProtoMessage()

func (*ProcessRunReq) Reset

func (m *ProcessRunReq) Reset()

func (*ProcessRunReq) String

func (m *ProcessRunReq) String() string

type ProviderServiceClient

type ProviderServiceClient interface {
	Auth(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error)
	// Account api
	AppList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*AppListResponse, error)
	AppCreate(ctx context.Context, in *AppRequest, opts ...grpc.CallOption) (*models.App, error)
	AppGet(ctx context.Context, in *AppRequest, opts ...grpc.CallOption) (*models.App, error)
	AppRestart(ctx context.Context, in *AppRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	AppDelete(ctx context.Context, in *AppRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Certificates API
	CertificateCreate(ctx context.Context, in *CertificateReq, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	CertificateDelete(ctx context.Context, in *CertificateReq, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Update Domain API
	AppUpdateDomain(ctx context.Context, in *AppResourceReq, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Build Api
	BuildCreate(ctx context.Context, in *CreateBuildRequest, opts ...grpc.CallOption) (*models.Build, error)
	BuildUpload(ctx context.Context, opts ...grpc.CallOption) (ProviderService_BuildUploadClient, error)
	BuildRelease(ctx context.Context, in *CreateReleaseRequest, opts ...grpc.CallOption) (*models.Release, error)
	BuildGet(ctx context.Context, in *AppIdRequest, opts ...grpc.CallOption) (*models.Build, error)
	BuildDelete(ctx context.Context, in *AppIdRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	BuildList(ctx context.Context, in *AppListRequest, opts ...grpc.CallOption) (*BuildListResponse, error)
	BuildLogs(ctx context.Context, in *BuildLogRequest, opts ...grpc.CallOption) (*BuildLogResponse, error)
	EnvironmentGet(ctx context.Context, in *AppRequest, opts ...grpc.CallOption) (*models.EnvConfig, error)
	EnvironmentSet(ctx context.Context, in *EnvSetRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Release endpoints
	ReleaseList(ctx context.Context, in *AppRequest, opts ...grpc.CallOption) (*ReleaseListResponse, error)
	ReleaseDelete(ctx context.Context, in *AppIdRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Resource endpoints
	ResourceList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ResourceListResponse, error)
	ResourceGet(ctx context.Context, in *AppRequest, opts ...grpc.CallOption) (*models.Resource, error)
	ResourceCreate(ctx context.Context, in *CreateResourceRequest, opts ...grpc.CallOption) (*models.Resource, error)
	ResourceDelete(ctx context.Context, in *AppRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	ResourceLink(ctx context.Context, in *AppResourceReq, opts ...grpc.CallOption) (*models.Resource, error)
	ResourceUnlink(ctx context.Context, in *AppResourceReq, opts ...grpc.CallOption) (*models.Resource, error)
	// kubectl api wrappers
	Kubectl(ctx context.Context, in *KubectlReq, opts ...grpc.CallOption) (*CmdResponse, error)
	// Process api
	ProcessRun(ctx context.Context, opts ...grpc.CallOption) (ProviderService_ProcessRunClient, error)
	ProcessList(ctx context.Context, in *AppRequest, opts ...grpc.CallOption) (*ProcessListResponse, error)
	ProcessSave(ctx context.Context, in *models.Formation, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	ProcessLimits(ctx context.Context, in *models.ResourceLimits, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
	// Logs API
	LogStream(ctx context.Context, in *LogStreamReq, opts ...grpc.CallOption) (ProviderService_LogStreamClient, error)
	// Docker Cred API
	DockerCredsGet(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*models.DockerCred, error)
}

func NewProviderServiceClient

func NewProviderServiceClient(cc *grpc.ClientConn) ProviderServiceClient

type ProviderServiceServer

type ProviderServiceServer interface {
	Auth(context.Context, *AuthRequest) (*AuthResponse, error)
	// Account api
	AppList(context.Context, *ListRequest) (*AppListResponse, error)
	AppCreate(context.Context, *AppRequest) (*models.App, error)
	AppGet(context.Context, *AppRequest) (*models.App, error)
	AppRestart(context.Context, *AppRequest) (*google_protobuf1.Empty, error)
	AppDelete(context.Context, *AppRequest) (*google_protobuf1.Empty, error)
	// Certificates API
	CertificateCreate(context.Context, *CertificateReq) (*google_protobuf1.Empty, error)
	CertificateDelete(context.Context, *CertificateReq) (*google_protobuf1.Empty, error)
	// Update Domain API
	AppUpdateDomain(context.Context, *AppResourceReq) (*google_protobuf1.Empty, error)
	// Build Api
	BuildCreate(context.Context, *CreateBuildRequest) (*models.Build, error)
	BuildUpload(ProviderService_BuildUploadServer) error
	BuildRelease(context.Context, *CreateReleaseRequest) (*models.Release, error)
	BuildGet(context.Context, *AppIdRequest) (*models.Build, error)
	BuildDelete(context.Context, *AppIdRequest) (*google_protobuf1.Empty, error)
	BuildList(context.Context, *AppListRequest) (*BuildListResponse, error)
	BuildLogs(context.Context, *BuildLogRequest) (*BuildLogResponse, error)
	EnvironmentGet(context.Context, *AppRequest) (*models.EnvConfig, error)
	EnvironmentSet(context.Context, *EnvSetRequest) (*google_protobuf1.Empty, error)
	// Release endpoints
	ReleaseList(context.Context, *AppRequest) (*ReleaseListResponse, error)
	ReleaseDelete(context.Context, *AppIdRequest) (*google_protobuf1.Empty, error)
	// Resource endpoints
	ResourceList(context.Context, *ListRequest) (*ResourceListResponse, error)
	ResourceGet(context.Context, *AppRequest) (*models.Resource, error)
	ResourceCreate(context.Context, *CreateResourceRequest) (*models.Resource, error)
	ResourceDelete(context.Context, *AppRequest) (*google_protobuf1.Empty, error)
	ResourceLink(context.Context, *AppResourceReq) (*models.Resource, error)
	ResourceUnlink(context.Context, *AppResourceReq) (*models.Resource, error)
	// kubectl api wrappers
	Kubectl(context.Context, *KubectlReq) (*CmdResponse, error)
	// Process api
	ProcessRun(ProviderService_ProcessRunServer) error
	ProcessList(context.Context, *AppRequest) (*ProcessListResponse, error)
	ProcessSave(context.Context, *models.Formation) (*google_protobuf1.Empty, error)
	ProcessLimits(context.Context, *models.ResourceLimits) (*google_protobuf1.Empty, error)
	// Logs API
	LogStream(*LogStreamReq, ProviderService_LogStreamServer) error
	// Docker Cred API
	DockerCredsGet(context.Context, *google_protobuf1.Empty) (*models.DockerCred, error)
}

type ProviderService_BuildUploadClient

type ProviderService_BuildUploadClient interface {
	Send(*StreamMsg) error
	CloseAndRecv() (*google_protobuf1.Empty, error)
	grpc.ClientStream
}

type ProviderService_BuildUploadServer

type ProviderService_BuildUploadServer interface {
	SendAndClose(*google_protobuf1.Empty) error
	Recv() (*StreamMsg, error)
	grpc.ServerStream
}

type ProviderService_LogStreamClient

type ProviderService_LogStreamClient interface {
	Recv() (*StreamMsg, error)
	grpc.ClientStream
}

type ProviderService_LogStreamServer

type ProviderService_LogStreamServer interface {
	Send(*StreamMsg) error
	grpc.ServerStream
}

type ProviderService_ProcessRunClient

type ProviderService_ProcessRunClient interface {
	Send(*StreamMsg) error
	Recv() (*StreamMsg, error)
	grpc.ClientStream
}

type ProviderService_ProcessRunServer

type ProviderService_ProcessRunServer interface {
	Send(*StreamMsg) error
	Recv() (*StreamMsg, error)
	grpc.ServerStream
}

type ReleaseListResponse

type ReleaseListResponse struct {
	Releases []*models.Release `protobuf:"bytes,1,rep,name=releases" json:"releases,omitempty"`
}

func (*ReleaseListResponse) Descriptor

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

func (*ReleaseListResponse) GetReleases

func (m *ReleaseListResponse) GetReleases() []*models.Release

func (*ReleaseListResponse) ProtoMessage

func (*ReleaseListResponse) ProtoMessage()

func (*ReleaseListResponse) Reset

func (m *ReleaseListResponse) Reset()

func (*ReleaseListResponse) String

func (m *ReleaseListResponse) String() string

type ResourceListResponse

type ResourceListResponse struct {
	Resources []*models.Resource `protobuf:"bytes,1,rep,name=resources" json:"resources,omitempty"`
}

func (*ResourceListResponse) Descriptor

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

func (*ResourceListResponse) GetResources

func (m *ResourceListResponse) GetResources() []*models.Resource

func (*ResourceListResponse) ProtoMessage

func (*ResourceListResponse) ProtoMessage()

func (*ResourceListResponse) Reset

func (m *ResourceListResponse) Reset()

func (*ResourceListResponse) String

func (m *ResourceListResponse) String() string

type StreamMsg

type StreamMsg struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (*StreamMsg) Descriptor

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

func (*StreamMsg) GetData

func (m *StreamMsg) GetData() []byte

func (*StreamMsg) ProtoMessage

func (*StreamMsg) ProtoMessage()

func (*StreamMsg) Reset

func (m *StreamMsg) Reset()

func (*StreamMsg) String

func (m *StreamMsg) String() string

Jump to

Keyboard shortcuts

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