Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindConfigPath ¶
FindConfigPath returns the config path specified or searches for a valid config path. It will return a path by searching in this order:
- The given configPath
- The environment variable KAPACITOR_CONFIG_PATH
- The first non empty kapacitor.conf file in the path: - ~/.kapacitor/ - /etc/kapacitor/
Types ¶
type Command ¶
type Command struct { Version string Branch string Commit string Platform string Closed chan struct{} Stdin io.Reader Stdout io.Writer Stderr io.Writer Server *server.Server Diag Diagnostic // contains filtered or unexported fields }
Command represents the command executed by "kapacitord run".
func (*Command) ParseConfig ¶
ParseConfig parses the config at path. Returns a demo configuration if path is blank.
func (*Command) ParseFlags ¶
ParseFlags parses the command line flags from args and returns an options set.
type Diagnostic ¶
type Options ¶
type Options struct { ConfigPath string PIDFile string Hostname string CPUProfile string MemProfile string LogFile string LogLevel string }
Options represents the command line options that can be parsed.
type PrintConfigCommand ¶
PrintConfigCommand represents the command executed by "kapacitord config".
func NewPrintConfigCommand ¶
func NewPrintConfigCommand() *PrintConfigCommand
NewPrintConfigCommand return a new instance of PrintConfigCommand.
func (*PrintConfigCommand) Run ¶
func (cmd *PrintConfigCommand) Run(args ...string) error
Run parses and prints the current config loaded.
Click to show internal directories.
Click to hide internal directories.