package
8.15.2+incompatible
Repository: https://github.com/elastic/elastic-agent.git
Documentation: pkg.go.dev
# Functions
AddUserToGroup adds a user to a group.
CreateAndStartNewSpinner starts a new spinner that will update every 40ms.
CreateGroup creates a group on the machine.
CreateInstallMarker creates a `.installed` file at the given install path, and then calls fixInstallMarkerPermissions to set the ownership provided by `ownership`.
CreateUser creates a user on the machine.
EnsureStoppedService ensures that the installed service is stopped.
EnsureUserAndGroup creates the given username and group returning the file ownership information for that user and group.
ExecutablePath returns the path for the installed Agents executable.
FindGID returns the group's GID on the machine.
FindUID returns the user's UID on the machine.
HasAllSSDs returns true if the host we are on uses SSDs for all its persistent storage; false otherwise.
Install installs Elastic Agent persistently on the system including creating and starting its service.
InstallService installs the service.
No description provided by the author
RemovePath helps with removal path where there is a probability of running into an executable running that might prevent removal on Windows.
RestartService restarts the installed service.
StartService starts the installed service.
Status returns the installation status of Agent.
StatusService returns the status of the service.
StopService stops the installed service.
SwitchExecutingMode switches the executing mode of the installed Elastic Agent.
Uninstall uninstalls persistently Elastic Agent on the system.
UninstallService uninstalls the service.
# Constants
Broken returned when Elastic Agent is installed but broken.
DefaultStopInterval is the check interval to determine if the service has stopped.
DefaultStopTimeout is the default stop timeout that can be used to stop a running daemon.
No description provided by the author
No description provided by the author
Installed returned when Elastic Agent is installed correctly.
NotInstalled returned when Elastic Agent is not installed.
PackageInstall returned when the Elastic agent has been installed through a package manager (deb/rpm).
ServiceDescription is the description for the service.
# Variables
ErrGroupNotFound returned when group is not found.
ErrUserNotFound returned when user is not found.
# Type aliases
StatusType is the return status types.