Versions in this module Expand all Collapse all v1 v1.1.0 Dec 25, 2023 v1.0.0 Dec 25, 2023 Changes in this version + func Bool(b *bool) bool + func Int64(i *int64) int64 + func String(s *string) string + type Device struct + CustomFields map[string]interface{} + DeviceManufacturer string + DeviceRole string + DeviceType string + Display string + ID int64 + Location string + Name string + ParentDeviceID int64 + Platform string + PrimaryIP netip.Prefix + PrimaryIP4 netip.Prefix + PrimaryIP6 netip.Prefix + Tags map[string]bool + func GetDevice(c *client.NetBoxAPI, id int64) (*Device, error) + type Devices []*Device + func ListDevices(c *client.NetBoxAPI) (Devices, error) + type IPAddr struct + Address netip.Prefix + AssignedObjectID int64 + AssignedObjectType string + CustomFields map[string]interface{} + DNSName string + Description string + Display string + Family string + ID int64 + Role string + Status string + Tags map[string]bool + VRF string + func GetIPAddr(c *client.NetBoxAPI, id int64) (*IPAddr, error) + type IPAddrs []*IPAddr + func ListIPAddrs(c *client.NetBoxAPI) (IPAddrs, error) + func (ips IPAddrs) ForInterfaceID(id int64) IPAddrs + type IPPrefix struct + Description string + Display string + Family string + ID int64 + Prefix netip.Prefix + Status string + Tags map[string]bool + VRF string + func GetIPPrefix(c *client.NetBoxAPI, id int64) (*IPPrefix, error) + type IPPrefixes []*IPPrefix + func ListIPPrefixes(c *client.NetBoxAPI) (IPPrefixes, error) + type Interface struct + CableDisplay string + CableEnd string + CableID int64 + CableLabel string + ConnectedEndpoints []string + ConnectedEndpointsReachable bool + CustomFields map[string]interface{} + Description string + DeviceID int64 + Display string + Enabled bool + ID int64 + LAGName string + Label string + LinkPeers []string + LinkPeersType string + MACAddress string + MTU int64 + MarkConnected bool + MgmtOnly bool + Name string + ParentID int64 + ParentName string + PoeMode string + PoeType string + Speed int64 + TaggedVLANIDs []int64 + TaggedVLANNames []string + TaggedVLANVIDs []int64 + Tags map[string]bool + Type string + UntaggedVLANID int64 + UntaggedVLANName string + UntaggedVLANVID int64 + VRF string + WirelessLANs []string + func GetInterface(c *client.NetBoxAPI, id int64) (*Interface, error) + type Interfaces []*Interface + func ListInterfaces(c *client.NetBoxAPI) (Interfaces, error) + func (ints Interfaces) ForDeviceID(id int64) Interfaces