node

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteStatus

type ByteStatus struct {
	Free  int64 `json:"free"`
	Total int64 `json:"total"`
	Used  int64 `json:"used"`
	Avail int64 `json:"avail"`
}

type CPUInfo

type CPUInfo struct {
	Sockets int    `json:"sockets"`
	UserHZ  int    `json:"user_hz"`
	Mhz     string `json:"mhz"`
	Cores   int    `json:"cores"`
	Cpus    int    `json:"cpus"`
	Hvm     string `json:"hvm"`
	Flags   string `json:"flags"`
	Model   string `json:"model"`
}

type Detail

type Detail struct {
	Idle       int         `json:"idle"`
	CPU        float64     `json:"cpu"`
	PVEVersion string      `json:"pveversion"`
	Uptime     int         `json:"uptime"`
	KVersion   string      `json:"kversion"`
	Wait       int         `json:"wait"`
	LoadAVG    []string    `json:"loadavg"`
	CPUInfo    *CPUInfo    `json:"cpu_info"`
	Memory     *ByteStatus `json:"memory"`
	Swap       *ByteStatus `json:"swap"`
	RootFS     *ByteStatus `json:"rootfs"`
}

type Information

type Information struct {
	Node           string  `json:"node"`
	Status         string  `json:"status"` // unknown / online / offline
	CPU            float64 `json:"cpu"`
	Level          string  `json:"level"`
	MaxCPU         int     `json:"maxcpu"`
	Mem            int64   `json:"mem"`     // used in bytes
	MaxMem         int64   `json:"maxmem"`  // in bytes
	Disk           int64   `json:"disk"`    // used in bytes
	MaxDisk        int64   `json:"maxdisk"` // used in bytes
	SSLFingerprint string  `json:"ssl_fingerprint"`
	Uptime         int64   `json:"uptime"` // in seconds
}

type StatusInformation

type StatusInformation struct {
	IP     string `json:"ip"`
	Level  string `json:"level"`
	Local  int    `json:"local"`
	Name   string `json:"name"`
	NodeID int    `json:"node_id"`
	Online int    `json:"online"`
}

type TimeInformation

type TimeInformation struct {
	Localtime int64  `json:"localtime"`
	Time      int64  `json:"time"`
	Timezone  string `json:"timezone"`
}

type Version

type Version struct {
	Release string `json:"release"`
	RepoID  string `json:"repoid"`
	Version string `json:"version"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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