check

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Name              string        `json:"name"`
	Plugin            string        `json:"plugin"`
	Builtin           string        `json:"builtin"`
	Arguments         string        `json:"arguments"`
	PluginTimeout     time.Duration `json:"plugin_timeout"`
	CheckInterval     time.Duration `json:"check_interval"`
	RemediateCommand  string        `json:"remediate_command"`
	RemediateInterval time.Duration `json:"remediate_interval"`
}

type Framework

type Framework interface {
	NATSConn() *nats.Conn
	Logger(string) *logrus.Entry
	MachineSourceDir() string
}

type Manager

type Manager struct {
	logger.Logrus
	updatenotifier.Notifier
	sync.Mutex
	// contains filtered or unexported fields
}

func NewCheckManager

func NewCheckManager(name string, fw Framework) (*Manager, error)

func (*Manager) Check

func (c *Manager) Check() *Check

func (*Manager) Instance

func (c *Manager) Instance() interface{}

Instance implements stream.updatable

func (*Manager) Set

func (c *Manager) Set(check *Check) error

func (*Manager) Start

func (c *Manager) Start(ctx context.Context, wg *sync.WaitGroup) error

func (*Manager) Stop

func (c *Manager) Stop(rm bool)

func (*Manager) Update

func (c *Manager) Update(u interface{})

Update implements stream.updatable

func (*Manager) WriteMachine

func (c *Manager) WriteMachine() error

Jump to

Keyboard shortcuts

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