status

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CATEGORY_END = 3
View Source
const CATEGORY_POSTRUN = 2
View Source
const CATEGORY_PRERUN = 0
View Source
const CATEGORY_WHILERUN = 1
View Source
const PULLED_FAILED = 3
View Source
const PULLED_IMAGE = 2
View Source
const PULLING_IMAGE = 1
View Source
const STATUS_BACKOFF string = "backoff"
View Source
const STATUS_CREATED string = "created"
View Source
const STATUS_DEAD string = "dead"
View Source
const STATUS_DEPENDS_CHECKING string = "depends_checking"
View Source
const STATUS_DEPENDS_FAILED string = "depends_failed"
View Source
const STATUS_DEPENDS_SOLVED string = "depends_solved"
View Source
const STATUS_INVALID_CONFIGURATION string = "invalid_configuration"
View Source
const STATUS_KILL string = "kill"
View Source
const STATUS_PENDING_DELETE string = "pending_delete"
View Source
const STATUS_PREPARE string = "prepare"
View Source
const STATUS_READINESS_CHECKING string = "readiness_check"
View Source
const STATUS_READINESS_FAILED string = "readiness_failed"
View Source
const STATUS_READY string = "readiness_ready"
View Source
const STATUS_RECREATED string = "recreated"
View Source
const STATUS_RUNNING string = "running"
View Source
const STATUS_START string = "start"

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	State                  *StatusState `json:"state"`
	LastReadiness          bool
	LastReadinessTimestamp time.Time
	StateMachine           gograph.Graph[*StatusState] `json:"-"`
	Reconciling            bool
	PulledImage            uint8
	LastUpdate             time.Time
}

func (*Status) CreateGraph

func (status *Status) CreateGraph()

func (*Status) GetCategory added in v0.0.2

func (status *Status) GetCategory() int8

func (*Status) GetState

func (status *Status) GetState() string

func (*Status) IfStateIs

func (status *Status) IfStateIs(state string) bool

func (*Status) SetState

func (status *Status) SetState(state string) error

func (*Status) TransitionState

func (status *Status) TransitionState(container string, destination string) bool

func (*Status) TypeFromString added in v0.0.2

func (status *Status) TypeFromString(state string) (*StatusState, error)

type StatusState added in v0.0.2

type StatusState struct {
	State string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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