Documentation ¶
Index ¶
Constants ¶
View Source
const ( UpdateStatusIdle = "UPDATE_STATUS_IDLE" UpdateStatusCheckingForUpdate = "UPDATE_STATUS_CHECKING_FOR_UPDATE" UpdateStatusUpdateAvailable = "UPDATE_STATUS_UPDATE_AVAILABLE" UpdateStatusDownloading = "UPDATE_STATUS_DOWNLOADING" UpdateStatusVerifying = "UPDATE_STATUS_VERIFYING" UpdateStatusFinalizing = "UPDATE_STATUS_FINALIZING" UpdateStatusUpdatedNeedReboot = "UPDATE_STATUS_UPDATED_NEED_REBOOT" UpdateStatusReportingErrorEvent = "UPDATE_STATUS_REPORTING_ERROR_EVENT" )
The possible update statuses returned from the update engine
These correspond to current operation values exposed over DBus and defined by `update_engine`: https://github.com/coreos/update_engine/blob/v0.4.3/src/update_engine/update_attempter.h#L34-L43
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AttemptUpdate ¶ added in v0.2.2
AttemptUpdate will trigger an update if available. This is an asynchronous call - it returns immediately.
func (*Client) RebootNeededSignal ¶
func (*Client) ReceiveStatuses ¶
ReceiveStatuses receives signal messages from dbus and sends them as Statues on the rcvr channel, until the stop channel is closed. An attempt is made to get the initial status and send it on the rcvr channel before receiving starts.
Click to show internal directories.
Click to hide internal directories.