Documentation
¶
Overview ¶
Package inventory provides the global-installation view over the shared registry. It owns no persistence or independent state model.
Index ¶
- Constants
- func Projects(store registry.Store) []registry.Status
- func UnifiedStatus(store registry.Store) []registry.Status
- type Inventory
- type Leaf
- type Observation
- type Operation
- type Outcome
- type Record
- func (r Record) ArtifactID() artifact.BundleID
- func (r Record) Cell() cell.Cell
- func (r Record) CreatedDirs() []artifact.Path
- func (r Record) Diagnostic() string
- func (r Record) IsValid() bool
- func (r Record) LastAction() string
- func (r Record) LastOperation() Operation
- func (r Record) LastOutcome() string
- func (r Record) Leaves() []Leaf
- func (r Record) Managed() bool
- func (r Record) Observation() Observation
- func (r Record) Outcome() Outcome
- func (r Record) Selector() Selector
- func (r Record) Source() Source
- func (r Record) Strategy() activation.StrategyKind
- func (r Record) Trust() Trust
- func (r Record) Version() Version
- type RecordInput
- type Selector
- type Source
- type Trust
- type Version
Constants ¶
View Source
const ( OperationNone = registry.OperationNone OperationEnsure = registry.OperationEnsure OperationRemove = registry.OperationRemove OperationInspect = registry.OperationInspect OutcomeNone = registry.OutcomeNone OutcomeCompleted = registry.OutcomeCompleted OutcomeFailed = registry.OutcomeFailed )
View Source
const SchemaID = registry.SchemaID
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Inventory ¶
type Inventory struct {
// contains filtered or unexported fields
}
Inventory is a mutable global projection over a caller-owned registry.Store. View is the production constructor; persistence remains exclusively owned by registry.Load and registry.Save.
type Observation ¶
type Observation = registry.Observation
func Absent ¶
func Absent() Observation
func Installed ¶
func Installed() Observation
func ParseObservation ¶
func ParseObservation(v string) (Observation, error)
func Unknown ¶
func Unknown() Observation
type Record ¶
type Record struct {
// contains filtered or unexported fields
}
Record is a global row from the shared registry.
func NewRecord ¶
func NewRecord(in RecordInput) (Record, error)
func (Record) ArtifactID ¶
func (Record) CreatedDirs ¶
func (Record) Diagnostic ¶
func (Record) LastAction ¶
LastAction and LastOutcome are text projections retained for the existing status renderer; mutation and construction boundaries use typed values.
func (Record) LastOperation ¶
func (Record) LastOutcome ¶
func (Record) Observation ¶
func (r Record) Observation() Observation
func (Record) Strategy ¶
func (r Record) Strategy() activation.StrategyKind
type RecordInput ¶
type RecordInput struct {
Cell cell.Cell
Source Source
Strategy activation.StrategyKind
Managed bool
ArtifactID artifact.BundleID
Version Version
Selector Selector
Leaves []Leaf
CreatedDirs []artifact.Path
Observation Observation
Trust Trust
LastOperation Operation
LastOutcome Outcome
Diagnostic string
}
type Selector ¶
func NewSelector ¶
type Source ¶
func HomeManagerSource ¶
func HomeManagerSource() Source
func InstallerSource ¶
func InstallerSource() Source
func ParseSource ¶
type Trust ¶
func ParseTrust ¶
func TrustNotApplicable ¶
func TrustNotApplicable() Trust
func TrustPending ¶
func TrustPending() Trust
func TrustTrusted ¶
func TrustTrusted() Trust
Click to show internal directories.
Click to hide internal directories.