status

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

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_FAILED string = "depends_failed"
View Source
const STATUS_DEPENDS_SOLVED string = "depends_solved"
View Source
const STATUS_DEPENDS_SOLVING string = "depends_solving"
View Source
const STATUS_DRIFTED string = "drifted"
View Source
const STATUS_INVALID_CONFIGURATION string = "invalid_configuration"
View Source
const STATUS_KILLED string = "killed"
View Source
const STATUS_PENDING_DELETE string = "pending_delete"
View Source
const STATUS_READINESS string = "readiness_check"
View Source
const STATUS_READINESS_FAILED string = "readiness_failed"
View Source
const STATUS_READY string = "readiness_ready"
View Source
const STATUS_RECONCILING string = "reconciling"
View Source
const STATUS_RUNNING string = "running"

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	State        string
	StateMachine gograph.Graph[string]
	Reconciling  bool
	LastUpdate   time.Time
}

func NewStatus

func NewStatus() *Status

func (*Status) CreateGraph

func (status *Status) CreateGraph()

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)

func (*Status) TransitionState

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

type Statuses

type Statuses struct {
	Created         bool
	Readiness       bool
	ReadinessFailed bool
	DependsSolving  bool
	DependsFailed   bool
	DependsSolved   bool
	BackOffRestart  bool
	Ready           bool
	Running         bool
	Dead            bool
	Reconciling     bool
	DefinitionDrift bool
	PendingDelete   bool
}

Jump to

Keyboard shortcuts

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