agent

package
v0.1.15-beta.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigFilePath string

ConfigFilePath is where the agent will try to load the configuration from

Functions

func Run

func Run(cmd *cobra.Command, args []string)

Run starts the agent process

Types

type Config

type Config struct {
	Schedule      string         `yaml:"schedule"`
	Token         string         `yaml:"token"`
	Endpoint      endpoint       `yaml:"endpoint"`
	DataGatherers []dataGatherer `yaml:"data-gatherers"`
}

Config wraps the options for a run of the agent

func ParseConfig

func ParseConfig(data []byte) (Config, error)

ParseConfig reads config into a struct used to configure running agents

func (*Config) Dump

func (c *Config) Dump() (string, error)

Dump generates a YAML string of the Config object

Jump to

Keyboard shortcuts

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