 Documentation
      ¶
      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 ¶
func (ps *ProxmoxSource) Sync(nbi *inventory.NetboxInventory) error
Function that syncs all collected data to Netbox inventory.
 Click to show internal directories. 
   Click to hide internal directories.