import "golang.org/x/build/cmd/relui/protos"
var TaskStatus_name = map[int32]string{ 0: "TASK_STATUS_UNKNOWN", 1: "TASK_STATUS_CREATED", 2: "TASK_STATUS_STARTED", }
var TaskStatus_value = map[string]int32{ "TASK_STATUS_UNKNOWN": 0, "TASK_STATUS_CREATED": 1, "TASK_STATUS_STARTED": 2, }
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() ([]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_Merge(src proto.Message)
func (m *BuildableTask) XXX_Size() int
func (m *BuildableTask) XXX_Unmarshal(b []byte) error
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:"-"` }
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() ([]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_Merge(src proto.Message)
func (m *LocalStorage) XXX_Size() int
func (m *LocalStorage) XXX_Unmarshal(b []byte) error
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() ([]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_Merge(src proto.Message)
func (m *StartBuildableTaskRequest) XXX_Size() int
func (m *StartBuildableTaskRequest) XXX_Unmarshal(b []byte) error
const ( TaskStatus_TASK_STATUS_UNKNOWN TaskStatus = 0 TaskStatus_TASK_STATUS_CREATED TaskStatus = 1 TaskStatus_TASK_STATUS_STARTED TaskStatus = 2 )
func (TaskStatus) EnumDescriptor() ([]byte, []int)
func (x TaskStatus) String() string
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"` // params are parameters provided when creating a workflow. Params map[string]string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // 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 (m *Workflow) GetBuildableTasks() []*BuildableTask
Package protos imports 3 packages (graph) and is imported by 2 packages. Updated 2021-01-15. Refresh now. Tools for package owners.