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(gitops 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 STATUS_BACKOFF string = "backoff"
View Source
const STATUS_CLONING_GIT string = "cloning"
View Source
const STATUS_CREATED string = "created"
View Source
const STATUS_DRIFTED string = "drifted"
View Source
const STATUS_INSPECTING string = "inspecting"
View Source
const STATUS_INSYNC string = "insync"
View Source
const STATUS_INVALID_DEFINITIONS string = "definitionsinvalid"
View Source
const STATUS_INVALID_GIT string = "gitinvalid"
View Source
const STATUS_PENDING_DELETE string = "pending_delete"
View Source
const STATUS_SYNCING string = "syncing"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Status ¶
type Status struct { State *StatusState `json:"state"` PreviousState *StatusState `json:"state"` LastReadiness bool LastReadinessTimestamp time.Time StateMachine gograph.Graph[*StatusState] `json:"-"` Reconciling bool InSync bool LastSyncedCommit plumbing.Hash LastUpdate time.Time }
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.