condition

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package condition is a generated GoMock package.

Index

Constants

View Source
const (
	RuntimeReady  Type = "RuntimeReady"
	ImageReady    Type = "ImageReady"
	VolumeReady   Type = "VolumeReady"
	NetworkReady  Type = "NetworkReady"
	TaskReady     Type = "TaskReady"
	TaskScheduled Type = "TaskScheduled"
	NodeReady     Type = "NodeReady"

	ReasonPulling    Reason = "Pulling"
	ReasonPulled     Reason = "Pulled"
	ReasonPullFailed Reason = "PullFailed"

	ReasonAttaching    Reason = "Attaching"
	ReasonAttached     Reason = "Attached"
	ReasonAttachFailed Reason = "AttachFailed"

	ReasonDetaching    Reason = "Detaching"
	ReasonDetached     Reason = "Detached"
	ReasonDetachFailed Reason = "DetachFailed"

	ReasonCreating     Reason = "Creating"
	ReasonCreated      Reason = "Created"
	ReasonCreateFailed Reason = "CreateFailed"

	ReasonStarting    Reason = "Starting"
	ReasonStarted     Reason = "Started"
	ReasonStartFailed Reason = "StartFailed"

	ReasonRunning   Reason = "Running"
	ReasonRunFailed Reason = "RunFailed"

	ReasonStopping   Reason = "Stopping"
	ReasonStopped    Reason = "Stopped"
	ReasonStopFailed Reason = "StopFailed"

	ReasonDeleting     Reason = "Deleting"
	ReasonDeleted      Reason = "Deleted"
	ReasonDeleteFailed Reason = "FailedFailed"

	ReasonScheduling       Reason = "Scheduling"
	ReasonScheduled        Reason = "Scheduled"
	ReasonSchedulingFailed Reason = "SchedulingFailed"

	ReasonConnecting       Reason = "Connecting"
	ReasonConnected        Reason = "Connected"
	ReasonConnectionFailed Reason = "ConnectionFailed"

	ReasonDisconnecting  Reason = "Disconnecting"
	ReasonDisconnected   Reason = "Disconnected"
	ReasonDisconntFailed Reason = "DisconnectFailed"

	ReasonUpgrading     Reason = "Upgrading"
	ReasonUpgraded      Reason = "Upgraded"
	ReasonUpgradeFailed Reason = "UpgradeFailed"

	ReasonUnhealthy Reason = "Unhealthy"
	ReasonReady     Reason = "Ready"
	ReasonUnknown   Reason = "Unknown"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConditionClient added in v0.0.18

type ConditionClient interface {
	Condition(context.Context, string, ...*typesv1.Condition) error
}

type ConditionPublisher added in v0.0.18

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

type MockConditionClient added in v0.0.18

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

MockConditionClient is a mock of ConditionClient interface.

func NewMockConditionClient added in v0.0.18

func NewMockConditionClient(ctrl *gomock.Controller) *MockConditionClient

NewMockConditionClient creates a new mock instance.

func (*MockConditionClient) Condition added in v0.0.18

func (m *MockConditionClient) Condition(arg0 context.Context, arg1 string, arg2 ...*types.Condition) error

Condition mocks base method.

func (*MockConditionClient) EXPECT added in v0.0.18

EXPECT returns an object that allows the caller to indicate expected use.

type MockConditionClientMockRecorder added in v0.0.18

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

MockConditionClientMockRecorder is the mock recorder for MockConditionClient.

func (*MockConditionClientMockRecorder) Condition added in v0.0.18

func (mr *MockConditionClientMockRecorder) Condition(arg0, arg1 any, arg2 ...any) *gomock.Call

Condition indicates an expected call of Condition.

type MockPublisher added in v0.0.18

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

MockPublisher is a mock of Publisher interface.

func NewMockPublisher added in v0.0.18

func NewMockPublisher(ctrl *gomock.Controller) *MockPublisher

NewMockPublisher creates a new mock instance.

func (*MockPublisher) EXPECT added in v0.0.18

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPublisher) Report added in v0.0.18

func (m *MockPublisher) Report(arg0 string, arg1 bool, arg2 *types.ConditionReport)

Report mocks base method.

func (*MockPublisher) Run added in v0.0.18

func (m *MockPublisher) Run(arg0 context.Context)

Run mocks base method.

type MockPublisherMockRecorder added in v0.0.18

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

MockPublisherMockRecorder is the mock recorder for MockPublisher.

func (*MockPublisherMockRecorder) Report added in v0.0.18

func (mr *MockPublisherMockRecorder) Report(arg0, arg1, arg2 any) *gomock.Call

Report indicates an expected call of Report.

func (*MockPublisherMockRecorder) Run added in v0.0.18

func (mr *MockPublisherMockRecorder) Run(arg0 any) *gomock.Call

Run indicates an expected call of Run.

type Publisher added in v0.0.18

type Publisher interface {
	Run(context.Context)
	Report(string, bool, *typesv1.ConditionReport)
}

func NewPublisher added in v0.0.18

func NewPublisher(client ConditionClient) Publisher

type Reason

type Reason string

type Report

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

func NewForResource

func NewForResource(res Resource) *Report

func NewReport

func NewReport(resourceID string, gen uint64) *Report

func NewReportFor

func NewReportFor(task *tasksv1.Task) *Report

func (*Report) As added in v0.0.16

func (r *Report) As(name string) *Report

func (*Report) False

func (r *Report) False(reason Reason, msg ...string) *typesv1.ConditionReport

func (*Report) InProgress

func (r *Report) InProgress(reason Reason, msg string) *typesv1.ConditionReport

func (*Report) Report

func (r *Report) Report() *typesv1.ConditionReport

func (*Report) True

func (r *Report) True(reason Reason, msg ...string) *typesv1.ConditionReport

func (*Report) Type

func (r *Report) Type(t Type) *Report

func (*Report) WithMetadata

func (r *Report) WithMetadata(m map[string]string) *Report

type Resource

type Resource interface {
	GetMeta() *typesv1.Meta
}

type Type

type Type string

Jump to

Keyboard shortcuts

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