Documentation
¶
Index ¶
- Constants
- type Pending
- type Status
- func (status *Status) CreateGraph()
- func (status *Status) GetCategory() int8
- func (status *Status) GetPending() *Pending
- 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, name string, destination string) bool
- func (status *Status) TypeFromString(state string) (*StatusState, error)
- type StatusState
Constants ¶
View Source
const ANOTHER_OWNER string = "not_owner"
View Source
const BACKOFF string = "backoff"
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 CLONED_GIT string = "cloned"
View Source
const CLONING_GIT string = "cloning"
View Source
const CREATED string = "created"
View Source
const DELETE string = "pending_delete"
View Source
const DRIFTED string = "drifted"
View Source
const INSPECTING string = "inspecting"
View Source
const INSYNC string = "insync"
View Source
const INVALID_DEFINITIONS string = "definitionsinvalid"
View Source
const INVALID_GIT string = "gitinvalid"
View Source
const PENDING_DELETE = "delete"
View Source
const PENDING_SYNC = "pending_sync"
View Source
const SYNCING string = "syncing"
View Source
const SYNCING_STATE string = "syncing_state"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pending ¶ added in v0.1.35
type Pending struct {
Pending string
}
func NewPending ¶ added in v0.1.35
func NewPending() *Pending
type Status ¶
type Status struct {
State *StatusState `json:"state"`
Pending *Pending `json:"pending"`
StateMachine gograph.Graph[*StatusState] `json:"-"`
Reconciling bool
PendingDelete bool
InSync bool
LastSyncedCommit plumbing.Hash
LastUpdate time.Time
}
func (*Status) CreateGraph ¶
func (status *Status) CreateGraph()
func (*Status) GetCategory ¶
func (*Status) GetPending ¶ added in v0.1.35
func (*Status) TransitionState ¶
func (*Status) TypeFromString ¶
func (status *Status) TypeFromString(state string) (*StatusState, error)
type StatusState ¶
type StatusState struct {
State string `json:"state"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.