hostinfo

package
v0.1.9 Latest Latest
Warning

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

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

Documentation

Overview

Package hostinfo contains a file for each supported host info query

Index

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)

Jump to

Keyboard shortcuts

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