Documentation ¶
Overview ¶
Package hostinfo contains a file for each supported host info query
Index ¶
- Constants
- func NewHostInfoResponse(result interface{}, f *protocol.FrameMsg) *protocol.HostInfoResponse
- type HostInfo
- func NewHostInfo(rawParams json.RawMessage) HostInfo
- func NewHostInfoCpu(base *hostinfo.HostInfoBase) HostInfo
- func NewHostInfoFilesystem(base *hostinfo.HostInfoBase) HostInfo
- func NewHostInfoMemory(base *hostinfo.HostInfoBase) HostInfo
- func NewHostInfoProcesses(base *hostinfo.HostInfoBase) HostInfo
- func NewHostInfoSystem(base *hostinfo.HostInfoBase) HostInfo
- type HostInfoCpu
- type HostInfoFilesystem
- type HostInfoMemory
- type HostInfoProcesses
- type HostInfoSystem
Constants ¶
View Source
const BytesToKilobytes = 1024
View Source
const Megabyte = 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
func NewHostInfoResponse ¶
func NewHostInfoResponse(result interface{}, f *protocol.FrameMsg) *protocol.HostInfoResponse
Types ¶
type HostInfo ¶
type HostInfo interface {
Run() (interface{}, error)
}
func NewHostInfo ¶
func NewHostInfo(rawParams json.RawMessage) HostInfo
func NewHostInfoCpu ¶
func NewHostInfoCpu(base *hostinfo.HostInfoBase) HostInfo
func NewHostInfoFilesystem ¶
func NewHostInfoFilesystem(base *hostinfo.HostInfoBase) HostInfo
func NewHostInfoMemory ¶
func NewHostInfoMemory(base *hostinfo.HostInfoBase) HostInfo
func NewHostInfoProcesses ¶
func NewHostInfoProcesses(base *hostinfo.HostInfoBase) HostInfo
func NewHostInfoSystem ¶
func NewHostInfoSystem(base *hostinfo.HostInfoBase) HostInfo
type HostInfoCpu ¶
type HostInfoCpu struct {
hostinfo.HostInfoBase
}
func (*HostInfoCpu) Run ¶
func (*HostInfoCpu) Run() (interface{}, error)
type HostInfoFilesystem ¶
type HostInfoFilesystem struct {
hostinfo.HostInfoBase
}
func (*HostInfoFilesystem) Run ¶
func (*HostInfoFilesystem) Run() (interface{}, error)
type HostInfoMemory ¶
type HostInfoMemory struct {
hostinfo.HostInfoBase
}
func (*HostInfoMemory) Run ¶
func (*HostInfoMemory) Run() (interface{}, error)
type HostInfoProcesses ¶
type HostInfoProcesses struct {
hostinfo.HostInfoBase
}
func (*HostInfoProcesses) Run ¶
func (*HostInfoProcesses) Run() (interface{}, error)
type HostInfoSystem ¶
type HostInfoSystem struct {
hostinfo.HostInfoBase
}
func (*HostInfoSystem) Run ¶
func (*HostInfoSystem) Run() (interface{}, error)
Click to show internal directories.
Click to hide internal directories.