Documentation
¶
Index ¶
- type Pve
- func (p *Pve) CurrentKVMs() VMs
- func (p *Pve) CurrentLXCs() VMs
- func (p *Pve) CurrentVMs() VMs
- func (p *Pve) RefreshVMsMonitoring()
- func (p *Pve) RemoveVM(id int)
- func (p *Pve) RunKeptAliveProcess(vm *VM, forever bool) error
- func (p *Pve) Start()
- func (p *Pve) StartVMMonitoring(vm *VM)
- func (p *Pve) Stop()
- func (p *Pve) StopVMMonitoring(id int)
- func (p *Pve) UpdateVM(vm *VM) *VM
- type VM
- type VMs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pve ¶
type Pve struct {
// contains filtered or unexported fields
}
object used to interact with a Proxmox instance
func (*Pve) CurrentKVMs ¶
return a map containing the currently running KVMs
func (*Pve) CurrentLXCs ¶
return a map containing the currently running LXCs
func (*Pve) CurrentVMs ¶
return a map containing the currently running LXCs and KVMs
func (*Pve) RefreshVMsMonitoring ¶
func (p *Pve) RefreshVMsMonitoring()
refresh the map of running VMs
func (*Pve) RunKeptAliveProcess ¶
run a command inside a VM and parse its output that will be sent to a OTLP collector
func (*Pve) StartVMMonitoring ¶
run the monitoring process of a VM
func (*Pve) StopVMMonitoring ¶
stop the monitoring process of a VM
Click to show internal directories.
Click to hide internal directories.