cli

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = "v0.0.1"

	ExitCodeOK   = 0
	ExitCodeFail = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

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

func NewCLI

func NewCLI(outStream, errStream io.Writer) *CLI

func (*CLI) Run

func (c *CLI) Run(args []string) int

type CommandConfig

type CommandConfig struct {
	Raw interface{} `toml:"command"`
}

type Config

type Config struct {
	// This Plugin field is used to decode the toml file. After reading the
	// configuration from file, this field is set to nil.
	// Please consider using MetricPlugins and CheckPlugins.
	Plugin map[string]map[string]*PluginConfig
}

Config represents mackerel-agent's configuration file.

type PluginConfig

type PluginConfig struct {
	CommandConfig
}

PluginConfig represents a plugin configuration.

Jump to

Keyboard shortcuts

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