condition

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

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

	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"
)

Variables

This section is empty.

Functions

This section is empty.

Types

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 int64) *Report

func NewReportFor

func NewReportFor(task *tasksv1.Task) *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