runnerv1

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RunnerStatus_name = map[int32]string{
		0: "RUNNER_STATUS_UNSPECIFIED",
		1: "RUNNER_STATUS_IDLE",
		2: "RUNNER_STATUS_ACTIVE",
		3: "RUNNER_STATUS_OFFLINE",
	}
	RunnerStatus_value = map[string]int32{
		"RUNNER_STATUS_UNSPECIFIED": 0,
		"RUNNER_STATUS_IDLE":        1,
		"RUNNER_STATUS_ACTIVE":      2,
		"RUNNER_STATUS_OFFLINE":     3,
	}
)

Enum value maps for RunnerStatus.

View Source
var (
	Result_name = map[int32]string{
		0: "RESULT_UNSPECIFIED",
		1: "RESULT_SUCCESS",
		2: "RESULT_FAILURE",
		3: "RESULT_CANCELLED",
		4: "RESULT_SKIPPED",
	}
	Result_value = map[string]int32{
		"RESULT_UNSPECIFIED": 0,
		"RESULT_SUCCESS":     1,
		"RESULT_FAILURE":     2,
		"RESULT_CANCELLED":   3,
		"RESULT_SKIPPED":     4,
	}
)

Enum value maps for Result.

View Source
var File_runner_v1_messages_proto protoreflect.FileDescriptor
View Source
var File_runner_v1_services_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FetchTaskRequest

type FetchTaskRequest struct {
	// contains filtered or unexported fields
}

func (*FetchTaskRequest) Descriptor deprecated

func (*FetchTaskRequest) Descriptor() ([]byte, []int)

Deprecated: Use FetchTaskRequest.ProtoReflect.Descriptor instead.

func (*FetchTaskRequest) ProtoMessage

func (*FetchTaskRequest) ProtoMessage()

func (*FetchTaskRequest) ProtoReflect

func (x *FetchTaskRequest) ProtoReflect() protoreflect.Message

func (*FetchTaskRequest) Reset

func (x *FetchTaskRequest) Reset()

func (*FetchTaskRequest) String

func (x *FetchTaskRequest) String() string

type FetchTaskResponse

type FetchTaskResponse struct {
	Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchTaskResponse) Descriptor deprecated

func (*FetchTaskResponse) Descriptor() ([]byte, []int)

Deprecated: Use FetchTaskResponse.ProtoReflect.Descriptor instead.

func (*FetchTaskResponse) GetTask

func (x *FetchTaskResponse) GetTask() *Task

func (*FetchTaskResponse) ProtoMessage

func (*FetchTaskResponse) ProtoMessage()

func (*FetchTaskResponse) ProtoReflect

func (x *FetchTaskResponse) ProtoReflect() protoreflect.Message

func (*FetchTaskResponse) Reset

func (x *FetchTaskResponse) Reset()

func (*FetchTaskResponse) String

func (x *FetchTaskResponse) String() string

type LogRow

type LogRow struct {
	Time    *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	Content string                 `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

LogRow represents a row of logs.

func (*LogRow) Descriptor deprecated

func (*LogRow) Descriptor() ([]byte, []int)

Deprecated: Use LogRow.ProtoReflect.Descriptor instead.

func (*LogRow) GetContent

func (x *LogRow) GetContent() string

func (*LogRow) GetTime

func (x *LogRow) GetTime() *timestamppb.Timestamp

func (*LogRow) ProtoMessage

func (*LogRow) ProtoMessage()

func (*LogRow) ProtoReflect

func (x *LogRow) ProtoReflect() protoreflect.Message

func (*LogRow) Reset

func (x *LogRow) Reset()

func (*LogRow) String

func (x *LogRow) String() string

type RegisterRequest

type RegisterRequest struct {
	Name         string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Token        string   `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	AgentLabels  []string `protobuf:"bytes,3,rep,name=agent_labels,json=agentLabels,proto3" json:"agent_labels,omitempty"`
	CustomLabels []string `protobuf:"bytes,4,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

func (*RegisterRequest) Descriptor() ([]byte, []int)

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetAgentLabels

func (x *RegisterRequest) GetAgentLabels() []string

func (*RegisterRequest) GetCustomLabels

func (x *RegisterRequest) GetCustomLabels() []string

func (*RegisterRequest) GetName

func (x *RegisterRequest) GetName() string

func (*RegisterRequest) GetToken

func (x *RegisterRequest) GetToken() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

func (x *RegisterRequest) ProtoReflect() protoreflect.Message

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

type RegisterResponse

type RegisterResponse struct {
	Runner *Runner `protobuf:"bytes,1,opt,name=runner,proto3" json:"runner,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterResponse) Descriptor deprecated

func (*RegisterResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) GetRunner

func (x *RegisterResponse) GetRunner() *Runner

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

func (x *RegisterResponse) ProtoReflect() protoreflect.Message

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

type Result

type Result int32

The result of a task or a step, see https://docs.github.com/en/actions/learn-github-actions/contexts#jobs-context .

const (
	Result_RESULT_UNSPECIFIED Result = 0
	Result_RESULT_SUCCESS     Result = 1
	Result_RESULT_FAILURE     Result = 2
	Result_RESULT_CANCELLED   Result = 3
	Result_RESULT_SKIPPED     Result = 4
)

func (Result) Descriptor

func (Result) Descriptor() protoreflect.EnumDescriptor

func (Result) Enum

func (x Result) Enum() *Result

func (Result) EnumDescriptor deprecated

func (Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use Result.Descriptor instead.

func (Result) Number

func (x Result) Number() protoreflect.EnumNumber

func (Result) String

func (x Result) String() string

func (Result) Type

func (Result) Type() protoreflect.EnumType

type Runner

type Runner struct {
	Id           int64        `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Uuid         string       `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Token        string       `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	Name         string       `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Status       RunnerStatus `protobuf:"varint,5,opt,name=status,proto3,enum=runner.v1.RunnerStatus" json:"status,omitempty"`
	AgentLabels  []string     `protobuf:"bytes,6,rep,name=agent_labels,json=agentLabels,proto3" json:"agent_labels,omitempty"`
	CustomLabels []string     `protobuf:"bytes,7,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty"`
	// contains filtered or unexported fields
}

Runner Payload

func (*Runner) Descriptor deprecated

func (*Runner) Descriptor() ([]byte, []int)

Deprecated: Use Runner.ProtoReflect.Descriptor instead.

func (*Runner) GetAgentLabels

func (x *Runner) GetAgentLabels() []string

func (*Runner) GetCustomLabels

func (x *Runner) GetCustomLabels() []string

func (*Runner) GetId

func (x *Runner) GetId() int64

func (*Runner) GetName

func (x *Runner) GetName() string

func (*Runner) GetStatus

func (x *Runner) GetStatus() RunnerStatus

func (*Runner) GetToken

func (x *Runner) GetToken() string

func (*Runner) GetUuid

func (x *Runner) GetUuid() string

func (*Runner) ProtoMessage

func (*Runner) ProtoMessage()

func (*Runner) ProtoReflect

func (x *Runner) ProtoReflect() protoreflect.Message

func (*Runner) Reset

func (x *Runner) Reset()

func (*Runner) String

func (x *Runner) String() string

type RunnerStatus

type RunnerStatus int32

RunnerStatus runner all status

const (
	RunnerStatus_RUNNER_STATUS_UNSPECIFIED RunnerStatus = 0
	RunnerStatus_RUNNER_STATUS_IDLE        RunnerStatus = 1
	RunnerStatus_RUNNER_STATUS_ACTIVE      RunnerStatus = 2
	RunnerStatus_RUNNER_STATUS_OFFLINE     RunnerStatus = 3
)

func (RunnerStatus) Descriptor

func (RunnerStatus) Enum

func (x RunnerStatus) Enum() *RunnerStatus

func (RunnerStatus) EnumDescriptor deprecated

func (RunnerStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use RunnerStatus.Descriptor instead.

func (RunnerStatus) Number

func (RunnerStatus) String

func (x RunnerStatus) String() string

func (RunnerStatus) Type

type StepState

type StepState struct {
	Id        int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Result    Result                 `protobuf:"varint,2,opt,name=result,proto3,enum=runner.v1.Result" json:"result,omitempty"`
	StartedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	StoppedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=stopped_at,json=stoppedAt,proto3" json:"stopped_at,omitempty"`
	LogIndex  int64                  `protobuf:"varint,5,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"`    // Where the first line log of the step.
	LogLength int64                  `protobuf:"varint,6,opt,name=log_length,json=logLength,proto3" json:"log_length,omitempty"` // How many logs the step has.
	// contains filtered or unexported fields
}

TaskState represents the state of a step.

func (*StepState) Descriptor deprecated

func (*StepState) Descriptor() ([]byte, []int)

Deprecated: Use StepState.ProtoReflect.Descriptor instead.

func (*StepState) GetId

func (x *StepState) GetId() int64

func (*StepState) GetLogIndex

func (x *StepState) GetLogIndex() int64

func (*StepState) GetLogLength

func (x *StepState) GetLogLength() int64

func (*StepState) GetResult

func (x *StepState) GetResult() Result

func (*StepState) GetStartedAt

func (x *StepState) GetStartedAt() *timestamppb.Timestamp

func (*StepState) GetStoppedAt

func (x *StepState) GetStoppedAt() *timestamppb.Timestamp

func (*StepState) ProtoMessage

func (*StepState) ProtoMessage()

func (*StepState) ProtoReflect

func (x *StepState) ProtoReflect() protoreflect.Message

func (*StepState) Reset

func (x *StepState) Reset()

func (*StepState) String

func (x *StepState) String() string

type Task

type Task struct {
	Id              int64             `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                                       // A unique number for each workflow run, unlike run_id or job_id, task_id never be reused.
	WorkflowPayload []byte            `protobuf:"bytes,2,opt,name=workflow_payload,json=workflowPayload,proto3,oneof" json:"workflow_payload,omitempty"` // The content of the expanded workflow yaml file.
	Context         *structpb.Struct  `protobuf:"bytes,3,opt,name=context,proto3,oneof" json:"context,omitempty"`                                        // See https://docs.github.com/en/actions/learn-github-actions/contexts#github-context .
	Secrets         map[string]string ``                                                                                                                 // See https://docs.github.com/en/actions/learn-github-actions/contexts#secrets-context .
	/* 155-byte string literal not displayed */
	Machine string `protobuf:"bytes,5,opt,name=machine,proto3" json:"machine,omitempty"`
	// contains filtered or unexported fields
}

Task represents a task.

func (*Task) Descriptor deprecated

func (*Task) Descriptor() ([]byte, []int)

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetContext

func (x *Task) GetContext() *structpb.Struct

func (*Task) GetId

func (x *Task) GetId() int64

func (*Task) GetMachine

func (x *Task) GetMachine() string

func (*Task) GetSecrets

func (x *Task) GetSecrets() map[string]string

func (*Task) GetWorkflowPayload

func (x *Task) GetWorkflowPayload() []byte

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

func (x *Task) ProtoReflect() protoreflect.Message

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

type TaskState

type TaskState struct {
	Id        int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Result    Result                 `protobuf:"varint,2,opt,name=result,proto3,enum=runner.v1.Result" json:"result,omitempty"`
	StartedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	StoppedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=stopped_at,json=stoppedAt,proto3" json:"stopped_at,omitempty"`
	Steps     []*StepState           `protobuf:"bytes,5,rep,name=steps,proto3" json:"steps,omitempty"`
	// contains filtered or unexported fields
}

TaskState represents the state of a task.

func (*TaskState) Descriptor deprecated

func (*TaskState) Descriptor() ([]byte, []int)

Deprecated: Use TaskState.ProtoReflect.Descriptor instead.

func (*TaskState) GetId

func (x *TaskState) GetId() int64

func (*TaskState) GetResult

func (x *TaskState) GetResult() Result

func (*TaskState) GetStartedAt

func (x *TaskState) GetStartedAt() *timestamppb.Timestamp

func (*TaskState) GetSteps

func (x *TaskState) GetSteps() []*StepState

func (*TaskState) GetStoppedAt

func (x *TaskState) GetStoppedAt() *timestamppb.Timestamp

func (*TaskState) ProtoMessage

func (*TaskState) ProtoMessage()

func (*TaskState) ProtoReflect

func (x *TaskState) ProtoReflect() protoreflect.Message

func (*TaskState) Reset

func (x *TaskState) Reset()

func (*TaskState) String

func (x *TaskState) String() string

type UpdateLogRequest

type UpdateLogRequest struct {
	TaskId int64     `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	Index  int64     `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` // The actual index of the first line.
	Rows   []*LogRow `protobuf:"bytes,3,rep,name=rows,proto3" json:"rows,omitempty"`
	NoMore bool      `protobuf:"varint,4,opt,name=no_more,json=noMore,proto3" json:"no_more,omitempty"` // No more logs.
	// contains filtered or unexported fields
}

func (*UpdateLogRequest) Descriptor deprecated

func (*UpdateLogRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateLogRequest.ProtoReflect.Descriptor instead.

func (*UpdateLogRequest) GetIndex

func (x *UpdateLogRequest) GetIndex() int64

func (*UpdateLogRequest) GetNoMore

func (x *UpdateLogRequest) GetNoMore() bool

func (*UpdateLogRequest) GetRows

func (x *UpdateLogRequest) GetRows() []*LogRow

func (*UpdateLogRequest) GetTaskId

func (x *UpdateLogRequest) GetTaskId() int64

func (*UpdateLogRequest) ProtoMessage

func (*UpdateLogRequest) ProtoMessage()

func (*UpdateLogRequest) ProtoReflect

func (x *UpdateLogRequest) ProtoReflect() protoreflect.Message

func (*UpdateLogRequest) Reset

func (x *UpdateLogRequest) Reset()

func (*UpdateLogRequest) String

func (x *UpdateLogRequest) String() string

type UpdateLogResponse

type UpdateLogResponse struct {
	AckIndex int64 `protobuf:"varint,1,opt,name=ack_index,json=ackIndex,proto3" json:"ack_index,omitempty"` // If all lines are received, should be index + length(lines).
	// contains filtered or unexported fields
}

func (*UpdateLogResponse) Descriptor deprecated

func (*UpdateLogResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateLogResponse.ProtoReflect.Descriptor instead.

func (*UpdateLogResponse) GetAckIndex

func (x *UpdateLogResponse) GetAckIndex() int64

func (*UpdateLogResponse) ProtoMessage

func (*UpdateLogResponse) ProtoMessage()

func (*UpdateLogResponse) ProtoReflect

func (x *UpdateLogResponse) ProtoReflect() protoreflect.Message

func (*UpdateLogResponse) Reset

func (x *UpdateLogResponse) Reset()

func (*UpdateLogResponse) String

func (x *UpdateLogResponse) String() string

type UpdateTaskRequest

type UpdateTaskRequest struct {
	State *TaskState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTaskRequest) Descriptor deprecated

func (*UpdateTaskRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateTaskRequest.ProtoReflect.Descriptor instead.

func (*UpdateTaskRequest) GetState

func (x *UpdateTaskRequest) GetState() *TaskState

func (*UpdateTaskRequest) ProtoMessage

func (*UpdateTaskRequest) ProtoMessage()

func (*UpdateTaskRequest) ProtoReflect

func (x *UpdateTaskRequest) ProtoReflect() protoreflect.Message

func (*UpdateTaskRequest) Reset

func (x *UpdateTaskRequest) Reset()

func (*UpdateTaskRequest) String

func (x *UpdateTaskRequest) String() string

type UpdateTaskResponse

type UpdateTaskResponse struct {
	State *TaskState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTaskResponse) Descriptor deprecated

func (*UpdateTaskResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateTaskResponse.ProtoReflect.Descriptor instead.

func (*UpdateTaskResponse) GetState

func (x *UpdateTaskResponse) GetState() *TaskState

func (*UpdateTaskResponse) ProtoMessage

func (*UpdateTaskResponse) ProtoMessage()

func (*UpdateTaskResponse) ProtoReflect

func (x *UpdateTaskResponse) ProtoReflect() protoreflect.Message

func (*UpdateTaskResponse) Reset

func (x *UpdateTaskResponse) Reset()

func (*UpdateTaskResponse) String

func (x *UpdateTaskResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL