Help us shape the future of Go! Take the 2026 Go Developer Survey

lifecyclephase

package
v0.19.1253 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

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