Documentation ¶
Index ¶
- Variables
- type BuildableTask
- func (*BuildableTask) Descriptor() ([]byte, []int)
- func (m *BuildableTask) GetArtifactUrl() string
- func (m *BuildableTask) GetDependsOn() string
- func (m *BuildableTask) GetGitSource() *GitSource
- func (m *BuildableTask) GetId() string
- func (m *BuildableTask) GetName() string
- func (m *BuildableTask) GetStatus() TaskStatus
- func (m *BuildableTask) GetTaskType() string
- func (*BuildableTask) ProtoMessage()
- func (m *BuildableTask) Reset()
- func (m *BuildableTask) String() string
- func (m *BuildableTask) XXX_DiscardUnknown()
- func (m *BuildableTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BuildableTask) XXX_Merge(src proto.Message)
- func (m *BuildableTask) XXX_Size() int
- func (m *BuildableTask) XXX_Unmarshal(b []byte) error
- type GitSource
- func (*GitSource) Descriptor() ([]byte, []int)
- func (m *GitSource) GetRef() string
- func (m *GitSource) GetUrl() string
- func (*GitSource) ProtoMessage()
- func (m *GitSource) Reset()
- func (m *GitSource) String() string
- func (m *GitSource) XXX_DiscardUnknown()
- func (m *GitSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GitSource) XXX_Merge(src proto.Message)
- func (m *GitSource) XXX_Size() int
- func (m *GitSource) XXX_Unmarshal(b []byte) error
- type LocalStorage
- func (*LocalStorage) Descriptor() ([]byte, []int)
- func (m *LocalStorage) GetWorkflows() []*Workflow
- func (*LocalStorage) ProtoMessage()
- func (m *LocalStorage) Reset()
- func (m *LocalStorage) String() string
- func (m *LocalStorage) XXX_DiscardUnknown()
- func (m *LocalStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LocalStorage) XXX_Merge(src proto.Message)
- func (m *LocalStorage) XXX_Size() int
- func (m *LocalStorage) XXX_Unmarshal(b []byte) error
- type StartBuildableTaskRequest
- func (*StartBuildableTaskRequest) Descriptor() ([]byte, []int)
- func (m *StartBuildableTaskRequest) GetBuildableTaskId() string
- func (m *StartBuildableTaskRequest) GetBuildableTaskType() string
- func (m *StartBuildableTaskRequest) GetWorkflowId() string
- func (*StartBuildableTaskRequest) ProtoMessage()
- func (m *StartBuildableTaskRequest) Reset()
- func (m *StartBuildableTaskRequest) String() string
- func (m *StartBuildableTaskRequest) XXX_DiscardUnknown()
- func (m *StartBuildableTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StartBuildableTaskRequest) XXX_Merge(src proto.Message)
- func (m *StartBuildableTaskRequest) XXX_Size() int
- func (m *StartBuildableTaskRequest) XXX_Unmarshal(b []byte) error
- type TaskStatus
- type Workflow
- func (*Workflow) Descriptor() ([]byte, []int)
- func (m *Workflow) GetBuildableTasks() []*BuildableTask
- func (m *Workflow) GetGitSource() *GitSource
- func (m *Workflow) GetId() string
- func (m *Workflow) GetName() string
- func (*Workflow) ProtoMessage()
- func (m *Workflow) Reset()
- func (m *Workflow) String() string
- func (m *Workflow) XXX_DiscardUnknown()
- func (m *Workflow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Workflow) XXX_Merge(src proto.Message)
- func (m *Workflow) XXX_Size() int
- func (m *Workflow) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var TaskStatus_name = map[int32]string{
0: "TASK_STATUS_UNKNOWN",
1: "TASK_STATUS_CREATED",
2: "TASK_STATUS_STARTED",
}
View Source
var TaskStatus_value = map[string]int32{
"TASK_STATUS_UNKNOWN": 0,
"TASK_STATUS_CREATED": 1,
"TASK_STATUS_STARTED": 2,
}
Functions ¶
This section is empty.
Types ¶
type BuildableTask ¶
type BuildableTask struct { // name is a unique name for a task, such as fetch_go_source. The name must be unique across // all workflow configurations. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // depends_on is the name of a task this task depends on. Artifacts from the depends_on task will be available // to this task. DependsOn string `protobuf:"bytes,2,opt,name=depends_on,json=dependsOn,proto3" json:"depends_on,omitempty"` // task_status is the current status of a task. Status TaskStatus `protobuf:"varint,3,opt,name=status,proto3,enum=protos.TaskStatus" json:"status,omitempty"` // artifact_url is an optional URL to an artifact published by this task. ArtifactUrl string `protobuf:"bytes,4,opt,name=artifact_url,json=artifactUrl,proto3" json:"artifact_url,omitempty"` // git_source is an optional configuration for which git source to fetch. GitSource *GitSource `protobuf:"bytes,5,opt,name=git_source,json=gitSource,proto3" json:"git_source,omitempty"` // task_type is a unique type for a task, such as FetchGerritSource. Types are used by task runners to identify // how to execute a task. TaskType string `protobuf:"bytes,6,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` // id is a unique identifier generated by relui when a buildable task is created. Id string `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BuildableTask) Descriptor ¶
func (*BuildableTask) Descriptor() ([]byte, []int)
func (*BuildableTask) GetArtifactUrl ¶
func (m *BuildableTask) GetArtifactUrl() string
func (*BuildableTask) GetDependsOn ¶
func (m *BuildableTask) GetDependsOn() string
func (*BuildableTask) GetGitSource ¶
func (m *BuildableTask) GetGitSource() *GitSource
func (*BuildableTask) GetId ¶
func (m *BuildableTask) GetId() string
func (*BuildableTask) GetName ¶
func (m *BuildableTask) GetName() string
func (*BuildableTask) GetStatus ¶
func (m *BuildableTask) GetStatus() TaskStatus
func (*BuildableTask) GetTaskType ¶
func (m *BuildableTask) GetTaskType() string
func (*BuildableTask) ProtoMessage ¶
func (*BuildableTask) ProtoMessage()
func (*BuildableTask) Reset ¶
func (m *BuildableTask) Reset()
func (*BuildableTask) String ¶
func (m *BuildableTask) String() string
func (*BuildableTask) XXX_DiscardUnknown ¶
func (m *BuildableTask) XXX_DiscardUnknown()
func (*BuildableTask) XXX_Marshal ¶
func (m *BuildableTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BuildableTask) XXX_Merge ¶
func (m *BuildableTask) XXX_Merge(src proto.Message)
func (*BuildableTask) XXX_Size ¶
func (m *BuildableTask) XXX_Size() int
func (*BuildableTask) XXX_Unmarshal ¶
func (m *BuildableTask) XXX_Unmarshal(b []byte) error
type GitSource ¶
type GitSource struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GitSource) Descriptor ¶
func (*GitSource) ProtoMessage ¶
func (*GitSource) ProtoMessage()
func (*GitSource) XXX_DiscardUnknown ¶
func (m *GitSource) XXX_DiscardUnknown()
func (*GitSource) XXX_Marshal ¶
func (*GitSource) XXX_Unmarshal ¶
type LocalStorage ¶
type LocalStorage struct { // workflows are a list of user-created workflows. Workflows []*Workflow `protobuf:"bytes,1,rep,name=workflows,proto3" json:"workflows,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
LocalStorage is the persisted data of relui. It is used in development mode for saving application state.
func (*LocalStorage) Descriptor ¶
func (*LocalStorage) Descriptor() ([]byte, []int)
func (*LocalStorage) GetWorkflows ¶
func (m *LocalStorage) GetWorkflows() []*Workflow
func (*LocalStorage) ProtoMessage ¶
func (*LocalStorage) ProtoMessage()
func (*LocalStorage) Reset ¶
func (m *LocalStorage) Reset()
func (*LocalStorage) String ¶
func (m *LocalStorage) String() string
func (*LocalStorage) XXX_DiscardUnknown ¶
func (m *LocalStorage) XXX_DiscardUnknown()
func (*LocalStorage) XXX_Marshal ¶
func (m *LocalStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LocalStorage) XXX_Merge ¶
func (m *LocalStorage) XXX_Merge(src proto.Message)
func (*LocalStorage) XXX_Size ¶
func (m *LocalStorage) XXX_Size() int
func (*LocalStorage) XXX_Unmarshal ¶
func (m *LocalStorage) XXX_Unmarshal(b []byte) error
type StartBuildableTaskRequest ¶
type StartBuildableTaskRequest struct { // workflow_id is the workflow to which the BuildableTask belongs. WorkflowId string `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` // buildable_task_id is the id of the BuildableTask to be started. BuildableTaskId string `protobuf:"bytes,2,opt,name=buildable_task_id,json=buildableTaskId,proto3" json:"buildable_task_id,omitempty"` // buildable_task_type is the type of the BuildableTask to be started. BuildableTaskType string `protobuf:"bytes,3,opt,name=buildable_task_type,json=buildableTaskType,proto3" json:"buildable_task_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
StartBuildableTaskRequest is a message sent to workers to start working on a BuildableTask for a Workflow.
func (*StartBuildableTaskRequest) Descriptor ¶
func (*StartBuildableTaskRequest) Descriptor() ([]byte, []int)
func (*StartBuildableTaskRequest) GetBuildableTaskId ¶
func (m *StartBuildableTaskRequest) GetBuildableTaskId() string
func (*StartBuildableTaskRequest) GetBuildableTaskType ¶
func (m *StartBuildableTaskRequest) GetBuildableTaskType() string
func (*StartBuildableTaskRequest) GetWorkflowId ¶
func (m *StartBuildableTaskRequest) GetWorkflowId() string
func (*StartBuildableTaskRequest) ProtoMessage ¶
func (*StartBuildableTaskRequest) ProtoMessage()
func (*StartBuildableTaskRequest) Reset ¶
func (m *StartBuildableTaskRequest) Reset()
func (*StartBuildableTaskRequest) String ¶
func (m *StartBuildableTaskRequest) String() string
func (*StartBuildableTaskRequest) XXX_DiscardUnknown ¶
func (m *StartBuildableTaskRequest) XXX_DiscardUnknown()
func (*StartBuildableTaskRequest) XXX_Marshal ¶
func (m *StartBuildableTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StartBuildableTaskRequest) XXX_Merge ¶
func (m *StartBuildableTaskRequest) XXX_Merge(src proto.Message)
func (*StartBuildableTaskRequest) XXX_Size ¶
func (m *StartBuildableTaskRequest) XXX_Size() int
func (*StartBuildableTaskRequest) XXX_Unmarshal ¶
func (m *StartBuildableTaskRequest) XXX_Unmarshal(b []byte) error
type TaskStatus ¶
type TaskStatus int32
const ( TaskStatus_TASK_STATUS_UNKNOWN TaskStatus = 0 TaskStatus_TASK_STATUS_CREATED TaskStatus = 1 TaskStatus_TASK_STATUS_STARTED TaskStatus = 2 )
func (TaskStatus) EnumDescriptor ¶
func (TaskStatus) EnumDescriptor() ([]byte, []int)
func (TaskStatus) String ¶
func (x TaskStatus) String() string
type Workflow ¶
type Workflow struct { // name is a unique name for a workflow, such as local_go_release. The name must be unique across // all workflow configurations. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // buildable_asks is a list of tasks to be performed by the workflow. BuildableTasks []*BuildableTask `protobuf:"bytes,2,rep,name=buildable_tasks,json=buildableTasks,proto3" json:"buildable_tasks,omitempty"` // git_source is an optional configuration for which git source to fetch. GitSource *GitSource `protobuf:"bytes,3,opt,name=git_source,json=gitSource,proto3" json:"git_source,omitempty"` // id is a unique identifier generated by relui when a workflow is created. Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Workflow) Descriptor ¶
func (*Workflow) GetBuildableTasks ¶
func (m *Workflow) GetBuildableTasks() []*BuildableTask
func (*Workflow) GetGitSource ¶
func (*Workflow) ProtoMessage ¶
func (*Workflow) ProtoMessage()
func (*Workflow) XXX_DiscardUnknown ¶
func (m *Workflow) XXX_DiscardUnknown()
func (*Workflow) XXX_Marshal ¶
func (*Workflow) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.