package
7.17.28
Repository: https://github.com/elastic/beats.git
Documentation: pkg.go.dev

# Functions

DetectProgram returns true or false if this program exists in the AST.
DetectPrograms returns the list of programs detected from the provided configuration.
FindSpecByName find a spec by name and return it or false if we cannot find it.
KnownProgramNames returns a list of runnable programs by the elastic-agent.
MustReadSpecs read specs and panic on errors.
NewSpecFromBytes create a Spec from a bytes.
Programs take a Tree representation of the main configuration and apply all the different programs rules and generate individual configuration from the rules.
ReadSpecs reads all the specs that match the provided globbing path.

# Variables

ErrMissingWhen is returned when no boolean expression is defined for a program.

# Structs

Program represents a program that must be started or must run.
Spec represents a specific program specification, it contains information about how to run the program and also the rules to apply to the single configuration to create a specific program configuration.