Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type DeviceResponse ¶
type DeviceResponse struct {
Hostname string `json:"hostname"`
}
type FortiClient ¶
func NewAPIClient ¶
func NewAPIClient(apiToken string, baseURL string, httpClient *http.Client) *FortiClient
type FortiSystemInfo ¶
type FortigateSource ¶
type FortigateSource struct {
common.Config
// Fortinet data. Initialized in init functions.
SystemInfo FortiSystemInfo // Map storing system information
Ifaces map[string]InterfaceResponse // iface name -> FortigateInterface
// NBFirewall representing fortinet firewall created in syncDevice func.
NBFirewall *objects.Device
}
func (*FortigateSource) Init ¶
func (fs *FortigateSource) Init() error
func (*FortigateSource) Sync ¶
func (fs *FortigateSource) Sync(nbi *inventory.NetboxInventory) error
type InterfaceResponse ¶
type InterfaceResponse struct {
Name string `json:"name"`
Vdom string `json:"vdom"`
IP string `json:"Ip"`
Type string `json:"type"`
Status string `json:"status"`
Speed string `json:"speed"`
Description string `json:"description"`
MTU int `json:"mtu"`
MAC string `json:"macaddr"`
VlanID int `json:"vlanid"`
SecondaryIP []SecondaryIP `json:"secondaryip"`
VRRPIP []VRRPIP `json:"vrrp"`
}
type SecondaryIP ¶
type SecondaryIP struct {
IP string `json:"ip"`
}
Click to show internal directories.
Click to hide internal directories.