Documentation ¶
Index ¶
- func Help(name string, writer io.Writer) string
- func LoadConfig(name string, args []string, logOptions []log.Option, output io.Writer, ...) (*agent.Config, error)
- func NewAgentConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool) (*agent.Config, error)
- func NewRunCommand(ctx context.Context, logOptions []log.Option, allowUnknownConfig bool) cli.Command
- type Command
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Help ¶
Help is a standalone function that prints a help message to writer. It is used by both the run and validate commands, so they can share flag usage messages.
func LoadConfig ¶
func NewAgentConfig ¶
Types ¶
type Config ¶
type Config struct { Agent *agentConfig `hcl:"agent"` Plugins ast.Node `hcl:"plugins"` Telemetry telemetry.FileConfig `hcl:"telemetry"` HealthChecks health.Config `hcl:"health_checks"` UnusedKeys []string `hcl:",unusedKeys"` }
Config contains all available configurables, arranged by section
Click to show internal directories.
Click to hide internal directories.