status

package
v0.0.1-dev-1cc351d Latest Latest
Warning

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

Go to latest
Published: May 4, 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"

	Creating             = "creating"
	Pending              = "pending"
	Updating             = "updating"
	Repairing            = "repairing"
	Deleting             = "deleting"
	CheckingAndRepairing = "checkingAndRepairing"

	Completed = "completed"
	Created   = "created"
	Updated   = "updated"
	Deleted   = "deleted"
	Ok        = "ok"
	Up        = "up"
	Ng        = "ng"
	Down      = "down"
	Valid     = "valid"
	Unlicense = "unlicense"
	Expired   = "expired"
	Error     = "error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockDevice

type BlockDevice struct {
	Current     string `json:"current,omitempty" bson:"current"`
	Description string `json:"description,omitempty" bson:"description"`
}

type Details

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

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

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

func (*Details) ClearDesired

func (d *Details) ClearDesired()

func (*Details) SetCurrentToCheckingAndRepairing

func (d *Details) SetCurrentToCheckingAndRepairing()

func (*Details) SetCurrentToCompleted

func (d *Details) SetCurrentToCompleted()

func (*Details) SetCurrentToOk

func (d *Details) SetCurrentToOk()

func (*Details) SetCurrentToPending

func (d *Details) SetCurrentToPending()

func (*Details) SetDesiredToCompleted

func (d *Details) SetDesiredToCompleted()

func (*Details) SetDesiredToDelete

func (d *Details) SetDesiredToDelete()

func (*Details) SetDesiredToOk

func (d *Details) SetDesiredToOk()

func (*Details) SetDesiredToUpdate

func (d *Details) SetDesiredToUpdate()

type Health

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

	CreatedAt *time.Time `json:"createdAt,omitempty" bson:"createdAt"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty" bson:"updatedAt"`
	IsFixing  bool       `json:"isFixing" bson:"isFixing"`

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

func NewHealthOk

func NewHealthOk() *Health

func (*Health) SetCurrentToError

func (h *Health) SetCurrentToError(err error)

func (*Health) SetCurrentToRepairing

func (h *Health) SetCurrentToRepairing()

func (*Health) SetDesiredToCheckingAndRepairing

func (h *Health) SetDesiredToCheckingAndRepairing()

func (*Health) SetDesiredToRepairing

func (h *Health) SetDesiredToRepairing()

type License

type License struct {
	Current    string `json:"current,omitempty" bson:"current"`
	IsExpiring bool   `json:"isExpiring" bson:"isExpiring"`
}

type Settings

type Settings struct {
	Current    string `json:"current,omitempty" bson:"current"`
	Desired    string `json:"-" bson:"desired"`
	CreatedAt  string `json:"-" bson:"createdAt"`
	IsUpdating bool   `json:"isUpdating" bson:"isUpdating"`
}

func (*Settings) InitOkStatus

func (s *Settings) InitOkStatus()

type SupportFile

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

	CreatedAt  string `json:"createdAt,omitzero" bson:"createdAt"`
	IsCreating bool   `json:"isCreating" bson:"isCreating"`
}

type Trigger

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

	CreatedAt string `json:"createdAt,omitzero" bson:"createdAt"`
	UpdatedAt string `json:"updatedAt,omitzero" bson:"updatedAt"`

	IsUpdating bool `json:"isUpdating" bson:"isUpdating"`
}

type Tuning

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

	CreatedAt string `json:"createdAt,omitzero" bson:"createdAt"`
	UpdatedAt string `json:"updatedAt,omitzero" bson:"updatedAt"`

	MaxPendingDuration int  `json:"maxPendingDuration,omitempty" bson:"maxPendingDuration"`
	IsUpdating         bool `json:"isUpdating" bson:"isUpdating"`
}

Jump to

Keyboard shortcuts

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