resource

package
v0.0.0-...-a719b6a Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Id      string  `json:"id"`
	Type    string  `json:"type"`
	Node    string  `json:"node"`
	Level   string  `json:"level"`
	Uptime  uint32  `json:"uptime"`
	Cpu     float64 `json:"cpu"`
	MaxCpu  uint32  `json:"maxcpu"`
	Mem     uint64  `json:"mem"`
	MaxMem  uint64  `json:"maxmem"`
	Disk    uint64  `json:"disk"`
	MaxDisk uint64  `json:"maxdisk"`
}

type Pool

type Pool struct {
	Id     string  `json:"id"`
	Type   string  `json:"type"`
	Pool   string  `json:"pool"`
	Uptime uint32  `json:"uptime"`
	Cpu    float64 `json:"cpu"`
	MaxCpu uint32  `json:"maxcpu"`
	Mem    uint64  `json:"mem"`
	MaxMem uint64  `json:"maxmem"`
}

type ResourceBase

type ResourceBase struct {
	Id   string `json:"id"`
	Type string `json:"type"`
}

type Storage

type Storage struct {
	Id      string `json:"id"`
	Type    string `json:"type"`
	Storage string `json:"storage"`
	Node    string `json:"node"`
	Disk    uint64 `json:"disk"`
	MaxDisk uint64 `json:"maxdisk"`
}

type Vm

type Vm struct {
	Id     string `json:"id"`
	Type   string `json:"type"`
	Name   string `json:"name"`
	Vmid   uint64 `json:"vmid"`
	Node   string `json:"node"`
	Status string `json:"status"`
	Uptime uint32 `json:"uptime"`
	//Template  string `json:"template"`
	Cpu       float64 `json:"cpu"`
	MaxCpu    uint16  `json:"maxcpu"`
	Mem       uint64  `json:"mem"`
	MaxMem    uint64  `json:"maxmem"`
	Disk      uint64  `json:"disk"`
	MaxDisk   uint64  `json:"maxdisk"`
	DiskRead  uint64  `json:"diskread"`
	DiskWrite uint64  `json:"diskwrite"`
	NetIn     uint64  `json:"netin"`
	NetOut    uint64  `json:"netout"`
}

Jump to

Keyboard shortcuts

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