checks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2016 License: Apache-2.0 Imports: 28 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResponseMatchesGeneral

func ResponseMatchesGeneral(urlstr string, re *regexp.Regexp, secure bool) (int, string, error)

ResponseMatchesGeneral is an abstraction of ResponseMatches and ResponseMatchesInsecure that simply varies in the security of the connection

func RoutingTableColumn

func RoutingTableColumn(name string) []string

returns a column of the routing table as a slice of strings TODO read from /proc/net/route instead

func RoutingTableMatch

func RoutingTableMatch(col string, str string) (int, string, error)

RoutingTableMatch asks: Is this value in this column of the routing table?

Types

type CPUUsage

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

TODO use a uint

func (CPUUsage) New

func (chk CPUUsage) New(params []string) (chkutil.Check, error)

func (CPUUsage) Status

func (chk CPUUsage) Status() (int, string, error)

type Checksum

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

func (Checksum) ID

func (chk Checksum) ID() string

func (Checksum) New

func (chk Checksum) New(params []string) (chkutil.Check, error)

func (Checksum) Status

func (chk Checksum) Status() (int, string, error)

type Command

type Command struct{ Command string }

func (Command) New

func (chk Command) New(params []string) (chkutil.Check, error)

func (Command) Status

func (chk Command) Status() (int, string, error)

type CommandOutputMatches

type CommandOutputMatches struct {
	Command string
	// contains filtered or unexported fields
}

func (CommandOutputMatches) New

func (chk CommandOutputMatches) New(params []string) (chkutil.Check, error)

func (CommandOutputMatches) Status

func (chk CommandOutputMatches) Status() (int, string, error)

type Directory

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

func (Directory) New

func (chk Directory) New(params []string) (chkutil.Check, error)

func (Directory) Status

func (chk Directory) Status() (int, string, error)

type DiskUsage

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

TODO use a uint

func (DiskUsage) New

func (chk DiskUsage) New(params []string) (chkutil.Check, error)

func (DiskUsage) Status

func (chk DiskUsage) Status() (int, string, error)

type DockerImage

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

func (DockerImage) New

func (chk DockerImage) New(params []string) (chkutil.Check, error)

func (DockerImage) Status

func (chk DockerImage) Status() (int, string, error)

type DockerImageRegexp

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

func (DockerImageRegexp) ID

func (chk DockerImageRegexp) ID() string

func (DockerImageRegexp) New

func (chk DockerImageRegexp) New(params []string) (chkutil.Check, error)

func (DockerImageRegexp) Status

func (chk DockerImageRegexp) Status() (int, string, error)

type DockerRunning

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

func (DockerRunning) ID

func (chk DockerRunning) ID() string

func (DockerRunning) New

func (chk DockerRunning) New(params []string) (chkutil.Check, error)

func (DockerRunning) Status

func (chk DockerRunning) Status() (int, string, error)

type DockerRunningAPI

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

func (DockerRunningAPI) New

func (chk DockerRunningAPI) New(params []string) (chkutil.Check, error)

func (DockerRunningAPI) Status

func (chk DockerRunningAPI) Status() (int, string, error)

type DockerRunningRegexp

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

#### DockerRunningRegexp Description: Works like DockerRunning, but matches with a regexp instead of a string. Parameters: - Regexp (regexp): Regexp to match names with Example parameters: - "user/.+", "user/[cC](o){2,3}[nta]tai\w{2}r"

func (DockerRunningRegexp) New

func (chk DockerRunningRegexp) New(params []string) (chkutil.Check, error)

func (DockerRunningRegexp) Status

func (chk DockerRunningRegexp) Status() (int, string, error)

type File

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

func (File) New

func (chk File) New(params []string) (chkutil.Check, error)

func (File) Status

func (chk File) Status() (int, string, error)

type FileMatches

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

func (FileMatches) New

func (chk FileMatches) New(params []string) (chkutil.Check, error)

func (FileMatches) Status

func (chk FileMatches) Status() (int, string, error)

type FreeMemory

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

func (FreeMemory) New

func (chk FreeMemory) New(params []string) (chkutil.Check, error)

func (FreeMemory) Status

func (chk FreeMemory) Status() (int, string, error)

type FreeSwap

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

func (FreeSwap) New

func (chk FreeSwap) New(params []string) (chkutil.Check, error)

func (FreeSwap) Status

func (chk FreeSwap) Status() (int, string, error)

type Gateway

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

func (Gateway) New

func (chk Gateway) New(params []string) (chkutil.Check, error)

func (Gateway) Status

func (chk Gateway) Status() (int, string, error)

type GatewayInterface

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

func (GatewayInterface) New

func (chk GatewayInterface) New(params []string) (chkutil.Check, error)

func (GatewayInterface) Status

func (chk GatewayInterface) Status() (int, string, error)

type GroupExists

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

func (GroupExists) New

func (chk GroupExists) New(params []string) (chkutil.Check, error)

func (GroupExists) Status

func (chk GroupExists) Status() (int, string, error)

type GroupID

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

func (GroupID) New

func (chk GroupID) New(params []string) (chkutil.Check, error)

func (GroupID) Status

func (chk GroupID) Status() (int, string, error)

type Host

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

func (Host) New

func (chk Host) New(params []string) (chkutil.Check, error)

func (Host) Status

func (chk Host) Status() (int, string, error)

type IP4

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

func (IP4) New

func (chk IP4) New(params []string) (chkutil.Check, error)

func (IP4) Status

func (chk IP4) Status() (int, string, error)

type IP6

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

func (IP6) New

func (chk IP6) New(params []string) (chkutil.Check, error)

func (IP6) Status

func (chk IP6) Status() (int, string, error)

type InodeUsage added in v0.2.3

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

func (InodeUsage) New added in v0.2.3

func (chk InodeUsage) New(params []string) (chkutil.Check, error)

func (InodeUsage) Status added in v0.2.3

func (chk InodeUsage) Status() (int, string, error)

type Installed

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

func (Installed) New

func (chk Installed) New(params []string) (chkutil.Check, error)

func (Installed) Status

func (chk Installed) Status() (int, string, error)

type InterfaceExists

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

func (InterfaceExists) New

func (chk InterfaceExists) New(params []string) (chkutil.Check, error)

func (InterfaceExists) Status

func (chk InterfaceExists) Status() (int, string, error)

type KernelParameter

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

func (KernelParameter) New

func (chk KernelParameter) New(params []string) (chkutil.Check, error)

func (KernelParameter) Status

func (chk KernelParameter) Status() (int, string, error)

type MemoryUsage

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

TODO use a uint

func (MemoryUsage) New

func (chk MemoryUsage) New(params []string) (chkutil.Check, error)

func (MemoryUsage) Status

func (chk MemoryUsage) Status() (int, string, error)

type Module

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

func (Module) New

func (chk Module) New(params []string) (chkutil.Check, error)

func (Module) Status

func (chk Module) Status() (int, string, error)

type PHPConfig

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

func (PHPConfig) New

func (chk PHPConfig) New(params []string) (chkutil.Check, error)

func (PHPConfig) Status

func (chk PHPConfig) Status() (int, string, error)

type PacmanIgnore

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

func (PacmanIgnore) New

func (chk PacmanIgnore) New(params []string) (chkutil.Check, error)

func (PacmanIgnore) Status

func (chk PacmanIgnore) Status() (int, string, error)

type Permissions

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

func (Permissions) New

func (chk Permissions) New(params []string) (chkutil.Check, error)

func (Permissions) Status

func (chk Permissions) Status() (int, string, error)

type Port

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

func (Port) ID

func (chk Port) ID() string

func (Port) New

func (chk Port) New(params []string) (chkutil.Check, error)

func (Port) Status

func (chk Port) Status() (int, string, error)

type PortTCP

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

func (PortTCP) New

func (chk PortTCP) New(params []string) (chkutil.Check, error)

func (PortTCP) Status

func (chk PortTCP) Status() (int, string, error)

type PortUDP

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

func (PortUDP) New

func (chk PortUDP) New(params []string) (chkutil.Check, error)

func (PortUDP) Status

func (chk PortUDP) Status() (int, string, error)

type ResponseMatches

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

func (ResponseMatches) New

func (chk ResponseMatches) New(params []string) (chkutil.Check, error)

func (ResponseMatches) Status

func (chk ResponseMatches) Status() (int, string, error)

type ResponseMatchesInsecure

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

func (ResponseMatchesInsecure) New

func (chk ResponseMatchesInsecure) New(params []string) (chkutil.Check, error)

func (ResponseMatchesInsecure) Status

func (chk ResponseMatchesInsecure) Status() (int, string, error)

type RoutingTableDestination

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

func (RoutingTableDestination) New

func (chk RoutingTableDestination) New(params []string) (chkutil.Check, error)

func (RoutingTableDestination) Status

func (chk RoutingTableDestination) Status() (int, string, error)

type RoutingTableGateway

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

routeTableGateway checks if an IP address is a Gateway's IP in the kernel's IP routing table, as accessed by `route -n`.

func (RoutingTableGateway) New

func (chk RoutingTableGateway) New(params []string) (chkutil.Check, error)

func (RoutingTableGateway) Status

func (chk RoutingTableGateway) Status() (int, string, error)

type RoutingTableInterface

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

func (RoutingTableInterface) New

func (chk RoutingTableInterface) New(params []string) (chkutil.Check, error)

func (RoutingTableInterface) Status

func (chk RoutingTableInterface) Status() (int, string, error)

type Running

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

func (Running) New

func (chk Running) New(params []string) (chkutil.Check, error)

func (Running) Status

func (chk Running) Status() (int, string, error)

type SwapUsage

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

TODO use a uint

func (SwapUsage) ID

func (chk SwapUsage) ID() string

func (SwapUsage) New

func (chk SwapUsage) New(params []string) (chkutil.Check, error)

func (SwapUsage) Status

func (chk SwapUsage) Status() (int, string, error)
type Symlink struct {
	// contains filtered or unexported fields
}

func (Symlink) New

func (chk Symlink) New(params []string) (chkutil.Check, error)

func (Symlink) Status

func (chk Symlink) Status() (int, string, error)

type SystemctlActive

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

func (SystemctlActive) New

func (chk SystemctlActive) New(params []string) (chkutil.Check, error)

func (SystemctlActive) Status

func (chk SystemctlActive) Status() (int, string, error)

type SystemctlLoaded

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

func (SystemctlLoaded) New

func (chk SystemctlLoaded) New(params []string) (chkutil.Check, error)

func (SystemctlLoaded) Status

func (chk SystemctlLoaded) Status() (int, string, error)

type SystemctlSockListening

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

func (SystemctlSockListening) New

func (chk SystemctlSockListening) New(params []string) (chkutil.Check, error)

func (SystemctlSockListening) Status

func (chk SystemctlSockListening) Status() (int, string, error)

type SystemctlTimer

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

func (SystemctlTimer) New

func (chk SystemctlTimer) New(params []string) (chkutil.Check, error)

func (SystemctlTimer) Status

func (chk SystemctlTimer) Status() (int, string, error)

type SystemctlTimerLoaded

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

func (SystemctlTimerLoaded) ID

func (chk SystemctlTimerLoaded) ID() string

func (SystemctlTimerLoaded) New

func (chk SystemctlTimerLoaded) New(params []string) (chkutil.Check, error)

func (SystemctlTimerLoaded) Status

func (chk SystemctlTimerLoaded) Status() (int, string, error)

type SystemctlUnitFileStatus

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

func (SystemctlUnitFileStatus) New

func (chk SystemctlUnitFileStatus) New(params []string) (chkutil.Check, error)

func (SystemctlUnitFileStatus) Status

func (chk SystemctlUnitFileStatus) Status() (int, string, error)

type TCP

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

func (TCP) New

func (chk TCP) New(params []string) (chkutil.Check, error)

func (TCP) Status

func (chk TCP) Status() (int, string, error)

type TCPTimeout

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

func (TCPTimeout) New

func (chk TCPTimeout) New(params []string) (chkutil.Check, error)

func (TCPTimeout) Status

func (chk TCPTimeout) Status() (int, string, error)

type Temp

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

func (Temp) New

func (chk Temp) New(params []string) (chkutil.Check, error)

func (Temp) Status

func (chk Temp) Status() (int, string, error)

type UDP

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

func (UDP) New

func (chk UDP) New(params []string) (chkutil.Check, error)

func (UDP) Status

func (chk UDP) Status() (int, string, error)

type UDPTimeout

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

func (UDPTimeout) New

func (chk UDPTimeout) New(params []string) (chkutil.Check, error)

func (UDPTimeout) Status

func (chk UDPTimeout) Status() (int, string, error)

type Up

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

func (Up) New

func (chk Up) New(params []string) (chkutil.Check, error)

func (Up) Status

func (chk Up) Status() (int, string, error)

type UserExists

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

func (UserExists) New

func (chk UserExists) New(params []string) (chkutil.Check, error)

func (UserExists) Status

func (chk UserExists) Status() (int, string, error)

type UserHasGID

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

func (UserHasGID) New

func (chk UserHasGID) New(params []string) (chkutil.Check, error)

func (UserHasGID) Status

func (chk UserHasGID) Status() (int, string, error)

type UserHasHomeDir

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

func (UserHasHomeDir) New

func (chk UserHasHomeDir) New(params []string) (chkutil.Check, error)

func (UserHasHomeDir) Status

func (chk UserHasHomeDir) Status() (int, string, error)

type UserHasUID

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

func (UserHasUID) ID

func (chk UserHasUID) ID() string

func (UserHasUID) New

func (chk UserHasUID) New(params []string) (chkutil.Check, error)

func (UserHasUID) Status

func (chk UserHasUID) Status() (int, string, error)

type UserInGroup

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

func (UserInGroup) New

func (chk UserInGroup) New(params []string) (chkutil.Check, error)

func (UserInGroup) Status

func (chk UserInGroup) Status() (int, string, error)

type ZooKeeperQuorum added in v0.3.0

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

#### ZooKeeperQuorum Description: Are these Zookeeper servers responding to "ruok" requests? Parameters: - Timeout (time.Duration): Timeout for server response - Config file: file with zk config, where all nodes listed Example parameters: - "5s", "20ms", "2h" - "/etc/zookeeper/conf/zoo.cfg"

func (ZooKeeperQuorum) LoadConfig added in v0.3.0

func (chk ZooKeeperQuorum) LoadConfig() ([]string, error)

func (ZooKeeperQuorum) New added in v0.3.0

func (chk ZooKeeperQuorum) New(params []string) (chkutil.Check, error)

func (ZooKeeperQuorum) Status added in v0.3.0

func (chk ZooKeeperQuorum) Status() (int, string, error)

type ZooKeeperRUOK added in v0.3.0

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

#### ZooKeeperRUOK Description: Are these Zookeeper servers responding to "ruok" requests? Parameters: - Timeout (time.Duration): Timeout for server response - Servers ([]string): List of zookeeper servers Example parameters: - "5s", "20ms", "2h" - "localhost:2181", "zookeeper.service.consul:2181"

func (ZooKeeperRUOK) New added in v0.3.0

func (chk ZooKeeperRUOK) New(params []string) (chkutil.Check, error)

func (ZooKeeperRUOK) Status added in v0.3.0

func (chk ZooKeeperRUOK) Status() (int, string, error)

type ZooKeeperServerStats added in v0.3.0

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

func (ZooKeeperServerStats) New added in v0.3.0

func (chk ZooKeeperServerStats) New(params []string) (chkutil.Check, error)

func (ZooKeeperServerStats) Status added in v0.3.0

func (chk ZooKeeperServerStats) Status() (int, string, error)

Jump to

Keyboard shortcuts

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