package
8.15.2+incompatible
Repository: https://github.com/elastic/elastic-agent.git
Documentation: pkg.go.dev
# Functions
ArtifactFetcher returns a fetcher that pulls the binary of the Elastic Agent from the Elastic artifacts API.
No description provided by the author
No description provided by the author
FindComponentsDir identifies the directory that holds the components.
GetPackageSuffix returns the suffix ending for the builds of Elastic Agent based on the operating system and architecture.
LocalFetcher returns a fetcher that pulls the binary of the Elastic Agent from a local location.
NewClientState creates a pointer to a state.
NewFixture creates a new fixture to setup and manage Elastic Agent.
No description provided by the author
NewLogWatcher returns watches initialised with watches and underlying logger.
RunProcess runs the given given process the process will run until an error, or the given timeout is reached.
No description provided by the author
WithAllowErrors instructs the fixture to allow the Elastic Agent to log errors.
WithArtifactSnapshotOnly sets the ArtifactFetcher to only pull the snapshot build.
No description provided by the author
WithBinaryName sets the name of the binary under test, in cases where tests aren't being run against elastic-agent.
WithConnectTimeout changes the timeout for connecting to the spawned Elastic Agent control protocol.
WithCustomBinaryName sets the binary to a custom name, the default is `elastic-agent`.
WithFetcher changes the fetcher that is used for the fixture.
WithLocalSnapshotOnly sets the LocalFetcher to only pull the snapshot build.
WithLogOutput instructs the fixture to log all Elastic Agent output to the test log.
WithOSArchitecture changes the operating system and the architecture to use for the fixture.
WithPackageFormat changes the package format to use for the fixture.
WithRunLength sets the total time the binary will run.
# Variables
nolint:stylecheck // Elastic Agent is a proper noun.
ErrUnsupportedPlatform returned when the operating system and architecture combination is not supported.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ComponentState is the overall state of a component.
ComponentUnitKey is a composite key to identify a unit by its type and ID.
ComponentUnitState is the overall state of a unit.
EnrollOpts specifies the options for the enroll command.
No description provided by the author
Fixture handles the setup and management of the Elastic Agent.
No description provided by the author
No description provided by the author
InstallOpts specifies the options for the install command.
LogWatcher wraps actual logger and watches for occurrences of strings.
State defines a point in time state for the state machine.
No description provided by the author
UsableComponent defines a component that the fixture will set up and use.
# Interfaces
CmdOpts creates vectors of command arguments for different agent commands.
Fetcher provides a path for fetching the Elastic Agent compressed archive to extract and run for the integration test.
FetcherResult represents a pending result from the fetcher.
Logger is log interface that matches *testing.T.
# Type aliases
FixtureOpt is an option for the fixture.
No description provided by the author