run

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 38 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Help added in v0.10.1

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 added in v0.10.1

func LoadConfig(name string, args []string, logOptions []log.Option, output io.Writer, allowUnknownConfig bool) (*agent.Config, error)

func NewAgentConfig added in v0.10.0

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

func NewRunCommand added in v0.10.1

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 added in v0.10.0

type Config struct {
	Agent              *agentConfig           `hcl:"agent"`
	Plugins            ast.Node               `hcl:"plugins"`
	Telemetry          telemetry.FileConfig   `hcl:"telemetry"`
	HealthChecks       health.Config          `hcl:"health_checks"`
	UnusedKeyPositions map[string][]token.Pos `hcl:",unusedKeyPositions"`
}

Config contains all available configurables, arranged by section

func ParseFile added in v0.10.0

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