instance

package
v0.0.0-...-af36fda Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StageState_name = map[int32]string{
		0: "STAGE_STATE_UNSPECIFIED",
		1: "STAGE_STATE_ONGOING",
		2: "STAGE_STATE_FAILED",
		3: "STAGE_STATE_DONE",
		4: "STAGE_STATE_RUNNING",
	}
	StageState_value = map[string]int32{
		"STAGE_STATE_UNSPECIFIED": 0,
		"STAGE_STATE_ONGOING":     1,
		"STAGE_STATE_FAILED":      2,
		"STAGE_STATE_DONE":        3,
		"STAGE_STATE_RUNNING":     4,
	}
)

Enum value maps for StageState.

View Source
var (
	StepState_name = map[int32]string{
		0: "STEP_STATE_UNSPECIFIED",
		1: "STEP_STATE_ONGOING",
		2: "STEP_STATE_FAILED",
		3: "STEP_STATE_DONE",
		4: "STEP_STATE_RUNNING",
	}
	StepState_value = map[string]int32{
		"STEP_STATE_UNSPECIFIED": 0,
		"STEP_STATE_ONGOING":     1,
		"STEP_STATE_FAILED":      2,
		"STEP_STATE_DONE":        3,
		"STEP_STATE_RUNNING":     4,
	}
)

Enum value maps for StepState.

View Source
var (
	PlacementState_name = map[int32]string{
		0: "SCHEDULING_STATE_UNSPECIFIED",
		1: "SCHEDULING_STATE_UNSCHEDULEABLE",
		2: "SCHEDULING_STATE_DONE",
	}
	PlacementState_value = map[string]int32{
		"SCHEDULING_STATE_UNSPECIFIED":    0,
		"SCHEDULING_STATE_UNSCHEDULEABLE": 1,
		"SCHEDULING_STATE_DONE":           2,
	}
)

Enum value maps for PlacementState.

View Source
var (
	ImagePullingState_name = map[int32]string{
		0: "IMAGE_PULLING_STATE_UNSPECIFIED",
		1: "IMAGE_PULLING_STATE_PULLING",
		2: "IMAGE_PULLING_STATE_ERROR",
		3: "IMAGE_PULLING_STATE_BACK_OFF",
		4: "IMAGE_PULLING_STATE_DONE",
	}
	ImagePullingState_value = map[string]int32{
		"IMAGE_PULLING_STATE_UNSPECIFIED": 0,
		"IMAGE_PULLING_STATE_PULLING":     1,
		"IMAGE_PULLING_STATE_ERROR":       2,
		"IMAGE_PULLING_STATE_BACK_OFF":    3,
		"IMAGE_PULLING_STATE_DONE":        4,
	}
)

Enum value maps for ImagePullingState.

View Source
var (
	ReadyState_name = map[int32]string{
		0: "READY_STATE_UNSPECIFIED",
		1: "READY_STATE_CRASH_LOOP_BACKOFF",
		2: "READY_STATE_NOT_READY",
		3: "READY_STATE_READY",
	}
	ReadyState_value = map[string]int32{
		"READY_STATE_UNSPECIFIED":        0,
		"READY_STATE_CRASH_LOOP_BACKOFF": 1,
		"READY_STATE_NOT_READY":          2,
		"READY_STATE_READY":              3,
	}
)

Enum value maps for ReadyState.

View Source
var File_api_v1_capsule_instance_status_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ContainerInfo

type ContainerInfo struct {
	Name string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type pipeline.ContainerType `protobuf:"varint,2,opt,name=type,proto3,enum=api.v1.pipeline.ContainerType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerInfo) Descriptor deprecated

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

Deprecated: Use ContainerInfo.ProtoReflect.Descriptor instead.

func (*ContainerInfo) GetName

func (x *ContainerInfo) GetName() string

func (*ContainerInfo) GetType

func (x *ContainerInfo) GetType() pipeline.ContainerType

func (*ContainerInfo) ProtoMessage

func (*ContainerInfo) ProtoMessage()

func (*ContainerInfo) ProtoReflect

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

func (*ContainerInfo) Reset

func (x *ContainerInfo) Reset()

func (*ContainerInfo) String

func (x *ContainerInfo) String() string

type ContainerTermination

type ContainerTermination struct {

	// Exit status from the last termination of the container
	ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	// Signal from the last termination of the container
	// +optional
	Signal int32 `protobuf:"varint,2,opt,name=signal,proto3" json:"signal,omitempty"`
	// (brief) reason from the last termination of the container
	// +optional
	Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	// Message regarding the last termination of the container
	// +optional
	Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	// Time at which previous execution of the container started
	// +optional
	StartedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	// Time at which the container last terminated
	// +optional
	FinishedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"`
	// Container's ID in the format 'type://container_id'
	// +optional
	ContainerId string `protobuf:"bytes,7,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	// contains filtered or unexported fields
}

Information about the last container termination.

func (*ContainerTermination) Descriptor deprecated

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

Deprecated: Use ContainerTermination.ProtoReflect.Descriptor instead.

func (*ContainerTermination) GetContainerId

func (x *ContainerTermination) GetContainerId() string

func (*ContainerTermination) GetExitCode

func (x *ContainerTermination) GetExitCode() int32

func (*ContainerTermination) GetFinishedAt

func (x *ContainerTermination) GetFinishedAt() *timestamppb.Timestamp

func (*ContainerTermination) GetMessage

func (x *ContainerTermination) GetMessage() string

func (*ContainerTermination) GetReason

func (x *ContainerTermination) GetReason() string

func (*ContainerTermination) GetSignal

func (x *ContainerTermination) GetSignal() int32

func (*ContainerTermination) GetStartedAt

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

func (*ContainerTermination) ProtoMessage

func (*ContainerTermination) ProtoMessage()

func (*ContainerTermination) ProtoReflect

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

func (*ContainerTermination) Reset

func (x *ContainerTermination) Reset()

func (*ContainerTermination) String

func (x *ContainerTermination) String() string

type DeletedStage

type DeletedStage struct {
	Info  *StageInfo     `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	Steps []*DeletedStep `protobuf:"bytes,2,rep,name=steps,proto3" json:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletedStage) Descriptor deprecated

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

Deprecated: Use DeletedStage.ProtoReflect.Descriptor instead.

func (*DeletedStage) GetInfo

func (x *DeletedStage) GetInfo() *StageInfo

func (*DeletedStage) GetSteps

func (x *DeletedStage) GetSteps() []*DeletedStep

func (*DeletedStage) ProtoMessage

func (*DeletedStage) ProtoMessage()

func (*DeletedStage) ProtoReflect

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

func (*DeletedStage) Reset

func (x *DeletedStage) Reset()

func (*DeletedStage) String

func (x *DeletedStage) String() string

type DeletedStep

type DeletedStep struct {

	// Types that are assignable to Step:
	//
	//	*DeletedStep_Generic
	Step isDeletedStep_Step `protobuf_oneof:"step"`
	// contains filtered or unexported fields
}

func (*DeletedStep) Descriptor deprecated

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

Deprecated: Use DeletedStep.ProtoReflect.Descriptor instead.

func (*DeletedStep) GetGeneric

func (x *DeletedStep) GetGeneric() *GenericStep

func (*DeletedStep) GetStep

func (m *DeletedStep) GetStep() isDeletedStep_Step

func (*DeletedStep) ProtoMessage

func (*DeletedStep) ProtoMessage()

func (*DeletedStep) ProtoReflect

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

func (*DeletedStep) Reset

func (x *DeletedStep) Reset()

func (*DeletedStep) String

func (x *DeletedStep) String() string

type DeletedStep_Generic

type DeletedStep_Generic struct {
	Generic *GenericStep `protobuf:"bytes,1,opt,name=generic,proto3,oneof"`
}

type ExecutingStep

type ExecutingStep struct {

	// Meta information about the step.
	Info *StepInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// Time at which the step started.
	StartedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	// Time at which the step finished.
	FinishedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"`
	// Number of restarts of the container
	Restarts uint32 `protobuf:"varint,4,opt,name=restarts,proto3" json:"restarts,omitempty"`
	// Information about the last container termination.
	LastContainerTermination *ContainerTermination `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

An executing step of the running stage.

func (*ExecutingStep) Descriptor deprecated

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

Deprecated: Use ExecutingStep.ProtoReflect.Descriptor instead.

func (*ExecutingStep) GetFinishedAt

func (x *ExecutingStep) GetFinishedAt() *timestamppb.Timestamp

func (*ExecutingStep) GetInfo

func (x *ExecutingStep) GetInfo() *StepInfo

func (*ExecutingStep) GetLastContainerTermination

func (x *ExecutingStep) GetLastContainerTermination() *ContainerTermination

func (*ExecutingStep) GetRestarts

func (x *ExecutingStep) GetRestarts() uint32

func (*ExecutingStep) GetStartedAt

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

func (*ExecutingStep) ProtoMessage

func (*ExecutingStep) ProtoMessage()

func (*ExecutingStep) ProtoReflect

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

func (*ExecutingStep) Reset

func (x *ExecutingStep) Reset()

func (*ExecutingStep) String

func (x *ExecutingStep) String() string

type GenericStep

type GenericStep struct {
	Info *StepInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

A generic step.

func (*GenericStep) Descriptor deprecated

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

Deprecated: Use GenericStep.ProtoReflect.Descriptor instead.

func (*GenericStep) GetInfo

func (x *GenericStep) GetInfo() *StepInfo

func (*GenericStep) ProtoMessage

func (*GenericStep) ProtoMessage()

func (*GenericStep) ProtoReflect

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

func (*GenericStep) Reset

func (x *GenericStep) Reset()

func (*GenericStep) String

func (x *GenericStep) String() string

type ImagePullingState

type ImagePullingState int32

Different states of an image pulling step.

const (
	// Unspecified state.
	ImagePullingState_IMAGE_PULLING_STATE_UNSPECIFIED ImagePullingState = 0
	// Image is being pulled.
	ImagePullingState_IMAGE_PULLING_STATE_PULLING ImagePullingState = 1
	// Image pulling has failed.
	ImagePullingState_IMAGE_PULLING_STATE_ERROR ImagePullingState = 2
	// Image pulling is in back off.
	ImagePullingState_IMAGE_PULLING_STATE_BACK_OFF ImagePullingState = 3
	// Image pulling is done.
	ImagePullingState_IMAGE_PULLING_STATE_DONE ImagePullingState = 4
)

func (ImagePullingState) Descriptor

func (ImagePullingState) Enum

func (ImagePullingState) EnumDescriptor deprecated

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

Deprecated: Use ImagePullingState.Descriptor instead.

func (ImagePullingState) Number

func (ImagePullingState) String

func (x ImagePullingState) String() string

func (ImagePullingState) Type

type ImagePullingStep

type ImagePullingStep struct {

	// Meta information about the step.
	Info *StepInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// State of the step.
	State ImagePullingState `protobuf:"varint,2,opt,name=state,proto3,enum=api.v1.capsule.instance.ImagePullingState" json:"state,omitempty"`
	// Image that is being pulled.
	Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

An image pulling step of the preparing stage.

func (*ImagePullingStep) Descriptor deprecated

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

Deprecated: Use ImagePullingStep.ProtoReflect.Descriptor instead.

func (*ImagePullingStep) GetImage

func (x *ImagePullingStep) GetImage() string

func (*ImagePullingStep) GetInfo

func (x *ImagePullingStep) GetInfo() *StepInfo

func (*ImagePullingStep) GetState

func (x *ImagePullingStep) GetState() ImagePullingState

func (*ImagePullingStep) ProtoMessage

func (*ImagePullingStep) ProtoMessage()

func (*ImagePullingStep) ProtoReflect

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

func (*ImagePullingStep) Reset

func (x *ImagePullingStep) Reset()

func (*ImagePullingStep) String

func (x *ImagePullingStep) String() string

type PlacementState

type PlacementState int32

Different states of a placement step

const (
	// Unspecified state.
	PlacementState_SCHEDULING_STATE_UNSPECIFIED PlacementState = 0
	// If the instance is unschedulable.
	PlacementState_SCHEDULING_STATE_UNSCHEDULEABLE PlacementState = 1
	// If the instance is scheduled.
	PlacementState_SCHEDULING_STATE_DONE PlacementState = 2
)

func (PlacementState) Descriptor

func (PlacementState) Enum

func (x PlacementState) Enum() *PlacementState

func (PlacementState) EnumDescriptor deprecated

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

Deprecated: Use PlacementState.Descriptor instead.

func (PlacementState) Number

func (PlacementState) String

func (x PlacementState) String() string

func (PlacementState) Type

type PlacementStep

type PlacementStep struct {

	// Meta information about the step.
	Info *StepInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// Node on which the instance should run.
	Node string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	// contains filtered or unexported fields
}

Placement step.

func (*PlacementStep) Descriptor deprecated

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

Deprecated: Use PlacementStep.ProtoReflect.Descriptor instead.

func (*PlacementStep) GetInfo

func (x *PlacementStep) GetInfo() *StepInfo

func (*PlacementStep) GetNode

func (x *PlacementStep) GetNode() string

func (*PlacementStep) ProtoMessage

func (*PlacementStep) ProtoMessage()

func (*PlacementStep) ProtoReflect

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

func (*PlacementStep) Reset

func (x *PlacementStep) Reset()

func (*PlacementStep) String

func (x *PlacementStep) String() string

type PreparingStage

type PreparingStage struct {

	// Meta information about the stage.
	Info *StageInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// Steps of the stage.
	Steps []*PreparingStep `protobuf:"bytes,2,rep,name=steps,proto3" json:"steps,omitempty"`
	// contains filtered or unexported fields
}

The preparing stage

func (*PreparingStage) Descriptor deprecated

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

Deprecated: Use PreparingStage.ProtoReflect.Descriptor instead.

func (*PreparingStage) GetInfo

func (x *PreparingStage) GetInfo() *StageInfo

func (*PreparingStage) GetSteps

func (x *PreparingStage) GetSteps() []*PreparingStep

func (*PreparingStage) ProtoMessage

func (*PreparingStage) ProtoMessage()

func (*PreparingStage) ProtoReflect

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

func (*PreparingStage) Reset

func (x *PreparingStage) Reset()

func (*PreparingStage) String

func (x *PreparingStage) String() string

type PreparingStep

type PreparingStep struct {

	// Types that are assignable to Step:
	//
	//	*PreparingStep_Generic
	//	*PreparingStep_ImagePulling
	//	*PreparingStep_InitExecuting
	Step isPreparingStep_Step `protobuf_oneof:"step"`
	// contains filtered or unexported fields
}

A step of the preparing stage.

func (*PreparingStep) Descriptor deprecated

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

Deprecated: Use PreparingStep.ProtoReflect.Descriptor instead.

func (*PreparingStep) GetGeneric

func (x *PreparingStep) GetGeneric() *GenericStep

func (*PreparingStep) GetImagePulling

func (x *PreparingStep) GetImagePulling() *ImagePullingStep

func (*PreparingStep) GetInitExecuting

func (x *PreparingStep) GetInitExecuting() *ExecutingStep

func (*PreparingStep) GetStep

func (m *PreparingStep) GetStep() isPreparingStep_Step

func (*PreparingStep) ProtoMessage

func (*PreparingStep) ProtoMessage()

func (*PreparingStep) ProtoReflect

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

func (*PreparingStep) Reset

func (x *PreparingStep) Reset()

func (*PreparingStep) String

func (x *PreparingStep) String() string

type PreparingStep_Generic

type PreparingStep_Generic struct {
	// Generic step.
	Generic *GenericStep `protobuf:"bytes,1,opt,name=generic,proto3,oneof"`
}

type PreparingStep_ImagePulling

type PreparingStep_ImagePulling struct {
	// Image pulling step.
	ImagePulling *ImagePullingStep `protobuf:"bytes,2,opt,name=image_pulling,json=imagePulling,proto3,oneof"`
}

type PreparingStep_InitExecuting

type PreparingStep_InitExecuting struct {
	// Executing step for init containers
	InitExecuting *ExecutingStep `protobuf:"bytes,3,opt,name=init_executing,json=initExecuting,proto3,oneof"`
}

type ReadyState

type ReadyState int32

Different states of a ready step.

const (
	// Unspecified state.
	ReadyState_READY_STATE_UNSPECIFIED ReadyState = 0
	// If the instance is in crash loop backoff.
	ReadyState_READY_STATE_CRASH_LOOP_BACKOFF ReadyState = 1
	// If the instance is not ready.
	ReadyState_READY_STATE_NOT_READY ReadyState = 2
	// If the instance is ready.
	ReadyState_READY_STATE_READY ReadyState = 3
)

func (ReadyState) Descriptor

func (ReadyState) Descriptor() protoreflect.EnumDescriptor

func (ReadyState) Enum

func (x ReadyState) Enum() *ReadyState

func (ReadyState) EnumDescriptor deprecated

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

Deprecated: Use ReadyState.Descriptor instead.

func (ReadyState) Number

func (x ReadyState) Number() protoreflect.EnumNumber

func (ReadyState) String

func (x ReadyState) String() string

func (ReadyState) Type

type ReadyStep

type ReadyStep struct {

	// Meta information about the step.
	Info *StepInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// State of the step.
	State ReadyState `protobuf:"varint,2,opt,name=state,proto3,enum=api.v1.capsule.instance.ReadyState" json:"state,omitempty"`
	// Time at which the step failed.
	FailedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=failed_at,json=failedAt,proto3" json:"failed_at,omitempty"`
	// Number of times the step has failed.
	FailCount uint32 `protobuf:"varint,4,opt,name=fail_count,json=failCount,proto3" json:"fail_count,omitempty"`
	// contains filtered or unexported fields
}

A ready step of the running stage.

func (*ReadyStep) Descriptor deprecated

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

Deprecated: Use ReadyStep.ProtoReflect.Descriptor instead.

func (*ReadyStep) GetFailCount

func (x *ReadyStep) GetFailCount() uint32

func (*ReadyStep) GetFailedAt

func (x *ReadyStep) GetFailedAt() *timestamppb.Timestamp

func (*ReadyStep) GetInfo

func (x *ReadyStep) GetInfo() *StepInfo

func (*ReadyStep) GetState

func (x *ReadyStep) GetState() ReadyState

func (*ReadyStep) ProtoMessage

func (*ReadyStep) ProtoMessage()

func (*ReadyStep) ProtoReflect

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

func (*ReadyStep) Reset

func (x *ReadyStep) Reset()

func (*ReadyStep) String

func (x *ReadyStep) String() string

type RunningStage

type RunningStage struct {

	// Meta information about the stage.
	Info *StageInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// Steps of the stage.
	Steps []*RunningStep `protobuf:"bytes,2,rep,name=steps,proto3" json:"steps,omitempty"`
	// Number of restarts of the instance.
	Restarts uint32 `protobuf:"varint,3,opt,name=restarts,proto3" json:"restarts,omitempty"`
	// Information about the last container termination.
	LastContainerTermination *ContainerTermination `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

The running stage of the instance

func (*RunningStage) Descriptor deprecated

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

Deprecated: Use RunningStage.ProtoReflect.Descriptor instead.

func (*RunningStage) GetInfo

func (x *RunningStage) GetInfo() *StageInfo

func (*RunningStage) GetLastContainerTermination

func (x *RunningStage) GetLastContainerTermination() *ContainerTermination

func (*RunningStage) GetRestarts

func (x *RunningStage) GetRestarts() uint32

func (*RunningStage) GetSteps

func (x *RunningStage) GetSteps() []*RunningStep

func (*RunningStage) ProtoMessage

func (*RunningStage) ProtoMessage()

func (*RunningStage) ProtoReflect

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

func (*RunningStage) Reset

func (x *RunningStage) Reset()

func (*RunningStage) String

func (x *RunningStage) String() string

type RunningStep

type RunningStep struct {

	// Types that are assignable to Step:
	//
	//	*RunningStep_Generic
	//	*RunningStep_Ready
	//	*RunningStep_Executing
	Step isRunningStep_Step `protobuf_oneof:"step"`
	// contains filtered or unexported fields
}

A step of the running stage.

func (*RunningStep) Descriptor deprecated

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

Deprecated: Use RunningStep.ProtoReflect.Descriptor instead.

func (*RunningStep) GetExecuting

func (x *RunningStep) GetExecuting() *ExecutingStep

func (*RunningStep) GetGeneric

func (x *RunningStep) GetGeneric() *GenericStep

func (*RunningStep) GetReady

func (x *RunningStep) GetReady() *ReadyStep

func (*RunningStep) GetStep

func (m *RunningStep) GetStep() isRunningStep_Step

func (*RunningStep) ProtoMessage

func (*RunningStep) ProtoMessage()

func (*RunningStep) ProtoReflect

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

func (*RunningStep) Reset

func (x *RunningStep) Reset()

func (*RunningStep) String

func (x *RunningStep) String() string

type RunningStep_Executing

type RunningStep_Executing struct {
	// Executing step.
	Executing *ExecutingStep `protobuf:"bytes,3,opt,name=executing,proto3,oneof"`
}

type RunningStep_Generic

type RunningStep_Generic struct {
	// Generic step.
	Generic *GenericStep `protobuf:"bytes,1,opt,name=generic,proto3,oneof"`
}

type RunningStep_Ready

type RunningStep_Ready struct {
	// Ready step.
	Ready *ReadyStep `protobuf:"bytes,2,opt,name=ready,proto3,oneof"`
}

type SchedulingStage

type SchedulingStage struct {

	// Meta information about the stage.
	Info *StageInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// Steps of the stage.
	Steps []*SchedulingStep `protobuf:"bytes,2,rep,name=steps,proto3" json:"steps,omitempty"`
	// contains filtered or unexported fields
}

The scheduling stage.

func (*SchedulingStage) Descriptor deprecated

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

Deprecated: Use SchedulingStage.ProtoReflect.Descriptor instead.

func (*SchedulingStage) GetInfo

func (x *SchedulingStage) GetInfo() *StageInfo

func (*SchedulingStage) GetSteps

func (x *SchedulingStage) GetSteps() []*SchedulingStep

func (*SchedulingStage) ProtoMessage

func (*SchedulingStage) ProtoMessage()

func (*SchedulingStage) ProtoReflect

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

func (*SchedulingStage) Reset

func (x *SchedulingStage) Reset()

func (*SchedulingStage) String

func (x *SchedulingStage) String() string

type SchedulingStep

type SchedulingStep struct {

	// Types that are assignable to Step:
	//
	//	*SchedulingStep_Generic
	//	*SchedulingStep_Placement
	Step isSchedulingStep_Step `protobuf_oneof:"step"`
	// contains filtered or unexported fields
}

A step of the scheduling stage.

func (*SchedulingStep) Descriptor deprecated

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

Deprecated: Use SchedulingStep.ProtoReflect.Descriptor instead.

func (*SchedulingStep) GetGeneric

func (x *SchedulingStep) GetGeneric() *GenericStep

func (*SchedulingStep) GetPlacement

func (x *SchedulingStep) GetPlacement() *PlacementStep

func (*SchedulingStep) GetStep

func (m *SchedulingStep) GetStep() isSchedulingStep_Step

func (*SchedulingStep) ProtoMessage

func (*SchedulingStep) ProtoMessage()

func (*SchedulingStep) ProtoReflect

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

func (*SchedulingStep) Reset

func (x *SchedulingStep) Reset()

func (*SchedulingStep) String

func (x *SchedulingStep) String() string

type SchedulingStep_Generic

type SchedulingStep_Generic struct {
	// Generic step.
	Generic *GenericStep `protobuf:"bytes,1,opt,name=generic,proto3,oneof"`
}

type SchedulingStep_Placement

type SchedulingStep_Placement struct {
	// Placement step - On what node should the instance run.
	Placement *PlacementStep `protobuf:"bytes,2,opt,name=placement,proto3,oneof"`
}

type StageInfo

type StageInfo struct {

	// Name of the stage.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Last update time of the stage.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// State of the stage.
	State StageState `protobuf:"varint,3,opt,name=state,proto3,enum=api.v1.capsule.instance.StageState" json:"state,omitempty"`
	// contains filtered or unexported fields
}

Meta information about a stage.

func (*StageInfo) Descriptor deprecated

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

Deprecated: Use StageInfo.ProtoReflect.Descriptor instead.

func (*StageInfo) GetName

func (x *StageInfo) GetName() string

func (*StageInfo) GetState

func (x *StageInfo) GetState() StageState

func (*StageInfo) GetUpdatedAt

func (x *StageInfo) GetUpdatedAt() *timestamppb.Timestamp

func (*StageInfo) ProtoMessage

func (*StageInfo) ProtoMessage()

func (*StageInfo) ProtoReflect

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

func (*StageInfo) Reset

func (x *StageInfo) Reset()

func (*StageInfo) String

func (x *StageInfo) String() string

type StageState

type StageState int32

Different states a stage can be in.

const (
	// Unspecified state.
	StageState_STAGE_STATE_UNSPECIFIED StageState = 0
	// Stage is ongoing.
	StageState_STAGE_STATE_ONGOING StageState = 1
	// Stage has failed.
	StageState_STAGE_STATE_FAILED StageState = 2
	// Stage is done.
	StageState_STAGE_STATE_DONE StageState = 3
	// Stage is running.
	StageState_STAGE_STATE_RUNNING StageState = 4
)

func (StageState) Descriptor

func (StageState) Descriptor() protoreflect.EnumDescriptor

func (StageState) Enum

func (x StageState) Enum() *StageState

func (StageState) EnumDescriptor deprecated

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

Deprecated: Use StageState.Descriptor instead.

func (StageState) Number

func (x StageState) Number() protoreflect.EnumNumber

func (StageState) String

func (x StageState) String() string

func (StageState) Type

type Stages

type Stages struct {

	// Scheduling stage.
	Schedule *SchedulingStage `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"`
	// Preparing stage.
	Preparing *PreparingStage `protobuf:"bytes,2,opt,name=preparing,proto3" json:"preparing,omitempty"`
	// Running stage.
	Running *RunningStage `protobuf:"bytes,3,opt,name=running,proto3" json:"running,omitempty"`
	// Deleted stage.
	Deleted *DeletedStage `protobuf:"bytes,4,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

The different stages of the instance.

func (*Stages) Descriptor deprecated

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

Deprecated: Use Stages.ProtoReflect.Descriptor instead.

func (*Stages) GetDeleted

func (x *Stages) GetDeleted() *DeletedStage

func (*Stages) GetPreparing

func (x *Stages) GetPreparing() *PreparingStage

func (*Stages) GetRunning

func (x *Stages) GetRunning() *RunningStage

func (*Stages) GetSchedule

func (x *Stages) GetSchedule() *SchedulingStage

func (*Stages) ProtoMessage

func (*Stages) ProtoMessage()

func (*Stages) ProtoReflect

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

func (*Stages) Reset

func (x *Stages) Reset()

func (*Stages) String

func (x *Stages) String() string

type Status

type Status struct {

	// Instance ID.
	InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	// Stages of the instance.
	Stages *Stages `protobuf:"bytes,2,opt,name=stages,proto3" json:"stages,omitempty"`
	// Rollout ID.
	RolloutId uint64 `protobuf:"varint,3,opt,name=rollout_id,json=rolloutId,proto3" json:"rollout_id,omitempty"`
	// Image of the instance.
	Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
	// Creation time of the instance.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

Status is a representation of the current state of an instance.

func (*Status) Descriptor deprecated

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

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetCreatedAt

func (x *Status) GetCreatedAt() *timestamppb.Timestamp

func (*Status) GetImage

func (x *Status) GetImage() string

func (*Status) GetInstanceId

func (x *Status) GetInstanceId() string

func (*Status) GetRolloutId

func (x *Status) GetRolloutId() uint64

func (*Status) GetStages

func (x *Status) GetStages() *Stages

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

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

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

type StepInfo

type StepInfo struct {

	// Name of the step.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Message of the step.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// Last update time of the step.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// State of the step.
	State StepState `protobuf:"varint,4,opt,name=state,proto3,enum=api.v1.capsule.instance.StepState" json:"state,omitempty"`
	// Information about the container associated with the step.
	Container *ContainerInfo `protobuf:"bytes,5,opt,name=container,proto3" json:"container,omitempty"`
	// contains filtered or unexported fields
}

Meta data about a step.

func (*StepInfo) Descriptor deprecated

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

Deprecated: Use StepInfo.ProtoReflect.Descriptor instead.

func (*StepInfo) GetContainer

func (x *StepInfo) GetContainer() *ContainerInfo

func (*StepInfo) GetMessage

func (x *StepInfo) GetMessage() string

func (*StepInfo) GetName

func (x *StepInfo) GetName() string

func (*StepInfo) GetState

func (x *StepInfo) GetState() StepState

func (*StepInfo) GetUpdatedAt

func (x *StepInfo) GetUpdatedAt() *timestamppb.Timestamp

func (*StepInfo) ProtoMessage

func (*StepInfo) ProtoMessage()

func (*StepInfo) ProtoReflect

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

func (*StepInfo) Reset

func (x *StepInfo) Reset()

func (*StepInfo) String

func (x *StepInfo) String() string

type StepState

type StepState int32

Different states a step can be in.

const (
	// Unspecified state.
	StepState_STEP_STATE_UNSPECIFIED StepState = 0
	// Step is ongoing.
	StepState_STEP_STATE_ONGOING StepState = 1
	// Step has failed.
	StepState_STEP_STATE_FAILED StepState = 2
	// Step is done.
	StepState_STEP_STATE_DONE StepState = 3
	// Step is running.
	StepState_STEP_STATE_RUNNING StepState = 4
)

func (StepState) Descriptor

func (StepState) Descriptor() protoreflect.EnumDescriptor

func (StepState) Enum

func (x StepState) Enum() *StepState

func (StepState) EnumDescriptor deprecated

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

Deprecated: Use StepState.Descriptor instead.

func (StepState) Number

func (x StepState) Number() protoreflect.EnumNumber

func (StepState) String

func (x StepState) String() string

func (StepState) Type

Jump to

Keyboard shortcuts

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