agent

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// Workdir is the directory where temporary files and folders are created
	Workdir string `toml:"workdir"`
	Debug   bool   `toml:"debug"`
	Silent  bool

	Source     source.Source
	Processors []process.Processor
	Storage    storage.Storage
	Notifiers  []notification.Notifier
}

func Build

func Build(ctx *context.Context, configPath string) (*Agent, error)

Build returns a new Agent with all plugins loaded

func (*Agent) Notify

func (a *Agent) Notify(ctx *context.Context, n *notification.Notification) error

Notify sends the notification n to all notifiers

Jump to

Keyboard shortcuts

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