Documentation
¶
Overview ¶
Package osupdate reads the package and kernel state already present on an apt host. It never refreshes package lists and its only apt invocation is a simulation.
Index ¶
Constants ¶
const ( FingerprintInterval = 5 * time.Minute FullReadInterval = 6 * time.Hour )
const Capability = "os-status/1"
Capability advertises the read-only OS snapshot stream of step S1. It is deliberately not "os-update/1": that name is reserved for the write steps, so an agent of this build is never taken for one that can change the operating system.
Variables ¶
This section is empty.
Functions ¶
func CanAdvertiseCapability ¶
CanAdvertiseCapability is the pure part of capability detection, exposed for platform-matrix tests.
func CapabilityAvailable ¶
func CapabilityAvailable() bool
CapabilityAvailable is deliberately strict: S1 reads are offered only from the supported root systemd agent unit.
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor runs the expensive read only when apt/dpkg/boot inputs change, and at least every six hours. Fingerprinting itself is filesystem metadata only.
func NewMonitor ¶
func (*Monitor) Poll ¶
Poll checks filesystem metadata and reads only when forced, changed, or six hours have passed. It returns the newest result, whether the public snapshot changed, and whether a full read ran.