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 RepoExists
- type RepoExistsURI
- 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 UserHasName
- type UserHasUID
- type UserHasUsername
- type UserInGroup
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 }
func (CommandOutputMatches) ID ¶
func (chk CommandOutputMatches) ID() string
type DiskUsage ¶
type DiskUsage struct {
// contains filtered or unexported fields
}
TODO use a uint
type DockerImage ¶
type DockerImage struct {
// contains filtered or unexported fields
}
func (DockerImage) ID ¶
func (chk DockerImage) ID() string
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
}
func (DockerRunningAPI) ID ¶
func (chk DockerRunningAPI) ID() string
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) ID ¶
func (chk DockerRunningRegexp) ID() string
type FileMatches ¶
type FileMatches struct {
// contains filtered or unexported fields
}
func (FileMatches) ID ¶
func (chk FileMatches) ID() string
type FreeMemory ¶
type FreeMemory struct {
// contains filtered or unexported fields
}
func (FreeMemory) ID ¶
func (chk FreeMemory) ID() string
type GatewayInterface ¶
type GatewayInterface struct {
// contains filtered or unexported fields
}
func (GatewayInterface) ID ¶
func (chk GatewayInterface) ID() string
type GroupExists ¶
type GroupExists struct {
// contains filtered or unexported fields
}
func (GroupExists) ID ¶
func (chk GroupExists) ID() string
type InodeUsage ¶ added in v0.2.3
type InodeUsage struct {
// contains filtered or unexported fields
}
func (InodeUsage) ID ¶ added in v0.2.3
func (chk InodeUsage) ID() string
type InterfaceExists ¶
type InterfaceExists struct {
// contains filtered or unexported fields
}
func (InterfaceExists) ID ¶
func (chk InterfaceExists) ID() string
type KernelParameter ¶
type KernelParameter struct {
// contains filtered or unexported fields
}
func (KernelParameter) ID ¶
func (chk KernelParameter) ID() string
type MemoryUsage ¶
type MemoryUsage struct {
// contains filtered or unexported fields
}
TODO use a uint
func (MemoryUsage) ID ¶
func (chk MemoryUsage) ID() string
type PacmanIgnore ¶
type PacmanIgnore struct {
// contains filtered or unexported fields
}
func (PacmanIgnore) ID ¶
func (chk PacmanIgnore) ID() string
type Permissions ¶
type Permissions struct {
// contains filtered or unexported fields
}
func (Permissions) ID ¶
func (chk Permissions) ID() string
type RepoExists ¶
type RepoExists struct {
// contains filtered or unexported fields
}
func (RepoExists) ID ¶
func (chk RepoExists) ID() string
type RepoExistsURI ¶
type RepoExistsURI struct {
// contains filtered or unexported fields
}
func (RepoExistsURI) ID ¶
func (chk RepoExistsURI) ID() string
type ResponseMatches ¶
type ResponseMatches struct {
// contains filtered or unexported fields
}
func (ResponseMatches) ID ¶
func (chk ResponseMatches) ID() string
type ResponseMatchesInsecure ¶
type ResponseMatchesInsecure struct {
// contains filtered or unexported fields
}
func (ResponseMatchesInsecure) ID ¶
func (chk ResponseMatchesInsecure) ID() string
type RoutingTableDestination ¶
type RoutingTableDestination struct {
// contains filtered or unexported fields
}
func (RoutingTableDestination) ID ¶
func (chk RoutingTableDestination) ID() string
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) ID ¶
func (chk RoutingTableGateway) ID() string
type RoutingTableInterface ¶
type RoutingTableInterface struct {
// contains filtered or unexported fields
}
func (RoutingTableInterface) ID ¶
func (chk RoutingTableInterface) ID() string
type SwapUsage ¶
type SwapUsage struct {
// contains filtered or unexported fields
}
TODO use a uint
type SystemctlActive ¶
type SystemctlActive struct {
// contains filtered or unexported fields
}
func (SystemctlActive) ID ¶
func (chk SystemctlActive) ID() string
type SystemctlLoaded ¶
type SystemctlLoaded struct {
// contains filtered or unexported fields
}
func (SystemctlLoaded) ID ¶
func (chk SystemctlLoaded) ID() string
type SystemctlSockListening ¶
type SystemctlSockListening struct {
// contains filtered or unexported fields
}
func (SystemctlSockListening) ID ¶
func (chk SystemctlSockListening) ID() string
type SystemctlTimer ¶
type SystemctlTimer struct {
// contains filtered or unexported fields
}
func (SystemctlTimer) ID ¶
func (chk SystemctlTimer) ID() string
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
}
func (SystemctlUnitFileStatus) ID ¶
func (chk SystemctlUnitFileStatus) ID() string
type TCPTimeout ¶
type TCPTimeout struct {
// contains filtered or unexported fields
}
func (TCPTimeout) ID ¶
func (chk TCPTimeout) ID() string
type UDPTimeout ¶
type UDPTimeout struct {
// contains filtered or unexported fields
}
func (UDPTimeout) ID ¶
func (chk UDPTimeout) ID() string
type UserExists ¶
type UserExists struct {
// contains filtered or unexported fields
}
func (UserExists) ID ¶
func (chk UserExists) ID() string
type UserHasGID ¶
type UserHasGID struct {
// contains filtered or unexported fields
}
func (UserHasGID) ID ¶
func (chk UserHasGID) ID() string
type UserHasHomeDir ¶
type UserHasHomeDir struct {
// contains filtered or unexported fields
}
func (UserHasHomeDir) ID ¶
func (chk UserHasHomeDir) ID() string
type UserHasName ¶
type UserHasName struct {
// contains filtered or unexported fields
}
func (UserHasName) ID ¶
func (chk UserHasName) ID() string
type UserHasUID ¶
type UserHasUID struct {
// contains filtered or unexported fields
}
func (UserHasUID) ID ¶
func (chk UserHasUID) ID() string
type UserHasUsername ¶
type UserHasUsername struct {
// contains filtered or unexported fields
}
func (UserHasUsername) ID ¶
func (chk UserHasUsername) ID() string
type UserInGroup ¶
type UserInGroup struct {
// contains filtered or unexported fields
}
func (UserInGroup) ID ¶
func (chk UserInGroup) ID() string
Click to show internal directories.
Click to hide internal directories.