package
8.15.2+incompatible
Repository: https://github.com/elastic/elastic-agent.git
Documentation: pkg.go.dev
# Functions
CleanMarker removes a marker from disk.
Cleanup removes all artifacts and files related to a specified version.
EnsureServiceConfigUpToDate modifies, if necessary, Elastic Agent's service configuration file to its latest definition.
InvokeWatcher invokes an agent instance using watcher argument for watching behavior of agent during upgrade period.
IsInProgress checks if an Elastic Agent upgrade is already in progress.
IsUpgradeable when agent is installed and running as a service or flag was provided.
LoadMarker loads the update marker.
NewAgentWatcher creates a new agent watcher.
NewUpgrader creates an upgrader which is capable of performing upgrade operation.
Rollback rollbacks to previous version which was functioning before upgrade.
SaveMarker serializes and persists the given upgrade marker to disk.
UpdateActiveCommit updates active.commit file to point to active version.
# Variables
ErrAgentComponentFailed is returned when agent reports FAILED status for a component.
ErrAgentFlipFlopFailed is returned when agent flip-flops between failed and healthy.
ErrAgentStatusFailed is returned when agent reports FAILED status.
ErrCannotConnect is returned when connection cannot be made to the agent.
ErrLostConnection is returned when connection is lost to the agent daemon.
No description provided by the author
# Structs
AgentWatcher watches for the ability to connect to the running Elastic Agent, if it reports any errors and how many times it disconnects from the Elastic Agent while running.
MarkerActionUpgrade adapter struct compatible with pre 8.3 version of the marker file format.
No description provided by the author
UnpackResult contains the location and hash of the unpacked agent files.
UpdateMarker is a marker holding necessary information about ongoing upgrade.
Upgrader performs an upgrade.
# Interfaces
No description provided by the author