Documentation
¶
Index ¶
- type CustomFields
- type DHCPConfigContext
- type Device
- type DeviceList
- type EmbeddedDevice
- type EmbeddedIP
- type EmbeddedInterface
- type EmbeddedNetboxObject
- type EmbeddedSite
- type EmbeddedVirtualMachine
- type IP
- type IPList
- type Interface
- type InterfaceList
- type NetboxCustomFieldsObject
- type NetboxList
- type NetboxObject
- type Prefix
- type PrefixList
- type Site
- type SiteList
- type Status
- type Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomFields ¶
type DHCPConfigContext ¶
type DHCPConfigContext struct {
Routers []string `json:"routers"`
DomainName string `json:"domain_name"`
DNSServers []string `json:"dns_servers"`
NTPServers []string `json:"ntp_servers"`
NextServer string `json:"next_server"`
BootFileName string `json:"bootfile_name"`
LeaseDuration string `json:"lease_duration"`
}
type Device ¶
type Device struct {
NetboxObject
Name string `json:"name"`
PrimaryIP4 EmbeddedIP `json:"primary_ip4"`
PrimaryIP6 EmbeddedIP `json:"primary_ip6"`
ConfigContext struct {
DHCP DHCPConfigContext `json:"dhcp"`
} `json:"config_context"`
}
type DeviceList ¶
type DeviceList struct {
NetboxList
Devices []Device `json:"results"`
}
func (DeviceList) Resolve ¶
func (DeviceList) Resolve() string
type EmbeddedDevice ¶
type EmbeddedDevice struct {
EmbeddedNetboxObject
Name string `json:"name"`
DisplayName string `json:"display_name"`
}
type EmbeddedIP ¶
type EmbeddedIP struct {
EmbeddedNetboxObject
Family uint8 `json:"family"`
RawAddress string `json:"address"`
}
type EmbeddedInterface ¶
type EmbeddedInterface struct {
EmbeddedNetboxObject
Name string `json:"name"`
Device EmbeddedDevice `json:"device"`
VirtualMachine EmbeddedVirtualMachine `json:"virtual_machine"`
}
type EmbeddedNetboxObject ¶
type EmbeddedSite ¶
type EmbeddedSite struct {
EmbeddedNetboxObject
Name string `json:"name"`
Slug string `json:"slug"`
}
type EmbeddedVirtualMachine ¶
type EmbeddedVirtualMachine EmbeddedDevice
type IP ¶
type IP struct {
NetboxCustomFieldsObject
Family uint8 `json:"family"`
RawAddress string `json:"address"`
Interface EmbeddedInterface `json:"interface"`
}
type IPList ¶
type IPList struct {
NetboxList
IPs []IP `json:"results"`
}
type Interface ¶
type Interface struct {
NetboxObject
Device EmbeddedDevice `json:"device"`
Name string `json:"name"`
}
type InterfaceList ¶
type InterfaceList struct {
NetboxList
Interfaces []Interface `json:"results"`
}
func (InterfaceList) Resolve ¶
func (InterfaceList) Resolve() string
type NetboxCustomFieldsObject ¶
type NetboxCustomFieldsObject struct {
NetboxObject
CustomFields CustomFields `json:"custom_fields"`
}
type NetboxList ¶
type NetboxObject ¶
type Prefix ¶
type Prefix struct {
NetboxCustomFieldsObject
Family uint8 `json:"family"`
RawPrefix string `json:"prefix"`
Site EmbeddedSite `json:"site"`
IsPool bool `json:"is_pool"`
Status Status `json:"status"`
}
type PrefixList ¶
type PrefixList struct {
NetboxList
Prefixes []Prefix `json:"results"`
}
func (PrefixList) Resolve ¶
func (PrefixList) Resolve() string
type Site ¶
type Site struct {
NetboxCustomFieldsObject
Name string `json:"name"`
Slug string `json:"slug"`
TimeZone string `json:"time_zone"`
Status Status `json:"status"`
}
type SiteList ¶
type SiteList struct {
NetboxList
Sites []Site `json:"results"`
}
Click to show internal directories.
Click to hide internal directories.