lifecyclephase

package
v0.19.1299 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: AGPL-3.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LifecyclePhase

type LifecyclePhase struct {
	Phase       Phase            `json:"phase,omitempty" temporaljson:"phase,omitempty"`
	Description string           `json:"description,omitempty" temporaljson:"description,omitempty"`
	UpdatedAt   int64            `json:"updated_at,omitempty" temporaljson:"updated_at,omitempty"`
	UpdatedBy   string           `json:"updated_by,omitempty" temporaljson:"updated_by,omitempty"`
	Metadata    map[string]any   `json:"metadata,omitempty" temporaljson:"metadata,omitempty"`
	History     []LifecyclePhase `json:"history,omitempty" temporaljson:"history,omitempty"`
}

func New

func New(phase Phase, description string) LifecyclePhase

func Transition

func Transition(current LifecyclePhase, next Phase, description string) LifecyclePhase

func (LifecyclePhase) GormDataType

func (lp LifecyclePhase) GormDataType() string

func (*LifecyclePhase) Scan

func (lp *LifecyclePhase) Scan(value interface{}) error

func (LifecyclePhase) Value

func (lp LifecyclePhase) Value() (driver.Value, error)

type Phase

type Phase string
const (
	Provisioning   Phase = "provisioning"
	Provisioned    Phase = "provisioned"
	Deprovisioning Phase = "deprovisioning"
	Deprovisioned  Phase = "deprovisioned"
	Reprovisioning Phase = "reprovisioning"
)

Jump to

Keyboard shortcuts

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