Documentation
¶
Overview ¶
Package coreinstallation owns the repository-independent Core lifecycle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcquireLifecycleLock ¶ added in v0.4.24
AcquireLifecycleLock serializes bootstrap and provider upgrades of one installation, across releases. The kernel releases the lock on process exit; durable update receipts still govern recovery after an interrupted mutation. The caller must release the returned lock after all verification completes.
func AcquireStateFileLock ¶ added in v0.4.25
AcquireStateFileLock reuses the existing kernel lock for another existing state owner. The caller proves directory/file ownership and protection using its native metadata authority before entering this serialization boundary.
Types ¶
type MachineRole ¶
type MachineRole string
const ( Development MachineRole = "development" Deployment MachineRole = "deployment" )
func (MachineRole) Defaults ¶
func (r MachineRole) Defaults() Defaults
type Spec ¶
type Spec struct {
Target string `json:"target"`
Runtime string `json:"runtime"`
MachineRole MachineRole `json:"machine_role"`
HA bool `json:"ha"`
}
type State ¶
type State struct {
Version string `json:"version"`
ID string `json:"installation_id"`
Owner string `json:"owner"`
Spec Spec `json:"spec"`
Defaults Defaults `json:"defaults"`
Placement string `json:"placement"`
Phase string `json:"phase"`
Ready bool `json:"ready"`
Capabilities map[string]bool `json:"capabilities"`
IdentityIssuer string `json:"identity_issuer,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.