proxmox

package
v1.9.11 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxmoxSource

type ProxmoxSource struct {
	common.Config

	// Proxmox API data initialized in init functions
	Cluster         *proxmox.Cluster
	Nodes           []*proxmox.Node
	NodeIfaces      map[string][]*proxmox.NodeNetwork        // NodeName -> NodeNetworks (interfaces)
	Vms             map[string][]*proxmox.VirtualMachine     // NodeName -> VirtualMachines
	VMIfaces        map[string][]*proxmox.AgentNetworkIface  // VMName -> NetworkDevices
	Containers      map[string][]*proxmox.Container          // NodeName -> Contatiners
	ContainerIfaces map[string][]*proxmox.ContainerInterface // ContainerName -> ContainerInterfaces

	// Netbox related data for easier access. Initialized in sync functions.
	NetboxCluster *objects.Cluster
	NetboxNodes   map[string]*objects.Device // NodeName -> netbox device
}

func (*ProxmoxSource) Init

func (ps *ProxmoxSource) Init() error

Function that collects all data from Proxmox API and stores it in ProxmoxSource struct.

func (*ProxmoxSource) Sync

Function that syncs all collected data to Netbox inventory.

Jump to

Keyboard shortcuts

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