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 AppRequest AppListResponse AuthRequest AuthResponse CreateBuildRequest AppIdRequest BuildLogRequest BuildLogResponse EnvSetRequest ResourceListResponse BuildListResponse ProcessListResponse CreateResourceRequest AppResourceReq KubectlReq CmdResponse BuildLogStreamReq LogStreamReq ProcessRunReq StreamMsg ReleaseListResponse CreateReleaseRequest
Package controller is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterProviderServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterProviderServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProviderServiceClient) error
- func RegisterProviderServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterProviderServiceServer(s *grpc.Server, srv ProviderServiceServer)
- type AppIdRequest
- type AppListResponse
- func (*AppListResponse) Descriptor() ([]byte, []int)
- func (m *AppListResponse) GetApps() []*models.App
- func (m *AppListResponse) GetLimit() int32
- func (m *AppListResponse) GetOffset() int32
- func (*AppListResponse) ProtoMessage()
- func (m *AppListResponse) Reset()
- func (m *AppListResponse) String() string
- type AppRequest
- type AppResourceReq
- type AuthRequest
- type AuthResponse
- func (*AuthResponse) Descriptor() ([]byte, []int)
- func (m *AuthResponse) GetHost() string
- func (m *AuthResponse) GetName() string
- func (m *AuthResponse) GetProject() string
- func (m *AuthResponse) GetRegion() string
- func (*AuthResponse) ProtoMessage()
- func (m *AuthResponse) Reset()
- func (m *AuthResponse) String() string
- type BuildListResponse
- type BuildLogRequest
- type BuildLogResponse
- type BuildLogStreamReq
- func (*BuildLogStreamReq) Descriptor() ([]byte, []int)
- func (m *BuildLogStreamReq) GetFollow() bool
- func (m *BuildLogStreamReq) GetId() string
- func (m *BuildLogStreamReq) GetSince() *google_protobuf2.Duration
- func (*BuildLogStreamReq) ProtoMessage()
- func (m *BuildLogStreamReq) Reset()
- func (m *BuildLogStreamReq) String() string
- type CmdResponse
- func (*CmdResponse) Descriptor() ([]byte, []int)
- func (m *CmdResponse) GetErr() string
- func (m *CmdResponse) GetExitCode() int32
- func (m *CmdResponse) GetStdErr() string
- func (m *CmdResponse) GetStdOut() string
- func (*CmdResponse) ProtoMessage()
- func (m *CmdResponse) Reset()
- func (m *CmdResponse) String() string
- type CreateBuildRequest
- func (*CreateBuildRequest) Descriptor() ([]byte, []int)
- func (m *CreateBuildRequest) GetApp() string
- func (m *CreateBuildRequest) GetProcfile() []byte
- func (m *CreateBuildRequest) GetVersion() string
- func (*CreateBuildRequest) ProtoMessage()
- func (m *CreateBuildRequest) Reset()
- func (m *CreateBuildRequest) String() string
- type CreateReleaseRequest
- type CreateResourceRequest
- func (*CreateResourceRequest) Descriptor() ([]byte, []int)
- func (m *CreateResourceRequest) GetKind() string
- func (m *CreateResourceRequest) GetName() string
- func (m *CreateResourceRequest) GetParams() map[string]string
- func (*CreateResourceRequest) ProtoMessage()
- func (m *CreateResourceRequest) Reset()
- func (m *CreateResourceRequest) String() string
- type EnvSetRequest
- type KubectlReq
- type ListRequest
- type LogStreamReq
- func (*LogStreamReq) Descriptor() ([]byte, []int)
- func (m *LogStreamReq) GetFollow() bool
- func (m *LogStreamReq) GetName() string
- func (m *LogStreamReq) GetProctype() string
- func (m *LogStreamReq) GetSince() *google_protobuf2.Duration
- func (*LogStreamReq) ProtoMessage()
- func (m *LogStreamReq) Reset()
- func (m *LogStreamReq) String() string
- type ProcessListResponse
- type ProcessRunReq
- type ProviderServiceClient
- type ProviderServiceServer
- type ProviderService_BuildImportClient
- type ProviderService_BuildImportServer
- type ProviderService_BuildLogsStreamClient
- type ProviderService_BuildLogsStreamServer
- type ProviderService_LogStreamClient
- type ProviderService_LogStreamServer
- type ProviderService_ProcessRunClient
- type ProviderService_ProcessRunServer
- type ReleaseListResponse
- type ResourceListResponse
- type StreamMsg
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 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"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}
func (*AppResourceReq) Descriptor ¶
func (*AppResourceReq) Descriptor() ([]byte, []int)
func (*AppResourceReq) GetApp ¶
func (m *AppResourceReq) GetApp() string
func (*AppResourceReq) GetName ¶
func (m *AppResourceReq) GetName() 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"`
}
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) 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 BuildLogStreamReq ¶
type BuildLogStreamReq struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,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"`
}
func (*BuildLogStreamReq) Descriptor ¶
func (*BuildLogStreamReq) Descriptor() ([]byte, []int)
func (*BuildLogStreamReq) GetFollow ¶
func (m *BuildLogStreamReq) GetFollow() bool
func (*BuildLogStreamReq) GetId ¶
func (m *BuildLogStreamReq) GetId() string
func (*BuildLogStreamReq) GetSince ¶
func (m *BuildLogStreamReq) GetSince() *google_protobuf2.Duration
func (*BuildLogStreamReq) ProtoMessage ¶
func (*BuildLogStreamReq) ProtoMessage()
func (*BuildLogStreamReq) Reset ¶
func (m *BuildLogStreamReq) Reset()
func (*BuildLogStreamReq) String ¶
func (m *BuildLogStreamReq) 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"`
}
func (*CreateBuildRequest) Descriptor ¶
func (*CreateBuildRequest) Descriptor() ([]byte, []int)
func (*CreateBuildRequest) GetApp ¶
func (m *CreateBuildRequest) GetApp() string
func (*CreateBuildRequest) GetProcfile ¶
func (m *CreateBuildRequest) GetProcfile() []byte
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 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 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)
// Build Api
BuildCreate(ctx context.Context, in *CreateBuildRequest, opts ...grpc.CallOption) (*models.Build, error)
BuildImport(ctx context.Context, opts ...grpc.CallOption) (ProviderService_BuildImportClient, 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 *AppRequest, opts ...grpc.CallOption) (*BuildListResponse, error)
BuildLogs(ctx context.Context, in *BuildLogRequest, opts ...grpc.CallOption) (*BuildLogResponse, error)
BuildLogsStream(ctx context.Context, in *BuildLogStreamReq, opts ...grpc.CallOption) (ProviderService_BuildLogsStreamClient, 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)
// Logs API
LogStream(ctx context.Context, in *LogStreamReq, opts ...grpc.CallOption) (ProviderService_LogStreamClient, 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)
// Build Api
BuildCreate(context.Context, *CreateBuildRequest) (*models.Build, error)
BuildImport(ProviderService_BuildImportServer) 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, *AppRequest) (*BuildListResponse, error)
BuildLogs(context.Context, *BuildLogRequest) (*BuildLogResponse, error)
BuildLogsStream(*BuildLogStreamReq, ProviderService_BuildLogsStreamServer) 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)
// Logs API
LogStream(*LogStreamReq, ProviderService_LogStreamServer) error
}
type ProviderService_BuildImportClient ¶
type ProviderService_BuildImportClient interface {
Send(*StreamMsg) error
CloseAndRecv() (*google_protobuf1.Empty, error)
grpc.ClientStream
}
type ProviderService_BuildImportServer ¶
type ProviderService_BuildImportServer interface {
SendAndClose(*google_protobuf1.Empty) error
Recv() (*StreamMsg, error)
grpc.ServerStream
}
type ProviderService_BuildLogsStreamClient ¶
type ProviderService_BuildLogsStreamClient interface {
Recv() (*StreamMsg, error)
grpc.ClientStream
}
type ProviderService_BuildLogsStreamServer ¶
type ProviderService_BuildLogsStreamServer interface {
Send(*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 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) ProtoMessage ¶
func (*StreamMsg) ProtoMessage()