run

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Help

func Help(name string, writer io.Writer) string

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 LoadConfig(name string, args []string, logOptions []log.Option, output io.Writer, allowUnknownConfig bool) (*agent.Config, error)

func NewAgentConfig

func NewAgentConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool) (*agent.Config, error)

func NewRunCommand

func NewRunCommand(ctx context.Context, logOptions []log.Option, allowUnknownConfig bool) cli.Command

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func (*Command) Help

func (cmd *Command) Help() string

Help prints the agent cmd usage

func (*Command) Run

func (cmd *Command) Run(args []string) int

func (*Command) Synopsis

func (*Command) Synopsis() string

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

func ParseFile

func ParseFile(path string, expandEnv bool) (*Config, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL