blob: fde593fde703afde19099c4ad37ca6871217dcfc [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"`
// 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 (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) GetGitSource() *GitSource {
if m != nil {
return m.GitSource
}
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.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{
// 434 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xd1, 0x6e, 0xd3, 0x30,
0x14, 0xc5, 0xe9, 0x28, 0xcb, 0xcd, 0xe8, 0x5a, 0x4f, 0x88, 0x20, 0x84, 0x28, 0x7d, 0xaa, 0xfa,
0x50, 0x50, 0x79, 0x9f, 0x54, 0x60, 0x42, 0xd3, 0x50, 0x27, 0xc5, 0xa9, 0xfa, 0x68, 0xb9, 0xb5,
0x5b, 0x59, 0x0d, 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