plugins

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: LGPL-2.1 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbeddedPlugin

type EmbeddedPlugin struct {
	Plugin
}

func (EmbeddedPlugin) Collect

func (self EmbeddedPlugin) Collect() ([]Observation, error)

type Observation

type Observation struct {
	Name  string
	Value interface{}
}

type Plugin

type Plugin interface {
	Collect() ([]Observation, error)
}

type ShellPlugin

type ShellPlugin struct {
	Plugin
	ExecPath         []string
	PerPluginTimeout time.Duration
	MaxTimeout       time.Duration
}

func (ShellPlugin) Collect

func (self ShellPlugin) Collect() ([]Observation, error)

Jump to

Keyboard shortcuts

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