Documentation ¶
Index ¶
- Constants
- type Status
- func (status *Status) CreateGraph()
- func (status *Status) GetCategory() int8
- func (status *Status) GetState() string
- func (status *Status) IfStateIs(state string) bool
- func (status *Status) SetState(state string) error
- func (status *Status) TransitionState(group string, container string, destination string) bool
- func (status *Status) TypeFromString(state string) (*StatusState, error)
- type StatusState
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"` ChangeC chan distributed.Container `json:"-"` LastReadiness bool LastReadinessTimestamp time.Time LastDependsSolved bool LastDependsSolvedTimestamp time.Time StateMachine gograph.Graph[*StatusState] `json:"-"` Reconciling bool PulledImage bool LastUpdate time.Time }
func New ¶ added in v0.0.69
func New(ChangeC chan distributed.Container) *Status
func (*Status) CreateGraph ¶
func (status *Status) CreateGraph()
func (*Status) GetCategory ¶
func (*Status) TransitionState ¶
func (*Status) TypeFromString ¶
func (status *Status) TypeFromString(state string) (*StatusState, error)
type StatusState ¶
type StatusState struct { State string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.