Documentation ¶
Overview ¶
Package updater handles requests to update the agent.
Requests are assumed to be two-phase where the phases consist of a 'download' followed by an 'update'. Either of these steps may fail. The agent is responsible for, on download, correctly downloading the referenced file and validating it against the provided checksum. However, the actual 'update' component is handled by signaling a watching process via exit code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUpdater ¶
func NewUpdater(cfg *config.Config, state dockerstate.TaskEngineState, dataClient data.Client, taskEngine engine.TaskEngine) *updater
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.