plugins

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllPlugins = []Plugin{
	NewTCP(),
	NewSSH(),
	NewHTTP(),
	NewSQL(),
	NewProc(),
	NewTLS(),
	NewDNS(),
	NewPing(),
}

AllPlugins denotes a list of all available plugins

Functions

This section is empty.

Types

type DNS

type DNS struct {
	// contains filtered or unexported fields
}

DNS denotes a DNS connection health check plugin

func NewDNS

func NewDNS() *DNS

NewDNS instantiates a new DNS plugin

func (*DNS) RegisterFlags

func (t *DNS) RegisterFlags()

RegisterFlags registers command line flags specific for the plugin

func (*DNS) Run

func (t *DNS) Run() (errs errors.Errors)

Run executes the DNS plugin

type HTTP

type HTTP struct {
	// contains filtered or unexported fields
}

HTTP denotes a HTTP connection health check plugin

func NewHTTP

func NewHTTP() *HTTP

NewHTTP instantiates a new HTTP plugin

func (*HTTP) RegisterFlags

func (t *HTTP) RegisterFlags()

RegisterFlags registers command line flags specific for the plugin

func (*HTTP) Run

func (t *HTTP) Run() (errs errors.Errors)

Run executes the HTTP plugin

type Ping

type Ping struct {
	// contains filtered or unexported fields
}

Ping denotes a Ping connection health check plugin

func NewPing

func NewPing() *Ping

NewPing instantiates a new Ping plugin

func (*Ping) RegisterFlags

func (t *Ping) RegisterFlags()

RegisterFlags registers command line flags specific for the plugin

func (*Ping) Run

func (t *Ping) Run() (errs errors.Errors)

Run executes the Ping plugin

type Plugin

type Plugin interface {

	// RegisterFlags registers command line flags specific for the plugin
	RegisterFlags()

	// Run executes the plugin
	Run() errors.Errors
}

Plugin denotes a generic health check plugin

type Proc

type Proc struct {
	// contains filtered or unexported fields
}

Proc denotes a Proc connection health check plugin

func NewProc

func NewProc() *Proc

NewProc instantiates a new Proc plugin

func (*Proc) RegisterFlags

func (t *Proc) RegisterFlags()

RegisterFlags registers command line flags specific for the plugin

func (*Proc) Run

func (t *Proc) Run() (errs errors.Errors)

Run executes the Proc plugin

type SQL

type SQL struct {
	// contains filtered or unexported fields
}

SQL denotes a SQL connection health check plugin

func NewSQL

func NewSQL() *SQL

NewSQL instantiates a new SQL plugin

func (*SQL) RegisterFlags

func (t *SQL) RegisterFlags()

RegisterFlags registers command line flags specific for the plugin

func (*SQL) Run

func (t *SQL) Run() (errs errors.Errors)

Run executes the SQL plugin

type SSH

type SSH struct {
	// contains filtered or unexported fields
}

SSH denotes a SSH connection health check plugin

func NewSSH

func NewSSH() *SSH

NewSSH instantiates a new SSH plugin

func (*SSH) RegisterFlags

func (t *SSH) RegisterFlags()

RegisterFlags registers command line flags specific for the plugin

func (*SSH) Run

func (t *SSH) Run() (errs errors.Errors)

Run executes the SSH plugin

type TCP

type TCP struct {
	// contains filtered or unexported fields
}

TCP denotes a TCP connection health check plugin

func NewTCP

func NewTCP() *TCP

NewTCP instantiates a new TCP plugin

func (*TCP) RegisterFlags

func (t *TCP) RegisterFlags()

RegisterFlags registers command line flags specific for the plugin

func (*TCP) Run

func (t *TCP) Run() (errs errors.Errors)

Run executes the TCP plugin

type TLS

type TLS struct {
	// contains filtered or unexported fields
}

TLS denotes a TLS connection health check plugin

func NewTLS

func NewTLS() *TLS

NewTLS instantiates a new TLS plugin

func (*TLS) RegisterFlags

func (t *TLS) RegisterFlags()

RegisterFlags registers command line flags specific for the plugin

func (*TLS) Run

func (t *TLS) Run() (errs errors.Errors)

Run executes the TLS plugin

Jump to

Keyboard shortcuts

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