status

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 6 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 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 NewStatus

func NewStatus() *Status

func (*Status) CreateGraph

func (status *Status) CreateGraph()

func (*Status) GetCategory

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(gitops string, destination string) bool

func (*Status) TypeFromString

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

type StatusState

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