package updates // PackageUpdate is one pending update. On Linux it is a package with a version // on each side. On Windows CurrentVersion is empty and NewVersion carries the // KB article ID: a Windows update is not a version bump of a named package, // and inventing a current version would put a wrong string in front of an // operator. type PackageUpdate struct { Name string CurrentVersion string NewVersion string } // CheckAvailable lists pending OS updates. func CheckAvailable() ([]PackageUpdate, error) { return checkAvailable() } // ApplyAll installs every pending update. It never reboots: a control plane // silently restarting a production server is unrecoverable from the UI, so the // reboot stays a decision a person or a workflow makes. RebootRequired reports // when one is owed. func ApplyAll() error { return applyAll() } // RebootRequired reports whether this host is waiting on a restart. func RebootRequired() bool { return rebootRequired() }