Versions in this module Expand all Collapse all v0 v0.30.0 May 15, 2026 v0.29.0 May 14, 2026 v0.28.2 May 13, 2026 v0.28.1 May 13, 2026 v0.28.0 May 13, 2026 Changes in this version + func FormatChange(c *Change) string + type Change struct + Fields []FieldChange + ID DocID + Op ChangeOp + func Diff(current, desired []byte) ([]Change, error) + func FilterChanged(changes []Change) []Change + type ChangeOp int + const OpAdd + const OpEqual + const OpRemove + const OpUpdate + func (o ChangeOp) String() string + type DiskInfo struct + BusPath string + CDROM bool + DevPath string + Modalias string + Model string + Readonly bool + Rotational bool + Serial string + Size uint64 + Symlinks []string + Transport string + UUID string + WWID string + type DiskSelector struct + BusPath string + Modalias string + Model string + Name string + Serial string + Size string + Type string + UUID string + WWID string + func (s *DiskSelector) IsZero() bool + type DocID struct + Kind string + Name string + type FieldChange struct + HasNew bool + HasOld bool + New any + Old any + Path string + type Finding struct + Hint string + Reason string + Ref Ref + Severity Severity + func ValidateRefs(refs []Ref, snapshot HostSnapshot) []Finding + func WalkNetAddrFindings(rendered []byte) ([]Finding, error) + func (f *Finding) IsBlocker() bool + type HostSnapshot struct + Disks []DiskInfo + Links []string + type Ref struct + Kind RefKind + Name string + Selector DiskSelector + Source string + func WalkRefs(rendered []byte) ([]Ref, error) + type RefKind int + const RefKindDiskLiteral + const RefKindDiskSelector + const RefKindLink + type Severity int + const SeverityBlocker + const SeverityWarning