checker

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForDockerEvents

func CheckForDockerEvents(stopCh <-chan struct{})

CheckForDockerEvents check for docker container events and react to certain events

Types

type Checker

type Checker struct {
}

func New

func New() *Checker

func (*Checker) Run

func (c *Checker) Run(stopCh <-chan struct{}) error

type Result

type Result struct {
	Check  config.Check
	Server *config.Config
	Return bool
}

Result

type ResultCounter

type ResultCounter struct {
	Count     int64
	FirstTime time.Time
	LastTime  time.Time
}

ResultCounter

type ResultServerList

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

ResultServerList

func NewResultServerList

func NewResultServerList() *ResultServerList

NewResultServerList

func (*ResultServerList) Add

func (r *ResultServerList) Add(result Result)

Add

Jump to

Keyboard shortcuts

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