proc

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquireAvgStat

func AcquireAvgStat(w http.ResponseWriter) error

func AcquireCPUInfo

func AcquireCPUInfo(w http.ResponseWriter) error

func AcquireCPUTimeStat

func AcquireCPUTimeStat(w http.ResponseWriter) error

func AcquireDiskUsage

func AcquireDiskUsage(w http.ResponseWriter) error

func AcquireHostInfo

func AcquireHostInfo(w http.ResponseWriter) error

func AcquireIOCounters

func AcquireIOCounters(w http.ResponseWriter) error

func AcquireInterfaces

func AcquireInterfaces(w http.ResponseWriter) error

func AcquireMisc

func AcquireMisc(w http.ResponseWriter) error

func AcquireModules

func AcquireModules(w http.ResponseWriter) error

func AcquireNetArp

func AcquireNetArp(w http.ResponseWriter) error

func AcquireNetDevIOCounters

func AcquireNetDevIOCounters(w http.ResponseWriter) error

func AcquireNetStat

func AcquireNetStat(w http.ResponseWriter, protocol string) error

read netstat from proc tcp/udp/sctp

func AcquireNetStatPid

func AcquireNetStatPid(w http.ResponseWriter, protocol string, process string) error

func AcquirePartitions

func AcquirePartitions(w http.ResponseWriter) error

func AcquirePlatformInformation

func AcquirePlatformInformation(w http.ResponseWriter) error

func AcquireProcessInfo

func AcquireProcessInfo(w http.ResponseWriter, proc string, property string) error

func AcquireProtoCountersStat

func AcquireProtoCountersStat(w http.ResponseWriter) error

func AcquireTemperatureStat

func AcquireTemperatureStat(w http.ResponseWriter) error

func AcquireUserStat

func AcquireUserStat(w http.ResponseWriter) error

func AcquireVirtualMemoryStat

func AcquireVirtualMemoryStat(c context.Context, w http.ResponseWriter) error

func AcquireVirtualization

func AcquireVirtualization(w http.ResponseWriter) error

func RegisterRouterProc

func RegisterRouterProc(router *mux.Router)

Types

type Modules

type Modules struct {
	Module     string `json:"Module"`
	MemorySize string `json:"MemorySize"`
	Instances  string `json:"Instances"`
	Dependent  string `json:"Dependent"`
	State      string `json:"State"`
}

type NetARP

type NetARP struct {
	IPAddress string `json:"IPAddress"`
	HWType    string `json:"HWType"`
	Flags     string `json:"Flags"`
	HWAddress string `json:"HWAddress"`
	Mask      string `json:"Mask"`
	Device    string `json:"Device"`
}

type Proc

type Proc struct {
	Path     string `json:"path"`
	Property string `json:"property"`
	Value    string `json:"value"`
}

type SysNet

type SysNet struct {
	Path     string `json:"path"`
	Property string `json:"property"`
	Value    string `json:"value"`
	Link     string `json:"link"`
}

func (*SysNet) GetSysNet

func (r *SysNet) GetSysNet(rw http.ResponseWriter) error

func (*SysNet) SetSysNet

func (r *SysNet) SetSysNet(rw http.ResponseWriter) error

type VM

type VM struct {
	Property string `json:"property"`
	Value    string `json:"value"`
}

func (*VM) GetVM

func (r *VM) GetVM(w http.ResponseWriter) error

func (*VM) SetVM

func (r *VM) SetVM(w http.ResponseWriter) error

Jump to

Keyboard shortcuts

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