Documentation ¶
Index ¶
- Variables
- func RegisterSchedulerServer(s *grpc.Server, srv SchedulerServer)
- func RegisterWebServer(s *grpc.Server, srv WebServer)
- type ApproveJobRequest
- func (*ApproveJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApproveJobRequest) GetProject() string
- func (x *ApproveJobRequest) GetWorkspace() string
- func (*ApproveJobRequest) ProtoMessage()
- func (x *ApproveJobRequest) ProtoReflect() protoreflect.Message
- func (x *ApproveJobRequest) Reset()
- func (x *ApproveJobRequest) String() string
- type ApproveJobResponse
- type CancelJobRequest
- func (*CancelJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CancelJobRequest) GetProject() string
- func (x *CancelJobRequest) GetWorkspace() string
- func (*CancelJobRequest) ProtoMessage()
- func (x *CancelJobRequest) ProtoReflect() protoreflect.Message
- func (x *CancelJobRequest) Reset()
- func (x *CancelJobRequest) String() string
- type CancelJobResponse
- type GetActionControlRequest
- type GetActionControlResponse
- func (*GetActionControlResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetActionControlResponse) GetProject() string
- func (x *GetActionControlResponse) GetType() GetActionControlResponse_Type
- func (x *GetActionControlResponse) GetWorkspace() string
- func (*GetActionControlResponse) ProtoMessage()
- func (x *GetActionControlResponse) ProtoReflect() protoreflect.Message
- func (x *GetActionControlResponse) Reset()
- func (x *GetActionControlResponse) String() string
- type GetActionControlResponse_Type
- func (GetActionControlResponse_Type) Descriptor() protoreflect.EnumDescriptor
- func (x GetActionControlResponse_Type) Enum() *GetActionControlResponse_Type
- func (GetActionControlResponse_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetActionControlResponse_Type) Number() protoreflect.EnumNumber
- func (x GetActionControlResponse_Type) String() string
- func (GetActionControlResponse_Type) Type() protoreflect.EnumType
- type GetActionRequest
- type GetActionResponse
- func (*GetActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetActionResponse) GetProject() string
- func (x *GetActionResponse) GetType() GetActionResponse_Type
- func (x *GetActionResponse) GetWorkspace() string
- func (*GetActionResponse) ProtoMessage()
- func (x *GetActionResponse) ProtoReflect() protoreflect.Message
- func (x *GetActionResponse) Reset()
- func (x *GetActionResponse) String() string
- type GetActionResponse_Type
- func (GetActionResponse_Type) Descriptor() protoreflect.EnumDescriptor
- func (x GetActionResponse_Type) Enum() *GetActionResponse_Type
- func (GetActionResponse_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetActionResponse_Type) Number() protoreflect.EnumNumber
- func (x GetActionResponse_Type) String() string
- func (GetActionResponse_Type) Type() protoreflect.EnumType
- type GetJobRequest
- func (*GetJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetJobRequest) GetProject() string
- func (x *GetJobRequest) GetWorkspace() string
- func (*GetJobRequest) ProtoMessage()
- func (x *GetJobRequest) ProtoReflect() protoreflect.Message
- func (x *GetJobRequest) Reset()
- func (x *GetJobRequest) String() string
- type GetJobResponse
- type GetWorkspaceVersionRequest
- func (*GetWorkspaceVersionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetWorkspaceVersionRequest) GetProject() string
- func (x *GetWorkspaceVersionRequest) GetWorkspace() string
- func (*GetWorkspaceVersionRequest) ProtoMessage()
- func (x *GetWorkspaceVersionRequest) ProtoReflect() protoreflect.Message
- func (x *GetWorkspaceVersionRequest) Reset()
- func (x *GetWorkspaceVersionRequest) String() string
- type GetWorkspaceVersionResponse
- func (*GetWorkspaceVersionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetWorkspaceVersionResponse) GetProjectVersion() string
- func (x *GetWorkspaceVersionResponse) GetWorkspaceVersion() string
- func (*GetWorkspaceVersionResponse) ProtoMessage()
- func (x *GetWorkspaceVersionResponse) ProtoReflect() protoreflect.Message
- func (x *GetWorkspaceVersionResponse) Reset()
- func (x *GetWorkspaceVersionResponse) String() string
- type GitRepository
- func (*GitRepository) Descriptor() ([]byte, []int)deprecated
- func (x *GitRepository) GetHost() string
- func (x *GitRepository) GetName() string
- func (x *GitRepository) GetPassword() string
- func (x *GitRepository) GetProtocol() string
- func (x *GitRepository) GetUser() string
- func (*GitRepository) ProtoMessage()
- func (x *GitRepository) ProtoReflect() protoreflect.Message
- func (x *GitRepository) Reset()
- func (x *GitRepository) String() string
- type Job
- func (*Job) Descriptor() ([]byte, []int)deprecated
- func (x *Job) GetApplyLog() string
- func (x *Job) GetDestroy() bool
- func (x *Job) GetError() string
- func (x *Job) GetId() uint64
- func (x *Job) GetPlanLog() string
- func (x *Job) GetPlanResult() string
- func (x *Job) GetProject() string
- func (x *Job) GetProjectVersion() string
- func (x *Job) GetStartedAt() *timestamp.Timestamp
- func (x *Job) GetStatus() Job_Status
- func (x *Job) GetWorkspace() *Workspace
- func (x *Job) GetWorkspaceVersion() string
- func (*Job) ProtoMessage()
- func (x *Job) ProtoReflect() protoreflect.Message
- func (x *Job) Reset()
- func (x *Job) String() string
- type Job_Status
- type ListProjectsRequest
- type ListProjectsResponse
- func (*ListProjectsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListProjectsResponse) GetProjects() []*ListProjectsResponse_Project
- func (*ListProjectsResponse) ProtoMessage()
- func (x *ListProjectsResponse) ProtoReflect() protoreflect.Message
- func (x *ListProjectsResponse) Reset()
- func (x *ListProjectsResponse) String() string
- type ListProjectsResponse_Project
- func (*ListProjectsResponse_Project) Descriptor() ([]byte, []int)deprecated
- func (x *ListProjectsResponse_Project) GetName() string
- func (*ListProjectsResponse_Project) ProtoMessage()
- func (x *ListProjectsResponse_Project) ProtoReflect() protoreflect.Message
- func (x *ListProjectsResponse_Project) Reset()
- func (x *ListProjectsResponse_Project) String() string
- type ListWorkspacesRequest
- func (*ListWorkspacesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListWorkspacesRequest) GetProject() string
- func (*ListWorkspacesRequest) ProtoMessage()
- func (x *ListWorkspacesRequest) ProtoReflect() protoreflect.Message
- func (x *ListWorkspacesRequest) Reset()
- func (x *ListWorkspacesRequest) String() string
- type ListWorkspacesResponse
- func (*ListWorkspacesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListWorkspacesResponse) GetWorkspaces() []*ListWorkspacesResponse_Workspace
- func (*ListWorkspacesResponse) ProtoMessage()
- func (x *ListWorkspacesResponse) ProtoReflect() protoreflect.Message
- func (x *ListWorkspacesResponse) Reset()
- func (x *ListWorkspacesResponse) String() string
- type ListWorkspacesResponse_Workspace
- func (*ListWorkspacesResponse_Workspace) Descriptor() ([]byte, []int)deprecated
- func (x *ListWorkspacesResponse_Workspace) GetName() string
- func (*ListWorkspacesResponse_Workspace) ProtoMessage()
- func (x *ListWorkspacesResponse_Workspace) ProtoReflect() protoreflect.Message
- func (x *ListWorkspacesResponse_Workspace) Reset()
- func (x *ListWorkspacesResponse_Workspace) String() string
- type Pair
- type Phase
- type Project
- func (*Project) Descriptor() ([]byte, []int)deprecated
- func (x *Project) GetBranch() string
- func (x *Project) GetEnvs() []*Pair
- func (x *Project) GetName() string
- func (x *Project) GetPath() string
- func (x *Project) GetRepo() string
- func (*Project) ProtoMessage()
- func (x *Project) ProtoReflect() protoreflect.Message
- func (x *Project) Reset()
- func (x *Project) String() string
- type RefreshProjectRequest
- func (*RefreshProjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshProjectRequest) GetProject() string
- func (*RefreshProjectRequest) ProtoMessage()
- func (x *RefreshProjectRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshProjectRequest) Reset()
- func (x *RefreshProjectRequest) String() string
- type RefreshProjectResponse
- type SchedulerClient
- type SchedulerClientMock
- func (m *SchedulerClientMock) GetAction(ctx context.Context, in *GetActionRequest, opts ...grpc.CallOption) (*GetActionResponse, error)
- func (m *SchedulerClientMock) GetActionControl(ctx context.Context, in *GetActionControlRequest, opts ...grpc.CallOption) (*GetActionControlResponse, error)
- func (m *SchedulerClientMock) GetWorkspaceVersion(ctx context.Context, in *GetWorkspaceVersionRequest, opts ...grpc.CallOption) (*GetWorkspaceVersionResponse, error)
- func (m *SchedulerClientMock) UpdateJobLog(ctx context.Context, in *UpdateJobLogRequest, opts ...grpc.CallOption) (*UpdateJobLogResponse, error)
- func (m *SchedulerClientMock) UpdateJobStatus(ctx context.Context, in *UpdateJobStatusRequest, opts ...grpc.CallOption) (*UpdateJobStatusResponse, error)
- type SchedulerServer
- type Source
- func (*Source) Descriptor() ([]byte, []int)deprecated
- func (x *Source) GetOwner() string
- func (x *Source) GetPath() string
- func (x *Source) GetRef() string
- func (x *Source) GetRepo() string
- func (x *Source) GetType() Source_Type
- func (*Source) ProtoMessage()
- func (x *Source) ProtoReflect() protoreflect.Message
- func (x *Source) Reset()
- func (x *Source) String() string
- type Source_Type
- func (Source_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Source_Type) Enum() *Source_Type
- func (Source_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Source_Type) Number() protoreflect.EnumNumber
- func (x Source_Type) String() string
- func (Source_Type) Type() protoreflect.EnumType
- type SubmitJobRequest
- func (*SubmitJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitJobRequest) GetProject() string
- func (x *SubmitJobRequest) GetWorkspace() string
- func (*SubmitJobRequest) ProtoMessage()
- func (x *SubmitJobRequest) ProtoReflect() protoreflect.Message
- func (x *SubmitJobRequest) Reset()
- func (x *SubmitJobRequest) String() string
- type SubmitJobResponse
- type UnimplementedSchedulerServer
- func (*UnimplementedSchedulerServer) GetAction(context.Context, *GetActionRequest) (*GetActionResponse, error)
- func (*UnimplementedSchedulerServer) GetActionControl(context.Context, *GetActionControlRequest) (*GetActionControlResponse, error)
- func (*UnimplementedSchedulerServer) GetWorkspaceVersion(context.Context, *GetWorkspaceVersionRequest) (*GetWorkspaceVersionResponse, error)
- func (*UnimplementedSchedulerServer) UpdateJobLog(context.Context, *UpdateJobLogRequest) (*UpdateJobLogResponse, error)
- func (*UnimplementedSchedulerServer) UpdateJobStatus(context.Context, *UpdateJobStatusRequest) (*UpdateJobStatusResponse, error)
- type UnimplementedWebServer
- func (*UnimplementedWebServer) ApproveJob(context.Context, *ApproveJobRequest) (*ApproveJobResponse, error)
- func (*UnimplementedWebServer) CancelJob(context.Context, *CancelJobRequest) (*CancelJobResponse, error)
- func (*UnimplementedWebServer) GetJob(context.Context, *GetJobRequest) (*GetJobResponse, error)
- func (*UnimplementedWebServer) ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error)
- func (*UnimplementedWebServer) ListWorkspaces(context.Context, *ListWorkspacesRequest) (*ListWorkspacesResponse, error)
- func (*UnimplementedWebServer) RefreshProject(context.Context, *RefreshProjectRequest) (*RefreshProjectResponse, error)
- func (*UnimplementedWebServer) SubmitJob(context.Context, *SubmitJobRequest) (*SubmitJobResponse, error)
- type UpdateJobLogRequest
- func (*UpdateJobLogRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateJobLogRequest) GetLog() string
- func (x *UpdateJobLogRequest) GetPhase() Phase
- func (x *UpdateJobLogRequest) GetProject() string
- func (x *UpdateJobLogRequest) GetWorkspace() string
- func (*UpdateJobLogRequest) ProtoMessage()
- func (x *UpdateJobLogRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateJobLogRequest) Reset()
- func (x *UpdateJobLogRequest) String() string
- type UpdateJobLogResponse
- type UpdateJobStatusRequest
- func (*UpdateJobStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateJobStatusRequest) GetDestroy() bool
- func (x *UpdateJobStatusRequest) GetError() string
- func (x *UpdateJobStatusRequest) GetProject() string
- func (x *UpdateJobStatusRequest) GetProjectVersion() string
- func (x *UpdateJobStatusRequest) GetResult() string
- func (x *UpdateJobStatusRequest) GetStatus() Job_Status
- func (x *UpdateJobStatusRequest) GetWorkspace() string
- func (x *UpdateJobStatusRequest) GetWorkspaceVersion() string
- func (*UpdateJobStatusRequest) ProtoMessage()
- func (x *UpdateJobStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateJobStatusRequest) Reset()
- func (x *UpdateJobStatusRequest) String() string
- type UpdateJobStatusResponse
- type WebClient
- type WebServer
- type Workspace
- func (*Workspace) Descriptor() ([]byte, []int)deprecated
- func (x *Workspace) GetName() string
- func (x *Workspace) GetSource() *Source
- func (x *Workspace) GetVarFiles() []*Pair
- func (x *Workspace) GetVars() []*Pair
- func (x *Workspace) GetWorkspace() string
- func (*Workspace) ProtoMessage()
- func (x *Workspace) ProtoReflect() protoreflect.Message
- func (x *Workspace) Reset()
- func (x *Workspace) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Phase_name = map[int32]string{ 0: "Plan", 1: "Apply", } Phase_value = map[string]int32{ "Plan": 0, "Apply": 1, } )
Enum value maps for Phase.
var ( Source_Type_name = map[int32]string{ 0: "github", } Source_Type_value = map[string]int32{ "github": 0, } )
Enum value maps for Source_Type.
var ( Job_Status_name = map[int32]string{ 0: "Pending", 1: "PlanInProgress", 2: "ReviewRequired", 3: "ApplyPending", 4: "ApplyInProgress", 5: "Succeeded", 6: "PlanFailed", 7: "ApplyFailed", } Job_Status_value = map[string]int32{ "Pending": 0, "PlanInProgress": 1, "ReviewRequired": 2, "ApplyPending": 3, "ApplyInProgress": 4, "Succeeded": 5, "PlanFailed": 6, "ApplyFailed": 7, } )
Enum value maps for Job_Status.
var ( GetActionResponse_Type_name = map[int32]string{ 0: "NONE", 1: "SUBMIT", 2: "APPROVE", } GetActionResponse_Type_value = map[string]int32{ "NONE": 0, "SUBMIT": 1, "APPROVE": 2, } )
Enum value maps for GetActionResponse_Type.
var ( GetActionControlResponse_Type_name = map[int32]string{ 0: "NONE", 1: "CANCEL", } GetActionControlResponse_Type_value = map[string]int32{ "NONE": 0, "CANCEL": 1, } )
Enum value maps for GetActionControlResponse_Type.
var File_common_proto protoreflect.FileDescriptor
var File_scheduler_proto protoreflect.FileDescriptor
var File_web_proto protoreflect.FileDescriptor
Functions ¶
func RegisterSchedulerServer ¶
func RegisterSchedulerServer(s *grpc.Server, srv SchedulerServer)
func RegisterWebServer ¶
Types ¶
type ApproveJobRequest ¶
type ApproveJobRequest struct { Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` Workspace string `protobuf:"bytes,2,opt,name=workspace,proto3" json:"workspace,omitempty"` // contains filtered or unexported fields }
func (*ApproveJobRequest) Descriptor
deprecated
func (*ApproveJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApproveJobRequest.ProtoReflect.Descriptor instead.
func (*ApproveJobRequest) GetProject ¶
func (x *ApproveJobRequest) GetProject() string
func (*ApproveJobRequest) GetWorkspace ¶
func (x *ApproveJobRequest) GetWorkspace() string
func (*ApproveJobRequest) ProtoMessage ¶
func (*ApproveJobRequest) ProtoMessage()
func (*ApproveJobRequest) ProtoReflect ¶
func (x *ApproveJobRequest) ProtoReflect() protoreflect.Message
func (*ApproveJobRequest) Reset ¶
func (x *ApproveJobRequest) Reset()
func (*ApproveJobRequest) String ¶
func (x *ApproveJobRequest) String() string
type ApproveJobResponse ¶
type ApproveJobResponse struct {
// contains filtered or unexported fields
}
func (*ApproveJobResponse) Descriptor
deprecated
func (*ApproveJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApproveJobResponse.ProtoReflect.Descriptor instead.
func (*ApproveJobResponse) ProtoMessage ¶
func (*ApproveJobResponse) ProtoMessage()
func (*ApproveJobResponse) ProtoReflect ¶
func (x *ApproveJobResponse) ProtoReflect() protoreflect.Message
func (*ApproveJobResponse) Reset ¶
func (x *ApproveJobResponse) Reset()
func (*ApproveJobResponse) String ¶
func (x *ApproveJobResponse) String() string
type CancelJobRequest ¶
type CancelJobRequest struct { Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` Workspace string `protobuf:"bytes,2,opt,name=workspace,proto3" json:"workspace,omitempty"` // contains filtered or unexported fields }
func (*CancelJobRequest) Descriptor
deprecated
func (*CancelJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelJobRequest.ProtoReflect.Descriptor instead.
func (*CancelJobRequest) GetProject ¶
func (x *CancelJobRequest) GetProject() string
func (*CancelJobRequest) GetWorkspace ¶
func (x *CancelJobRequest) GetWorkspace() string
func (*CancelJobRequest) ProtoMessage ¶
func (*CancelJobRequest) ProtoMessage()
func (*CancelJobRequest) ProtoReflect ¶
func (x *CancelJobRequest) ProtoReflect() protoreflect.Message
func (*CancelJobRequest) Reset ¶
func (x *CancelJobRequest) Reset()
func (*CancelJobRequest) String ¶
func (x *CancelJobRequest) String() string
type CancelJobResponse ¶
type CancelJobResponse struct {
// contains filtered or unexported fields
}
func (*CancelJobResponse) Descriptor
deprecated
func (*CancelJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use CancelJobResponse.ProtoReflect.Descriptor instead.
func (*CancelJobResponse) ProtoMessage ¶
func (*CancelJobResponse) ProtoMessage()
func (*CancelJobResponse) ProtoReflect ¶
func (x *CancelJobResponse) ProtoReflect() protoreflect.Message
func (*CancelJobResponse) Reset ¶
func (x *CancelJobResponse) Reset()
func (*CancelJobResponse) String ¶
func (x *CancelJobResponse) String() string
type GetActionControlRequest ¶
type GetActionControlRequest struct {
// contains filtered or unexported fields
}
func (*GetActionControlRequest) Descriptor
deprecated
func (*GetActionControlRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetActionControlRequest.ProtoReflect.Descriptor instead.
func (*GetActionControlRequest) ProtoMessage ¶
func (*GetActionControlRequest) ProtoMessage()
func (*GetActionControlRequest) ProtoReflect ¶
func (x *GetActionControlRequest) ProtoReflect() protoreflect.Message
func (*GetActionControlRequest) Reset ¶
func (x *GetActionControlRequest) Reset()
func (*GetActionControlRequest) String ¶
func (x *GetActionControlRequest) String() string
type GetActionControlResponse ¶
type GetActionControlResponse struct { Type GetActionControlResponse_Type `protobuf:"varint,1,opt,name=type,proto3,enum=GetActionControlResponse_Type" json:"type,omitempty"` Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Workspace string `protobuf:"bytes,3,opt,name=workspace,proto3" json:"workspace,omitempty"` // contains filtered or unexported fields }
func (*GetActionControlResponse) Descriptor
deprecated
func (*GetActionControlResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetActionControlResponse.ProtoReflect.Descriptor instead.
func (*GetActionControlResponse) GetProject ¶
func (x *GetActionControlResponse) GetProject() string
func (*GetActionControlResponse) GetType ¶
func (x *GetActionControlResponse) GetType() GetActionControlResponse_Type
func (*GetActionControlResponse) GetWorkspace ¶
func (x *GetActionControlResponse) GetWorkspace() string
func (*GetActionControlResponse) ProtoMessage ¶
func (*GetActionControlResponse) ProtoMessage()
func (*GetActionControlResponse) ProtoReflect ¶
func (x *GetActionControlResponse) ProtoReflect() protoreflect.Message
func (*GetActionControlResponse) Reset ¶
func (x *GetActionControlResponse) Reset()
func (*GetActionControlResponse) String ¶
func (x *GetActionControlResponse) String() string
type GetActionControlResponse_Type ¶
type GetActionControlResponse_Type int32
const ( GetActionControlResponse_NONE GetActionControlResponse_Type = 0 GetActionControlResponse_CANCEL GetActionControlResponse_Type = 1 )
func (GetActionControlResponse_Type) Descriptor ¶
func (GetActionControlResponse_Type) Descriptor() protoreflect.EnumDescriptor
func (GetActionControlResponse_Type) Enum ¶
func (x GetActionControlResponse_Type) Enum() *GetActionControlResponse_Type
func (GetActionControlResponse_Type) EnumDescriptor
deprecated
func (GetActionControlResponse_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetActionControlResponse_Type.Descriptor instead.
func (GetActionControlResponse_Type) Number ¶
func (x GetActionControlResponse_Type) Number() protoreflect.EnumNumber
func (GetActionControlResponse_Type) String ¶
func (x GetActionControlResponse_Type) String() string
func (GetActionControlResponse_Type) Type ¶
func (GetActionControlResponse_Type) Type() protoreflect.EnumType
type GetActionRequest ¶
type GetActionRequest struct {
// contains filtered or unexported fields
}
func (*GetActionRequest) Descriptor
deprecated
func (*GetActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetActionRequest.ProtoReflect.Descriptor instead.
func (*GetActionRequest) ProtoMessage ¶
func (*GetActionRequest) ProtoMessage()
func (*GetActionRequest) ProtoReflect ¶
func (x *GetActionRequest) ProtoReflect() protoreflect.Message
func (*GetActionRequest) Reset ¶
func (x *GetActionRequest) Reset()
func (*GetActionRequest) String ¶
func (x *GetActionRequest) String() string
type GetActionResponse ¶
type GetActionResponse struct { Type GetActionResponse_Type `protobuf:"varint,1,opt,name=type,proto3,enum=GetActionResponse_Type" json:"type,omitempty"` Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Workspace string `protobuf:"bytes,3,opt,name=workspace,proto3" json:"workspace,omitempty"` // contains filtered or unexported fields }
func (*GetActionResponse) Descriptor
deprecated
func (*GetActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetActionResponse.ProtoReflect.Descriptor instead.
func (*GetActionResponse) GetProject ¶
func (x *GetActionResponse) GetProject() string
func (*GetActionResponse) GetType ¶
func (x *GetActionResponse) GetType() GetActionResponse_Type
func (*GetActionResponse) GetWorkspace ¶
func (x *GetActionResponse) GetWorkspace() string
func (*GetActionResponse) ProtoMessage ¶
func (*GetActionResponse) ProtoMessage()
func (*GetActionResponse) ProtoReflect ¶
func (x *GetActionResponse) ProtoReflect() protoreflect.Message
func (*GetActionResponse) Reset ¶
func (x *GetActionResponse) Reset()
func (*GetActionResponse) String ¶
func (x *GetActionResponse) String() string
type GetActionResponse_Type ¶
type GetActionResponse_Type int32
const ( GetActionResponse_NONE GetActionResponse_Type = 0 GetActionResponse_SUBMIT GetActionResponse_Type = 1 GetActionResponse_APPROVE GetActionResponse_Type = 2 )
func (GetActionResponse_Type) Descriptor ¶
func (GetActionResponse_Type) Descriptor() protoreflect.EnumDescriptor
func (GetActionResponse_Type) Enum ¶
func (x GetActionResponse_Type) Enum() *GetActionResponse_Type
func (GetActionResponse_Type) EnumDescriptor
deprecated
func (GetActionResponse_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetActionResponse_Type.Descriptor instead.
func (GetActionResponse_Type) Number ¶
func (x GetActionResponse_Type) Number() protoreflect.EnumNumber
func (GetActionResponse_Type) String ¶
func (x GetActionResponse_Type) String() string
func (GetActionResponse_Type) Type ¶
func (GetActionResponse_Type) Type() protoreflect.EnumType
type GetJobRequest ¶
type GetJobRequest struct { Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` Workspace string `protobuf:"bytes,2,opt,name=workspace,proto3" json:"workspace,omitempty"` // contains filtered or unexported fields }
func (*GetJobRequest) Descriptor
deprecated
func (*GetJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetJobRequest.ProtoReflect.Descriptor instead.
func (*GetJobRequest) GetProject ¶
func (x *GetJobRequest) GetProject() string
func (*GetJobRequest) GetWorkspace ¶
func (x *GetJobRequest) GetWorkspace() string
func (*GetJobRequest) ProtoMessage ¶
func (*GetJobRequest) ProtoMessage()
func (*GetJobRequest) ProtoReflect ¶
func (x *GetJobRequest) ProtoReflect() protoreflect.Message
func (*GetJobRequest) Reset ¶
func (x *GetJobRequest) Reset()
func (*GetJobRequest) String ¶
func (x *GetJobRequest) String() string
type GetJobResponse ¶
type GetJobResponse struct { Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` // contains filtered or unexported fields }
func (*GetJobResponse) Descriptor
deprecated
func (*GetJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetJobResponse.ProtoReflect.Descriptor instead.
func (*GetJobResponse) GetJob ¶
func (x *GetJobResponse) GetJob() *Job
func (*GetJobResponse) ProtoMessage ¶
func (*GetJobResponse) ProtoMessage()
func (*GetJobResponse) ProtoReflect ¶
func (x *GetJobResponse) ProtoReflect() protoreflect.Message
func (*GetJobResponse) Reset ¶
func (x *GetJobResponse) Reset()
func (*GetJobResponse) String ¶
func (x *GetJobResponse) String() string
type GetWorkspaceVersionRequest ¶
type GetWorkspaceVersionRequest struct { Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` Workspace string `protobuf:"bytes,2,opt,name=workspace,proto3" json:"workspace,omitempty"` // contains filtered or unexported fields }
func (*GetWorkspaceVersionRequest) Descriptor
deprecated
func (*GetWorkspaceVersionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetWorkspaceVersionRequest.ProtoReflect.Descriptor instead.
func (*GetWorkspaceVersionRequest) GetProject ¶
func (x *GetWorkspaceVersionRequest) GetProject() string
func (*GetWorkspaceVersionRequest) GetWorkspace ¶
func (x *GetWorkspaceVersionRequest) GetWorkspace() string
func (*GetWorkspaceVersionRequest) ProtoMessage ¶
func (*GetWorkspaceVersionRequest) ProtoMessage()
func (*GetWorkspaceVersionRequest) ProtoReflect ¶
func (x *GetWorkspaceVersionRequest) ProtoReflect() protoreflect.Message
func (*GetWorkspaceVersionRequest) Reset ¶
func (x *GetWorkspaceVersionRequest) Reset()
func (*GetWorkspaceVersionRequest) String ¶
func (x *GetWorkspaceVersionRequest) String() string
type GetWorkspaceVersionResponse ¶
type GetWorkspaceVersionResponse struct { ProjectVersion string `protobuf:"bytes,1,opt,name=project_version,json=projectVersion,proto3" json:"project_version,omitempty"` WorkspaceVersion string `protobuf:"bytes,2,opt,name=workspace_version,json=workspaceVersion,proto3" json:"workspace_version,omitempty"` // contains filtered or unexported fields }
func (*GetWorkspaceVersionResponse) Descriptor
deprecated
func (*GetWorkspaceVersionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetWorkspaceVersionResponse.ProtoReflect.Descriptor instead.
func (*GetWorkspaceVersionResponse) GetProjectVersion ¶
func (x *GetWorkspaceVersionResponse) GetProjectVersion() string
func (*GetWorkspaceVersionResponse) GetWorkspaceVersion ¶
func (x *GetWorkspaceVersionResponse) GetWorkspaceVersion() string
func (*GetWorkspaceVersionResponse) ProtoMessage ¶
func (*GetWorkspaceVersionResponse) ProtoMessage()
func (*GetWorkspaceVersionResponse) ProtoReflect ¶
func (x *GetWorkspaceVersionResponse) ProtoReflect() protoreflect.Message
func (*GetWorkspaceVersionResponse) Reset ¶
func (x *GetWorkspaceVersionResponse) Reset()
func (*GetWorkspaceVersionResponse) String ¶
func (x *GetWorkspaceVersionResponse) String() string
type GitRepository ¶
type GitRepository struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*GitRepository) Descriptor
deprecated
func (*GitRepository) Descriptor() ([]byte, []int)
Deprecated: Use GitRepository.ProtoReflect.Descriptor instead.
func (*GitRepository) GetHost ¶
func (x *GitRepository) GetHost() string
func (*GitRepository) GetName ¶
func (x *GitRepository) GetName() string
func (*GitRepository) GetPassword ¶
func (x *GitRepository) GetPassword() string
func (*GitRepository) GetProtocol ¶
func (x *GitRepository) GetProtocol() string
func (*GitRepository) GetUser ¶
func (x *GitRepository) GetUser() string
func (*GitRepository) ProtoMessage ¶
func (*GitRepository) ProtoMessage()
func (*GitRepository) ProtoReflect ¶
func (x *GitRepository) ProtoReflect() protoreflect.Message
func (*GitRepository) Reset ¶
func (x *GitRepository) Reset()
func (*GitRepository) String ¶
func (x *GitRepository) String() string
type Job ¶
type Job struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` StartedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` Project string `protobuf:"bytes,3,opt,name=Project,proto3" json:"Project,omitempty"` Workspace *Workspace `protobuf:"bytes,4,opt,name=Workspace,proto3" json:"Workspace,omitempty"` Status Job_Status `protobuf:"varint,5,opt,name=status,proto3,enum=Job_Status" json:"status,omitempty"` PlanResult string `protobuf:"bytes,6,opt,name=plan_result,json=planResult,proto3" json:"plan_result,omitempty"` Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"` PlanLog string `protobuf:"bytes,8,opt,name=plan_log,json=planLog,proto3" json:"plan_log,omitempty"` ApplyLog string `protobuf:"bytes,9,opt,name=apply_log,json=applyLog,proto3" json:"apply_log,omitempty"` ProjectVersion string `protobuf:"bytes,10,opt,name=project_version,json=projectVersion,proto3" json:"project_version,omitempty"` WorkspaceVersion string `protobuf:"bytes,11,opt,name=workspace_version,json=workspaceVersion,proto3" json:"workspace_version,omitempty"` Destroy bool `protobuf:"varint,12,opt,name=destroy,proto3" json:"destroy,omitempty"` // contains filtered or unexported fields }
func (*Job) Descriptor
deprecated
func (*Job) GetApplyLog ¶
func (*Job) GetDestroy ¶
func (*Job) GetPlanLog ¶
func (*Job) GetPlanResult ¶
func (*Job) GetProject ¶
func (*Job) GetProjectVersion ¶
func (*Job) GetStartedAt ¶
func (*Job) GetStatus ¶
func (x *Job) GetStatus() Job_Status
func (*Job) GetWorkspace ¶
func (*Job) GetWorkspaceVersion ¶
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
func (*Job) ProtoReflect ¶
func (x *Job) ProtoReflect() protoreflect.Message
type Job_Status ¶
type Job_Status int32
const ( Job_Pending Job_Status = 0 Job_PlanInProgress Job_Status = 1 Job_ReviewRequired Job_Status = 2 Job_ApplyPending Job_Status = 3 Job_ApplyInProgress Job_Status = 4 Job_Succeeded Job_Status = 5 Job_PlanFailed Job_Status = 6 Job_ApplyFailed Job_Status = 7 )
func (Job_Status) Descriptor ¶
func (Job_Status) Descriptor() protoreflect.EnumDescriptor
func (Job_Status) Enum ¶
func (x Job_Status) Enum() *Job_Status
func (Job_Status) EnumDescriptor
deprecated
func (Job_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use Job_Status.Descriptor instead.
func (Job_Status) Number ¶
func (x Job_Status) Number() protoreflect.EnumNumber
func (Job_Status) String ¶
func (x Job_Status) String() string
func (Job_Status) Type ¶
func (Job_Status) Type() protoreflect.EnumType
type ListProjectsRequest ¶
type ListProjectsRequest struct {
// contains filtered or unexported fields
}
func (*ListProjectsRequest) Descriptor
deprecated
func (*ListProjectsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListProjectsRequest.ProtoReflect.Descriptor instead.
func (*ListProjectsRequest) ProtoMessage ¶
func (*ListProjectsRequest) ProtoMessage()
func (*ListProjectsRequest) ProtoReflect ¶
func (x *ListProjectsRequest) ProtoReflect() protoreflect.Message
func (*ListProjectsRequest) Reset ¶
func (x *ListProjectsRequest) Reset()
func (*ListProjectsRequest) String ¶
func (x *ListProjectsRequest) String() string
type ListProjectsResponse ¶
type ListProjectsResponse struct { Projects []*ListProjectsResponse_Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` // contains filtered or unexported fields }
func (*ListProjectsResponse) Descriptor
deprecated
func (*ListProjectsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListProjectsResponse.ProtoReflect.Descriptor instead.
func (*ListProjectsResponse) GetProjects ¶
func (x *ListProjectsResponse) GetProjects() []*ListProjectsResponse_Project
func (*ListProjectsResponse) ProtoMessage ¶
func (*ListProjectsResponse) ProtoMessage()
func (*ListProjectsResponse) ProtoReflect ¶
func (x *ListProjectsResponse) ProtoReflect() protoreflect.Message
func (*ListProjectsResponse) Reset ¶
func (x *ListProjectsResponse) Reset()
func (*ListProjectsResponse) String ¶
func (x *ListProjectsResponse) String() string
type ListProjectsResponse_Project ¶
type ListProjectsResponse_Project struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ListProjectsResponse_Project) Descriptor
deprecated
func (*ListProjectsResponse_Project) Descriptor() ([]byte, []int)
Deprecated: Use ListProjectsResponse_Project.ProtoReflect.Descriptor instead.
func (*ListProjectsResponse_Project) GetName ¶
func (x *ListProjectsResponse_Project) GetName() string
func (*ListProjectsResponse_Project) ProtoMessage ¶
func (*ListProjectsResponse_Project) ProtoMessage()
func (*ListProjectsResponse_Project) ProtoReflect ¶
func (x *ListProjectsResponse_Project) ProtoReflect() protoreflect.Message
func (*ListProjectsResponse_Project) Reset ¶
func (x *ListProjectsResponse_Project) Reset()
func (*ListProjectsResponse_Project) String ¶
func (x *ListProjectsResponse_Project) String() string
type ListWorkspacesRequest ¶
type ListWorkspacesRequest struct { Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*ListWorkspacesRequest) Descriptor
deprecated
func (*ListWorkspacesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListWorkspacesRequest.ProtoReflect.Descriptor instead.
func (*ListWorkspacesRequest) GetProject ¶
func (x *ListWorkspacesRequest) GetProject() string
func (*ListWorkspacesRequest) ProtoMessage ¶
func (*ListWorkspacesRequest) ProtoMessage()
func (*ListWorkspacesRequest) ProtoReflect ¶
func (x *ListWorkspacesRequest) ProtoReflect() protoreflect.Message
func (*ListWorkspacesRequest) Reset ¶
func (x *ListWorkspacesRequest) Reset()
func (*ListWorkspacesRequest) String ¶
func (x *ListWorkspacesRequest) String() string
type ListWorkspacesResponse ¶
type ListWorkspacesResponse struct { Workspaces []*ListWorkspacesResponse_Workspace `protobuf:"bytes,1,rep,name=workspaces,proto3" json:"workspaces,omitempty"` // contains filtered or unexported fields }
func (*ListWorkspacesResponse) Descriptor
deprecated
func (*ListWorkspacesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListWorkspacesResponse.ProtoReflect.Descriptor instead.
func (*ListWorkspacesResponse) GetWorkspaces ¶
func (x *ListWorkspacesResponse) GetWorkspaces() []*ListWorkspacesResponse_Workspace
func (*ListWorkspacesResponse) ProtoMessage ¶
func (*ListWorkspacesResponse) ProtoMessage()
func (*ListWorkspacesResponse) ProtoReflect ¶
func (x *ListWorkspacesResponse) ProtoReflect() protoreflect.Message
func (*ListWorkspacesResponse) Reset ¶
func (x *ListWorkspacesResponse) Reset()
func (*ListWorkspacesResponse) String ¶
func (x *ListWorkspacesResponse) String() string
type ListWorkspacesResponse_Workspace ¶
type ListWorkspacesResponse_Workspace struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ListWorkspacesResponse_Workspace) Descriptor
deprecated
func (*ListWorkspacesResponse_Workspace) Descriptor() ([]byte, []int)
Deprecated: Use ListWorkspacesResponse_Workspace.ProtoReflect.Descriptor instead.
func (*ListWorkspacesResponse_Workspace) GetName ¶
func (x *ListWorkspacesResponse_Workspace) GetName() string
func (*ListWorkspacesResponse_Workspace) ProtoMessage ¶
func (*ListWorkspacesResponse_Workspace) ProtoMessage()
func (*ListWorkspacesResponse_Workspace) ProtoReflect ¶
func (x *ListWorkspacesResponse_Workspace) ProtoReflect() protoreflect.Message
func (*ListWorkspacesResponse_Workspace) Reset ¶
func (x *ListWorkspacesResponse_Workspace) Reset()
func (*ListWorkspacesResponse_Workspace) String ¶
func (x *ListWorkspacesResponse_Workspace) String() string
type Pair ¶
type Pair struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Pair) Descriptor
deprecated
func (*Pair) ProtoMessage ¶
func (*Pair) ProtoMessage()
func (*Pair) ProtoReflect ¶
func (x *Pair) ProtoReflect() protoreflect.Message
type Phase ¶
type Phase int32
func (Phase) Descriptor ¶
func (Phase) Descriptor() protoreflect.EnumDescriptor
func (Phase) EnumDescriptor
deprecated
func (Phase) Number ¶
func (x Phase) Number() protoreflect.EnumNumber
func (Phase) Type ¶
func (Phase) Type() protoreflect.EnumType
type Project ¶
type Project struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Repo string `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"` Branch string `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Envs []*Pair `protobuf:"bytes,5,rep,name=envs,proto3" json:"envs,omitempty"` // contains filtered or unexported fields }
func (*Project) Descriptor
deprecated
func (*Project) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) ProtoReflect ¶
func (x *Project) ProtoReflect() protoreflect.Message
type RefreshProjectRequest ¶
type RefreshProjectRequest struct { Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*RefreshProjectRequest) Descriptor
deprecated
func (*RefreshProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshProjectRequest.ProtoReflect.Descriptor instead.
func (*RefreshProjectRequest) GetProject ¶
func (x *RefreshProjectRequest) GetProject() string
func (*RefreshProjectRequest) ProtoMessage ¶
func (*RefreshProjectRequest) ProtoMessage()
func (*RefreshProjectRequest) ProtoReflect ¶
func (x *RefreshProjectRequest) ProtoReflect() protoreflect.Message
func (*RefreshProjectRequest) Reset ¶
func (x *RefreshProjectRequest) Reset()
func (*RefreshProjectRequest) String ¶
func (x *RefreshProjectRequest) String() string
type RefreshProjectResponse ¶
type RefreshProjectResponse struct {
// contains filtered or unexported fields
}
func (*RefreshProjectResponse) Descriptor
deprecated
func (*RefreshProjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use RefreshProjectResponse.ProtoReflect.Descriptor instead.
func (*RefreshProjectResponse) ProtoMessage ¶
func (*RefreshProjectResponse) ProtoMessage()
func (*RefreshProjectResponse) ProtoReflect ¶
func (x *RefreshProjectResponse) ProtoReflect() protoreflect.Message
func (*RefreshProjectResponse) Reset ¶
func (x *RefreshProjectResponse) Reset()
func (*RefreshProjectResponse) String ¶
func (x *RefreshProjectResponse) String() string
type SchedulerClient ¶
type SchedulerClient interface { GetAction(ctx context.Context, in *GetActionRequest, opts ...grpc.CallOption) (*GetActionResponse, error) GetActionControl(ctx context.Context, in *GetActionControlRequest, opts ...grpc.CallOption) (*GetActionControlResponse, error) UpdateJobStatus(ctx context.Context, in *UpdateJobStatusRequest, opts ...grpc.CallOption) (*UpdateJobStatusResponse, error) UpdateJobLog(ctx context.Context, in *UpdateJobLogRequest, opts ...grpc.CallOption) (*UpdateJobLogResponse, error) GetWorkspaceVersion(ctx context.Context, in *GetWorkspaceVersionRequest, opts ...grpc.CallOption) (*GetWorkspaceVersionResponse, error) }
SchedulerClient is the client API for Scheduler service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSchedulerClient ¶
func NewSchedulerClient(cc grpc.ClientConnInterface) SchedulerClient
type SchedulerClientMock ¶
func NewSchedulerClientMock ¶
func NewSchedulerClientMock() *SchedulerClientMock
func (*SchedulerClientMock) GetAction ¶
func (m *SchedulerClientMock) GetAction(ctx context.Context, in *GetActionRequest, opts ...grpc.CallOption) (*GetActionResponse, error)
func (*SchedulerClientMock) GetActionControl ¶
func (m *SchedulerClientMock) GetActionControl(ctx context.Context, in *GetActionControlRequest, opts ...grpc.CallOption) (*GetActionControlResponse, error)
func (*SchedulerClientMock) GetWorkspaceVersion ¶
func (m *SchedulerClientMock) GetWorkspaceVersion(ctx context.Context, in *GetWorkspaceVersionRequest, opts ...grpc.CallOption) (*GetWorkspaceVersionResponse, error)
func (*SchedulerClientMock) UpdateJobLog ¶
func (m *SchedulerClientMock) UpdateJobLog(ctx context.Context, in *UpdateJobLogRequest, opts ...grpc.CallOption) (*UpdateJobLogResponse, error)
func (*SchedulerClientMock) UpdateJobStatus ¶
func (m *SchedulerClientMock) UpdateJobStatus(ctx context.Context, in *UpdateJobStatusRequest, opts ...grpc.CallOption) (*UpdateJobStatusResponse, error)
type SchedulerServer ¶
type SchedulerServer interface { GetAction(context.Context, *GetActionRequest) (*GetActionResponse, error) GetActionControl(context.Context, *GetActionControlRequest) (*GetActionControlResponse, error) UpdateJobStatus(context.Context, *UpdateJobStatusRequest) (*UpdateJobStatusResponse, error) UpdateJobLog(context.Context, *UpdateJobLogRequest) (*UpdateJobLogResponse, error) GetWorkspaceVersion(context.Context, *GetWorkspaceVersionRequest) (*GetWorkspaceVersionResponse, error) }
SchedulerServer is the server API for Scheduler service.
type Source ¶
type Source struct { Type Source_Type `protobuf:"varint,1,opt,name=type,proto3,enum=Source_Type" json:"type,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Repo string `protobuf:"bytes,3,opt,name=repo,proto3" json:"repo,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Ref string `protobuf:"bytes,5,opt,name=Ref,proto3" json:"Ref,omitempty"` // contains filtered or unexported fields }
func (*Source) Descriptor
deprecated
func (*Source) GetType ¶
func (x *Source) GetType() Source_Type
func (*Source) ProtoMessage ¶
func (*Source) ProtoMessage()
func (*Source) ProtoReflect ¶
func (x *Source) ProtoReflect() protoreflect.Message
type Source_Type ¶
type Source_Type int32
const (
Source_github Source_Type = 0
)
func (Source_Type) Descriptor ¶
func (Source_Type) Descriptor() protoreflect.EnumDescriptor
func (Source_Type) Enum ¶
func (x Source_Type) Enum() *Source_Type
func (Source_Type) EnumDescriptor
deprecated
func (Source_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Source_Type.Descriptor instead.
func (Source_Type) Number ¶
func (x Source_Type) Number() protoreflect.EnumNumber
func (Source_Type) String ¶
func (x Source_Type) String() string
func (Source_Type) Type ¶
func (Source_Type) Type() protoreflect.EnumType
type SubmitJobRequest ¶
type SubmitJobRequest struct { Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` Workspace string `protobuf:"bytes,2,opt,name=workspace,proto3" json:"workspace,omitempty"` // contains filtered or unexported fields }
func (*SubmitJobRequest) Descriptor
deprecated
func (*SubmitJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubmitJobRequest.ProtoReflect.Descriptor instead.
func (*SubmitJobRequest) GetProject ¶
func (x *SubmitJobRequest) GetProject() string
func (*SubmitJobRequest) GetWorkspace ¶
func (x *SubmitJobRequest) GetWorkspace() string
func (*SubmitJobRequest) ProtoMessage ¶
func (*SubmitJobRequest) ProtoMessage()
func (*SubmitJobRequest) ProtoReflect ¶
func (x *SubmitJobRequest) ProtoReflect() protoreflect.Message
func (*SubmitJobRequest) Reset ¶
func (x *SubmitJobRequest) Reset()
func (*SubmitJobRequest) String ¶
func (x *SubmitJobRequest) String() string
type SubmitJobResponse ¶
type SubmitJobResponse struct {
// contains filtered or unexported fields
}
func (*SubmitJobResponse) Descriptor
deprecated
func (*SubmitJobResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubmitJobResponse.ProtoReflect.Descriptor instead.
func (*SubmitJobResponse) ProtoMessage ¶
func (*SubmitJobResponse) ProtoMessage()
func (*SubmitJobResponse) ProtoReflect ¶
func (x *SubmitJobResponse) ProtoReflect() protoreflect.Message
func (*SubmitJobResponse) Reset ¶
func (x *SubmitJobResponse) Reset()
func (*SubmitJobResponse) String ¶
func (x *SubmitJobResponse) String() string
type UnimplementedSchedulerServer ¶
type UnimplementedSchedulerServer struct { }
UnimplementedSchedulerServer can be embedded to have forward compatible implementations.
func (*UnimplementedSchedulerServer) GetAction ¶
func (*UnimplementedSchedulerServer) GetAction(context.Context, *GetActionRequest) (*GetActionResponse, error)
func (*UnimplementedSchedulerServer) GetActionControl ¶
func (*UnimplementedSchedulerServer) GetActionControl(context.Context, *GetActionControlRequest) (*GetActionControlResponse, error)
func (*UnimplementedSchedulerServer) GetWorkspaceVersion ¶
func (*UnimplementedSchedulerServer) GetWorkspaceVersion(context.Context, *GetWorkspaceVersionRequest) (*GetWorkspaceVersionResponse, error)
func (*UnimplementedSchedulerServer) UpdateJobLog ¶
func (*UnimplementedSchedulerServer) UpdateJobLog(context.Context, *UpdateJobLogRequest) (*UpdateJobLogResponse, error)
func (*UnimplementedSchedulerServer) UpdateJobStatus ¶
func (*UnimplementedSchedulerServer) UpdateJobStatus(context.Context, *UpdateJobStatusRequest) (*UpdateJobStatusResponse, error)
type UnimplementedWebServer ¶
type UnimplementedWebServer struct { }
UnimplementedWebServer can be embedded to have forward compatible implementations.
func (*UnimplementedWebServer) ApproveJob ¶
func (*UnimplementedWebServer) ApproveJob(context.Context, *ApproveJobRequest) (*ApproveJobResponse, error)
func (*UnimplementedWebServer) CancelJob ¶
func (*UnimplementedWebServer) CancelJob(context.Context, *CancelJobRequest) (*CancelJobResponse, error)
func (*UnimplementedWebServer) GetJob ¶
func (*UnimplementedWebServer) GetJob(context.Context, *GetJobRequest) (*GetJobResponse, error)
func (*UnimplementedWebServer) ListProjects ¶
func (*UnimplementedWebServer) ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error)
func (*UnimplementedWebServer) ListWorkspaces ¶
func (*UnimplementedWebServer) ListWorkspaces(context.Context, *ListWorkspacesRequest) (*ListWorkspacesResponse, error)
func (*UnimplementedWebServer) RefreshProject ¶
func (*UnimplementedWebServer) RefreshProject(context.Context, *RefreshProjectRequest) (*RefreshProjectResponse, error)
func (*UnimplementedWebServer) SubmitJob ¶
func (*UnimplementedWebServer) SubmitJob(context.Context, *SubmitJobRequest) (*SubmitJobResponse, error)
type UpdateJobLogRequest ¶
type UpdateJobLogRequest struct { Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` Workspace string `protobuf:"bytes,2,opt,name=workspace,proto3" json:"workspace,omitempty"` Phase Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=Phase" json:"phase,omitempty"` Log string `protobuf:"bytes,4,opt,name=log,proto3" json:"log,omitempty"` // contains filtered or unexported fields }
func (*UpdateJobLogRequest) Descriptor
deprecated
func (*UpdateJobLogRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateJobLogRequest.ProtoReflect.Descriptor instead.
func (*UpdateJobLogRequest) GetLog ¶
func (x *UpdateJobLogRequest) GetLog() string
func (*UpdateJobLogRequest) GetPhase ¶
func (x *UpdateJobLogRequest) GetPhase() Phase
func (*UpdateJobLogRequest) GetProject ¶
func (x *UpdateJobLogRequest) GetProject() string
func (*UpdateJobLogRequest) GetWorkspace ¶
func (x *UpdateJobLogRequest) GetWorkspace() string
func (*UpdateJobLogRequest) ProtoMessage ¶
func (*UpdateJobLogRequest) ProtoMessage()
func (*UpdateJobLogRequest) ProtoReflect ¶
func (x *UpdateJobLogRequest) ProtoReflect() protoreflect.Message
func (*UpdateJobLogRequest) Reset ¶
func (x *UpdateJobLogRequest) Reset()
func (*UpdateJobLogRequest) String ¶
func (x *UpdateJobLogRequest) String() string
type UpdateJobLogResponse ¶
type UpdateJobLogResponse struct {
// contains filtered or unexported fields
}
func (*UpdateJobLogResponse) Descriptor
deprecated
func (*UpdateJobLogResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateJobLogResponse.ProtoReflect.Descriptor instead.
func (*UpdateJobLogResponse) ProtoMessage ¶
func (*UpdateJobLogResponse) ProtoMessage()
func (*UpdateJobLogResponse) ProtoReflect ¶
func (x *UpdateJobLogResponse) ProtoReflect() protoreflect.Message
func (*UpdateJobLogResponse) Reset ¶
func (x *UpdateJobLogResponse) Reset()
func (*UpdateJobLogResponse) String ¶
func (x *UpdateJobLogResponse) String() string
type UpdateJobStatusRequest ¶
type UpdateJobStatusRequest struct { Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` Workspace string `protobuf:"bytes,2,opt,name=workspace,proto3" json:"workspace,omitempty"` Status Job_Status `protobuf:"varint,3,opt,name=status,proto3,enum=Job_Status" json:"status,omitempty"` Result string `protobuf:"bytes,8,opt,name=result,proto3" json:"result,omitempty"` Error string `protobuf:"bytes,9,opt,name=error,proto3" json:"error,omitempty"` ProjectVersion string `protobuf:"bytes,10,opt,name=project_version,json=projectVersion,proto3" json:"project_version,omitempty"` WorkspaceVersion string `protobuf:"bytes,11,opt,name=workspace_version,json=workspaceVersion,proto3" json:"workspace_version,omitempty"` Destroy bool `protobuf:"varint,12,opt,name=destroy,proto3" json:"destroy,omitempty"` // contains filtered or unexported fields }
func (*UpdateJobStatusRequest) Descriptor
deprecated
func (*UpdateJobStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateJobStatusRequest.ProtoReflect.Descriptor instead.
func (*UpdateJobStatusRequest) GetDestroy ¶
func (x *UpdateJobStatusRequest) GetDestroy() bool
func (*UpdateJobStatusRequest) GetError ¶
func (x *UpdateJobStatusRequest) GetError() string
func (*UpdateJobStatusRequest) GetProject ¶
func (x *UpdateJobStatusRequest) GetProject() string
func (*UpdateJobStatusRequest) GetProjectVersion ¶
func (x *UpdateJobStatusRequest) GetProjectVersion() string
func (*UpdateJobStatusRequest) GetResult ¶
func (x *UpdateJobStatusRequest) GetResult() string
func (*UpdateJobStatusRequest) GetStatus ¶
func (x *UpdateJobStatusRequest) GetStatus() Job_Status
func (*UpdateJobStatusRequest) GetWorkspace ¶
func (x *UpdateJobStatusRequest) GetWorkspace() string
func (*UpdateJobStatusRequest) GetWorkspaceVersion ¶
func (x *UpdateJobStatusRequest) GetWorkspaceVersion() string
func (*UpdateJobStatusRequest) ProtoMessage ¶
func (*UpdateJobStatusRequest) ProtoMessage()
func (*UpdateJobStatusRequest) ProtoReflect ¶
func (x *UpdateJobStatusRequest) ProtoReflect() protoreflect.Message
func (*UpdateJobStatusRequest) Reset ¶
func (x *UpdateJobStatusRequest) Reset()
func (*UpdateJobStatusRequest) String ¶
func (x *UpdateJobStatusRequest) String() string
type UpdateJobStatusResponse ¶
type UpdateJobStatusResponse struct {
// contains filtered or unexported fields
}
func (*UpdateJobStatusResponse) Descriptor
deprecated
func (*UpdateJobStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateJobStatusResponse.ProtoReflect.Descriptor instead.
func (*UpdateJobStatusResponse) ProtoMessage ¶
func (*UpdateJobStatusResponse) ProtoMessage()
func (*UpdateJobStatusResponse) ProtoReflect ¶
func (x *UpdateJobStatusResponse) ProtoReflect() protoreflect.Message
func (*UpdateJobStatusResponse) Reset ¶
func (x *UpdateJobStatusResponse) Reset()
func (*UpdateJobStatusResponse) String ¶
func (x *UpdateJobStatusResponse) String() string
type WebClient ¶
type WebClient interface { ListProjects(ctx context.Context, in *ListProjectsRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error) RefreshProject(ctx context.Context, in *RefreshProjectRequest, opts ...grpc.CallOption) (*RefreshProjectResponse, error) ListWorkspaces(ctx context.Context, in *ListWorkspacesRequest, opts ...grpc.CallOption) (*ListWorkspacesResponse, error) GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*GetJobResponse, error) SubmitJob(ctx context.Context, in *SubmitJobRequest, opts ...grpc.CallOption) (*SubmitJobResponse, error) ApproveJob(ctx context.Context, in *ApproveJobRequest, opts ...grpc.CallOption) (*ApproveJobResponse, error) CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*CancelJobResponse, error) }
WebClient is the client API for Web service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWebClient ¶
func NewWebClient(cc grpc.ClientConnInterface) WebClient
type WebServer ¶
type WebServer interface { ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error) RefreshProject(context.Context, *RefreshProjectRequest) (*RefreshProjectResponse, error) ListWorkspaces(context.Context, *ListWorkspacesRequest) (*ListWorkspacesResponse, error) GetJob(context.Context, *GetJobRequest) (*GetJobResponse, error) SubmitJob(context.Context, *SubmitJobRequest) (*SubmitJobResponse, error) ApproveJob(context.Context, *ApproveJobRequest) (*ApproveJobResponse, error) CancelJob(context.Context, *CancelJobRequest) (*CancelJobResponse, error) }
WebServer is the server API for Web service.
type Workspace ¶
type Workspace struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Source *Source `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` Workspace string `protobuf:"bytes,3,opt,name=workspace,proto3" json:"workspace,omitempty"` Vars []*Pair `protobuf:"bytes,4,rep,name=vars,proto3" json:"vars,omitempty"` VarFiles []*Pair `protobuf:"bytes,5,rep,name=var_files,json=varFiles,proto3" json:"var_files,omitempty"` // contains filtered or unexported fields }
func (*Workspace) Descriptor
deprecated
func (*Workspace) GetVarFiles ¶
func (*Workspace) GetWorkspace ¶
func (*Workspace) ProtoMessage ¶
func (*Workspace) ProtoMessage()
func (*Workspace) ProtoReflect ¶
func (x *Workspace) ProtoReflect() protoreflect.Message