actuators

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2015 License: MIT Imports: 5 Imported by: 2

README

Sentinel actuators

Plugins Available

  • Debugger - print out event interesting information

  • Ping - inspect remote REST endpoint response

API

Interface Implementation

Actuator plugins need to implement the sentinel.plugins.actuators.Plugin interface.

Registery
Configuration

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugins = map[string]Creator{}

Functions

func Add

func Add(name string, creator Creator)

Types

type Creator

type Creator func(adapters.Plugin, map[string]string) (Plugin, error)

NOTE map[string]interface{} for better type support after casting ?

type Debug

type Debug struct {
	Adapter adapters.Plugin
	// contains filtered or unexported fields
}

func (Debug) Description

func (d Debug) Description() string

func (Debug) Gather

func (d Debug) Gather(self serf.Member, event serf.Event) error

TODO cast event type and perform checkers

func (Debug) SampleConfig

func (d Debug) SampleConfig() string

type Ping

type Ping struct {
	// NOTE multiple endpoints ?
	Endpoint string
	Adapter  adapters.Plugin
	// contains filtered or unexported fields
}

func (Ping) Description

func (p Ping) Description() string

func (Ping) Gather

func (p Ping) Gather(self serf.Member, e serf.Event) error

func (Ping) SampleConfig

func (p Ping) SampleConfig() string

type Plugin

type Plugin interface {
	// NOTE String() method ?
	Description() string
	SampleConfig() string
	// NOTE a serf agent as argument for information and event triggers ?
	Gather(serf.Member, serf.Event) error
}

TODO make it full compatible with telegraf plugins NOTE inspired by telegraf project plugin style

Jump to

Keyboard shortcuts

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