Documentation ¶
Index ¶
- func ResponseMatchesGeneral(urlstr string, re *regexp.Regexp, secure bool) (int, string, error)
- func RoutingTableColumn(name string) []string
- func RoutingTableMatch(col string, str string) (int, string, error)
- type CPUUsage
- type Checksum
- type Command
- type CommandOutputMatches
- type Directory
- type DiskUsage
- type DockerImage
- type DockerImageRegexp
- type DockerRunning
- type DockerRunningAPI
- type DockerRunningRegexp
- type File
- type FileMatches
- type FreeMemory
- type FreeSwap
- type Gateway
- type GatewayInterface
- type GroupExists
- type GroupID
- type Host
- type IP4
- type IP6
- type InodeUsage
- type Installed
- type InterfaceExists
- type KernelParameter
- type MemoryUsage
- type Module
- type PHPConfig
- type PacmanIgnore
- type Permissions
- type Port
- type PortTCP
- type PortUDP
- type ResponseMatches
- type ResponseMatchesInsecure
- type RoutingTableDestination
- type RoutingTableGateway
- type RoutingTableInterface
- type Running
- type SwapUsage
- type Symlink
- type SystemctlActive
- type SystemctlLoaded
- type SystemctlSockListening
- type SystemctlTimer
- type SystemctlTimerLoaded
- type SystemctlUnitFileStatus
- type TCP
- type TCPTimeout
- type Temp
- type UDP
- type UDPTimeout
- type Up
- type UserExists
- type UserHasGID
- type UserHasHomeDir
- type UserHasUID
- type UserInGroup
- type ZooKeeperQuorum
- type ZooKeeperRUOK
- type ZooKeeperServerStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseMatchesGeneral ¶
ResponseMatchesGeneral is an abstraction of ResponseMatches and ResponseMatchesInsecure that simply varies in the security of the connection
func RoutingTableColumn ¶
returns a column of the routing table as a slice of strings TODO read from /proc/net/route instead
Types ¶
type CommandOutputMatches ¶
type CommandOutputMatches struct { Command string // contains filtered or unexported fields }
type DiskUsage ¶
type DiskUsage struct {
// contains filtered or unexported fields
}
TODO use a uint
type DockerImage ¶
type DockerImage struct {
// contains filtered or unexported fields
}
type DockerImageRegexp ¶
type DockerImageRegexp struct {
// contains filtered or unexported fields
}
func (DockerImageRegexp) ID ¶
func (chk DockerImageRegexp) ID() string
type DockerRunning ¶
type DockerRunning struct {
// contains filtered or unexported fields
}
func (DockerRunning) ID ¶
func (chk DockerRunning) ID() string
type DockerRunningAPI ¶
type DockerRunningAPI struct {
// contains filtered or unexported fields
}
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"
type FileMatches ¶
type FileMatches struct {
// contains filtered or unexported fields
}
type FreeMemory ¶
type FreeMemory struct {
// contains filtered or unexported fields
}
type GatewayInterface ¶
type GatewayInterface struct {
// contains filtered or unexported fields
}
type GroupExists ¶
type GroupExists struct {
// contains filtered or unexported fields
}
type InodeUsage ¶ added in v0.2.3
type InodeUsage struct {
// contains filtered or unexported fields
}
type InterfaceExists ¶
type InterfaceExists struct {
// contains filtered or unexported fields
}
type KernelParameter ¶
type KernelParameter struct {
// contains filtered or unexported fields
}
type MemoryUsage ¶
type MemoryUsage struct {
// contains filtered or unexported fields
}
TODO use a uint
type PacmanIgnore ¶
type PacmanIgnore struct {
// contains filtered or unexported fields
}
type Permissions ¶
type Permissions struct {
// contains filtered or unexported fields
}
type ResponseMatches ¶
type ResponseMatches struct {
// contains filtered or unexported fields
}
type ResponseMatchesInsecure ¶
type ResponseMatchesInsecure struct {
// contains filtered or unexported fields
}
type RoutingTableDestination ¶
type RoutingTableDestination struct {
// contains filtered or unexported fields
}
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`.
type RoutingTableInterface ¶
type RoutingTableInterface struct {
// contains filtered or unexported fields
}
type SwapUsage ¶
type SwapUsage struct {
// contains filtered or unexported fields
}
TODO use a uint
type SystemctlActive ¶
type SystemctlActive struct {
// contains filtered or unexported fields
}
type SystemctlLoaded ¶
type SystemctlLoaded struct {
// contains filtered or unexported fields
}
type SystemctlSockListening ¶
type SystemctlSockListening struct {
// contains filtered or unexported fields
}
type SystemctlTimer ¶
type SystemctlTimer struct {
// contains filtered or unexported fields
}
type SystemctlTimerLoaded ¶
type SystemctlTimerLoaded struct {
// contains filtered or unexported fields
}
func (SystemctlTimerLoaded) ID ¶
func (chk SystemctlTimerLoaded) ID() string
type SystemctlUnitFileStatus ¶
type SystemctlUnitFileStatus struct {
// contains filtered or unexported fields
}
type TCPTimeout ¶
type TCPTimeout struct {
// contains filtered or unexported fields
}
type UDPTimeout ¶
type UDPTimeout struct {
// contains filtered or unexported fields
}
type UserExists ¶
type UserExists struct {
// contains filtered or unexported fields
}
type UserHasGID ¶
type UserHasGID struct {
// contains filtered or unexported fields
}
type UserHasHomeDir ¶
type UserHasHomeDir struct {
// contains filtered or unexported fields
}
type UserHasUID ¶
type UserHasUID struct {
// contains filtered or unexported fields
}
func (UserHasUID) ID ¶
func (chk UserHasUID) ID() string
type UserInGroup ¶
type UserInGroup struct {
// contains filtered or unexported fields
}
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)
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"
type ZooKeeperServerStats ¶ added in v0.3.0
type ZooKeeperServerStats struct {
// contains filtered or unexported fields
}