status

package
v0.0.1-dev-91bd0ef Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	None = ""

	Create = "create"
	Update = "update"
	Delete = "delete"
	Reset  = "reset"

	Pending              = "pending"
	Updating             = "updating"
	Repairing            = "repairing"
	CheckingAndRepairing = "checkingAndRepairing"

	Completed = "completed"
	Updated   = "updated"
	Ok        = "ok"
	Error     = "error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Details

type Details struct {
	Current string `json:"current,omitempty" bson:"current"`
	Desired string `json:"desired,omitempty" bson:"desired"`

	CreatedAt          time.Time `json:"createdAt,omitempty,omitzero" bson:"createdAt"`
	UpdatedAt          time.Time `json:"updatedAt,omitempty,omitzero" bson:"updatedAt"`
	MaxPendingDuration int       `json:"maxPendingDuration,omitempty" bson:"maxPendingDuration"`
	IsFixing           bool      `json:"isFixing" bson:"isFixing"`

	Description string `json:"description" bson:"description"`
}

Might need to separate the Details for Tuning and Health.

func NewOk

func NewOk() *Details

func (*Details) ClearDesired

func (s *Details) ClearDesired()

func (*Details) SetCurrentToCheckingAndRepairing

func (s *Details) SetCurrentToCheckingAndRepairing()

func (*Details) SetCurrentToCompleted

func (s *Details) SetCurrentToCompleted()

func (*Details) SetCurrentToError

func (s *Details) SetCurrentToError(err error)

func (*Details) SetCurrentToOk

func (s *Details) SetCurrentToOk()

func (*Details) SetCurrentToPending

func (s *Details) SetCurrentToPending()

func (*Details) SetCurrentToRepairing

func (s *Details) SetCurrentToRepairing()

func (*Details) SetDesiredToCheckingAndRepairing

func (s *Details) SetDesiredToCheckingAndRepairing()

func (*Details) SetDesiredToCompleted

func (s *Details) SetDesiredToCompleted()

func (*Details) SetDesiredToDelete

func (s *Details) SetDesiredToDelete()

func (*Details) SetDesiredToOk

func (s *Details) SetDesiredToOk()

func (*Details) SetDesiredToRepairing

func (s *Details) SetDesiredToRepairing()

func (*Details) SetDesiredToUpdate

func (s *Details) SetDesiredToUpdate()

Jump to

Keyboard shortcuts

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