plugins

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: BSD-3-Clause Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugins added in v0.0.2

type Plugins struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Plugins defines plugin manager

func New added in v0.0.2

func New(ctx context.Context) (*Plugins, error)

New returns a new instance of the plugins manager

func (*Plugins) Flush added in v0.0.2

func (p *Plugins) Flush(pluginName string) *cgm.Metrics

Flush plugin metrics

func (*Plugins) Inventory added in v0.0.2

func (p *Plugins) Inventory() []byte

Inventory returns list of active plugins

func (*Plugins) IsInternal added in v0.0.2

func (p *Plugins) IsInternal(pluginName string) bool

IsInternal checks to see if the plugin is one of the internal plugins (write|statsd)

func (*Plugins) IsValid added in v0.0.2

func (p *Plugins) IsValid(pluginName string) bool

IsValid determines if a specific plugin is valid

func (*Plugins) Run added in v0.0.2

func (p *Plugins) Run(pluginName string) error

Run one or all plugins

func (*Plugins) Scan added in v0.0.2

func (p *Plugins) Scan(b *builtins.Builtins) error

Scan the plugin directory for new/updated plugins

func (*Plugins) Stop added in v0.0.3

func (p *Plugins) Stop() error

Stop any long running plugins

Jump to

Keyboard shortcuts

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