Documentation ¶
Index ¶
- type NodeInfo
- type NodeResponse
- type Proxmox
- func (p Proxmox) GetIPs(vmName string) (ips []net.IP, err error)
- func (p Proxmox) GetIPsById(node string, vmid int) (ips []net.IP, err error)
- func (p Proxmox) GetNodes() (info []NodeInfo, err error)
- func (p Proxmox) GetVMs(nodeName string) (VMs []VMInfo, err error)
- func (p Proxmox) Name() string
- func (p Proxmox) Ready() bool
- func (p Proxmox) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
- type VMInfo
- type VMNetworkInterfaceResult
- type VMResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeInfo ¶
type NodeInfo struct { Level string `json:"level"` Id string `json:"id"` Maxdisk int `json:"maxdisk"` Disk int `json:"disk"` SslFingerPrint string `json:"sslFingerPrint"` NodeType string `json:"type"` Cpu float32 `json:"cpu"` Mem int `json:"mem"` Maxcpu int `json:"maxcpu"` Maxmem int `json:"maxmem"` Status string `json:"status"` Uptime int `json:"uptime"` Node string `json:"node"` }
type NodeResponse ¶
type NodeResponse struct {
Data []NodeInfo `json:"data"`
}
type Proxmox ¶
func (Proxmox) GetIPsById ¶
type VMInfo ¶
type VMInfo struct { Disk int `json:"disk"` Pid int `json:"pid"` Diskwrite int `json:"diskwrite"` Name string `json:"name"` Maxmem int64 `json:"maxmem"` Status string `json:"status"` Serial int `json:"serial"` Diskread int `json:"diskread"` Netout int `json:"netout"` Netin int64 `json:"netin"` Maxdisk int64 `json:"maxdisk"` Vmid int `json:"vmid"` Cpus int `json:"cpus"` Cpu float64 `json:"cpu"` Uptime int `json:"uptime"` Mem int `json:"mem"` }
type VMNetworkInterfaceResult ¶
type VMNetworkInterfaceResult struct { Data struct { Result []struct { HardwareAddress string `json:"hardware-address"` Name string `json:"name"` Statistics struct { TxDropped int `json:"tx-dropped"` TxBytes int64 `json:"tx-bytes"` TxPackets int `json:"tx-packets"` RxErrs int `json:"rx-errs"` TxErrs int `json:"tx-errs"` RxPackets int `json:"rx-packets"` RxBytes int64 `json:"rx-bytes"` RxDropped int `json:"rx-dropped"` } `json:"statistics"` IpAddresses []struct { IpAddressType string `json:"ip-address-type"` Prefix int `json:"prefix"` IpAddress string `json:"ip-address"` } `json:"ip-addresses"` } `json:"result"` } `json:"data"` }
type VMResponse ¶
type VMResponse struct {
Data []VMInfo `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.