package
8.15.2+incompatible
Repository: https://github.com/elastic/elastic-agent.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

ExpectedConfig converts a map[string]interface{} to a proto.UnitExpectedConfig.
LoadPlatformDetail loads the platform details for the current system.
LoadRuntimeSpecs loads all the component input specifications from the provided directory.
LoadSpec loads the component specification.
MustExpectedConfig returns proto.UnitExpectedConfig.
NewErrInputRuntimeCheckFail creates a ErrInputRuntimeCheckFail with the message.
NewRuntimeSpecs creates a RuntimeSpecs from already loaded input and shipper runtime specifications.
SignedFromPolicy Returns Signed instance from the nested map representation of the agent configuration.
SkipBinaryCheck skips checking that a binary is next to the runtime.

# Constants

AMD64 represents the amd64 architecture.
ARM64 represents the arm64 architecture.
Container represents running inside a container.
Darwin represents running on Mac OSX.
Linux represents running on Linux.
Windows represents running on Windows.

# Variables

ErrInputNotSupported is returned when the input is not supported on any platform.
ErrInputNotSupportedOnPlatform is returned when the input is supported but not on this platform.
ErrInputShipperNotSupported is returned when an input that does not support any shippers targets a shipper output.
ErrNotFound is returned if the expected "signed" property itself or it's expected properties are missing or not a valid data type.
ErrOutputNotSupported is returned when the output is not supported on any platform.
ErrOutputNotSupportedOnPlatform is returned when the input is supported but not on this platform.
ErrOutputShipperNotSupported is returned when shipper output is enabled on an output type that no shipper supports.
ErrShipperOutputNotSupported is returned when an input supports at least one shipper, but none of them support the target output type.
GlobalPlatforms defines the platforms that a component can support.

# Structs

No description provided by the author
CommandEnvSpec is the specification that defines environment variables that will be set to execute the subprocess.
CommandLogSpec is the log specification for subprocess.
CommandSpec is the specification for an input that executes as a subprocess.
CommandTimeoutSpec is the timeout specification for subprocess.
Component is a set of units that needs to run.
No description provided by the author
ErrInputRuntimeCheckFail error is used when an input specification runtime prevention check occurs.
ErrorReason is an error that can be marshalled/unmarshalled to and from YAML.
InputRuntimeSpec returns the specification for running this input on the current platform.
InputSpec is the specification for an input type.
Model is the components model with signed policy data This replaces former top level []Components with the top Model that captures signed policy data.
Platform defines the platform that a component can support.
PlatformDetail is platform that has more detail information about the running platform.
RuntimePreventionSpec is the specification that prevents an input to run at execution time.
RuntimeSpec is the specification for runtime options.
RuntimeSpecs return all the specifications for inputs that are supported on the current platform.
ServiceLogSpec is the specification for the log path that the service logs to.
ServiceOperationsCommandSpec is the specification for execution of binaries to perform the check, install, and uninstall.
ServiceOperationsSpec is the specification of the operations that need to be performed to get a service installed/uninstalled.
ServiceSpec is the specification for an input that executes as a service.
ServiceTimeoutSpec is the timeout specification for subprocess.
ShipperReference identifies a connection from a source component to a shipper.
ShipperRuntimeSpec returns the specification for running this shipper on the current platform.
ShipperSpec is the specification for a shipper type.
Signed Strongly typed configuration for the signed data.
Spec a components specification.
Unit is a single input or output that a component must run.
UserDetail provides user specific information on the running platform.

# Interfaces

No description provided by the author

# Type aliases

For now the component limits match the agent limits.
No description provided by the author
GenerateMonitoringCfgFn is a function that can inject information into the model generation process.
LoadRuntimeOption are options for loading the runtime specs.
PlatformModifier can modify the platform details before the runtime specifications are loaded.
Platforms is an array of platforms.