blob: e85ff437d5178c544cf51a22d0085d8ab5a73e15 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: relui.proto
package protos
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type TaskStatus int32
const (
TaskStatus_TASK_STATUS_UNKNOWN TaskStatus = 0
TaskStatus_TASK_STATUS_CREATED TaskStatus = 1
TaskStatus_TASK_STATUS_STARTED TaskStatus = 2
)
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,
}
func (x TaskStatus) String() string {
return proto.EnumName(TaskStatus_name, int32(x))
}
func (TaskStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_6de8859f82adce0a, []int{0}
}
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) Reset() { *m = Workflow{} }
func (m *Workflow) String() string { return proto.CompactTextString(m) }
func (*Workflow) ProtoMessage() {}
func (*Workflow) Descriptor() ([]byte, []int) {
return fileDescriptor_6de8859f82adce0a, []int{0}
}
func (m *Workflow) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Workflow.Unmarshal(m, b)
}
func (m *Workflow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Workflow.Marshal(b, m, deterministic)
}
func (m *Workflow) XXX_Merge(src proto.Message) {
xxx_messageInfo_Workflow.Merge(m, src)
}
func (m *Workflow) XXX_Size() int {
return xxx_messageInfo_Workflow.Size(m)
}
func (m *Workflow) XXX_DiscardUnknown() {
xxx_messageInfo_Workflow.DiscardUnknown(m)
}
var xxx_messageInfo_Workflow proto.InternalMessageInfo
func (m *Workflow) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Workflow) GetBuildableTasks() []*BuildableTask {
if m != nil {
return m.BuildableTasks
}
return nil
}
func (m *Workflow) GetParams() map[string]string {
if m != nil {
return m.Params
}
return nil
}
func (m *Workflow) GetId() string {
if m != nil {
return m.Id
}
return ""
}
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 (m *BuildableTask) Reset() { *m = BuildableTask{} }
func (m *BuildableTask) String() string { return proto.CompactTextString(m) }
func (*BuildableTask) ProtoMessage() {}
func (*BuildableTask) Descriptor() ([]byte, []int) {
return fileDescriptor_6de8859f82adce0a, []int{1}
}
func (m *BuildableTask) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuildableTask.Unmarshal(m, b)
}
func (m *BuildableTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuildableTask.Marshal(b, m, deterministic)
}
func (m *BuildableTask) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuildableTask.Merge(m, src)
}
func (m *BuildableTask) XXX_Size() int {
return xxx_messageInfo_BuildableTask.Size(m)
}
func (m *BuildableTask) XXX_DiscardUnknown() {
xxx_messageInfo_BuildableTask.DiscardUnknown(m)
}
var xxx_messageInfo_BuildableTask proto.InternalMessageInfo
func (m *BuildableTask) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *BuildableTask) GetDependsOn() string {
if m != nil {
return m.DependsOn
}
return ""
}
func (m *BuildableTask) GetStatus() TaskStatus {
if m != nil {
return m.Status
}
return TaskStatus_TASK_STATUS_UNKNOWN
}
func (m *BuildableTask) GetArtifactUrl() string {
if m != nil {
return m.ArtifactUrl
}
return ""
}
func (m *BuildableTask) GetGitSource() *GitSource {
if m != nil {
return m.GitSource
}
return nil
}
func (m *BuildableTask) GetTaskType() string {
if m != nil {
return m.TaskType
}
return ""
}
func (m *BuildableTask) GetId() string {
if m != nil {
return m.Id
}
return ""
}
// StartBuildableTaskRequest is a message sent to workers to start working on a BuildableTask for a Workflow.
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:"-"`
}
func (m *StartBuildableTaskRequest) Reset() { *m = StartBuildableTaskRequest{} }
func (m *StartBuildableTaskRequest) String() string { return proto.CompactTextString(m) }
func (*StartBuildableTaskRequest) ProtoMessage() {}
func (*StartBuildableTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6de8859f82adce0a, []int{2}
}
func (m *StartBuildableTaskRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StartBuildableTaskRequest.Unmarshal(m, b)
}
func (m *StartBuildableTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StartBuildableTaskRequest.Marshal(b, m, deterministic)
}
func (m *StartBuildableTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_StartBuildableTaskRequest.Merge(m, src)
}
func (m *StartBuildableTaskRequest) XXX_Size() int {
return xxx_messageInfo_StartBuildableTaskRequest.Size(m)
}
func (m *StartBuildableTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_StartBuildableTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_StartBuildableTaskRequest proto.InternalMessageInfo
func (m *StartBuildableTaskRequest) GetWorkflowId() string {
if m != nil {
return m.WorkflowId
}
return ""
}
func (m *StartBuildableTaskRequest) GetBuildableTaskId() string {
if m != nil {
return m.BuildableTaskId
}
return ""
}
func (m *StartBuildableTaskRequest) GetBuildableTaskType() string {
if m != nil {
return m.BuildableTaskType
}
return ""
}
// LocalStorage is the persisted data of relui. It is used in development mode for saving application state.
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:"-"`
}
func (m *LocalStorage) Reset() { *m = LocalStorage{} }
func (m *LocalStorage) String() string { return proto.CompactTextString(m) }
func (*LocalStorage) ProtoMessage() {}
func (*LocalStorage) Descriptor() ([]byte, []int) {
return fileDescriptor_6de8859f82adce0a, []int{3}
}
func (m *LocalStorage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LocalStorage.Unmarshal(m, b)
}
func (m *LocalStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LocalStorage.Marshal(b, m, deterministic)
}
func (m *LocalStorage) XXX_Merge(src proto.Message) {
xxx_messageInfo_LocalStorage.Merge(m, src)
}
func (m *LocalStorage) XXX_Size() int {
return xxx_messageInfo_LocalStorage.Size(m)
}
func (m *LocalStorage) XXX_DiscardUnknown() {
xxx_messageInfo_LocalStorage.DiscardUnknown(m)
}
var xxx_messageInfo_LocalStorage proto.InternalMessageInfo
func (m *LocalStorage) GetWorkflows() []*Workflow {
if m != nil {
return m.Workflows
}
return nil
}
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 (m *GitSource) Reset() { *m = GitSource{} }
func (m *GitSource) String() string { return proto.CompactTextString(m) }
func (*GitSource) ProtoMessage() {}
func (*GitSource) Descriptor() ([]byte, []int) {
return fileDescriptor_6de8859f82adce0a, []int{4}
}
func (m *GitSource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GitSource.Unmarshal(m, b)
}
func (m *GitSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GitSource.Marshal(b, m, deterministic)
}
func (m *GitSource) XXX_Merge(src proto.Message) {
xxx_messageInfo_GitSource.Merge(m, src)
}
func (m *GitSource) XXX_Size() int {
return xxx_messageInfo_GitSource.Size(m)
}
func (m *GitSource) XXX_DiscardUnknown() {
xxx_messageInfo_GitSource.DiscardUnknown(m)
}
var xxx_messageInfo_GitSource proto.InternalMessageInfo
func (m *GitSource) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *GitSource) GetRef() string {
if m != nil {
return m.Ref
}
return ""
}
func init() {
proto.RegisterEnum("protos.TaskStatus", TaskStatus_name, TaskStatus_value)
proto.RegisterType((*Workflow)(nil), "protos.Workflow")
proto.RegisterMapType((map[string]string)(nil), "protos.Workflow.ParamsEntry")
proto.RegisterType((*BuildableTask)(nil), "protos.BuildableTask")
proto.RegisterType((*StartBuildableTaskRequest)(nil), "protos.StartBuildableTaskRequest")
proto.RegisterType((*LocalStorage)(nil), "protos.LocalStorage")
proto.RegisterType((*GitSource)(nil), "protos.GitSource")
}
func init() { proto.RegisterFile("relui.proto", fileDescriptor_6de8859f82adce0a) }
var fileDescriptor_6de8859f82adce0a = []byte{
// 486 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x53, 0xdd, 0x6e, 0xd3, 0x30,
0x14, 0xc6, 0xe9, 0x56, 0x96, 0x93, 0xd1, 0xb5, 0x1e, 0x88, 0xf0, 0x27, 0x4a, 0xae, 0xaa, 0x5e,
0x04, 0x54, 0xb8, 0x00, 0x2e, 0x26, 0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