Documentation ¶
Index ¶
- func IsLikelyMAC(mac string) (isLikelyMAC bool)
- type Client
- func (c *Client) CheckSites() bool
- func (c *Client) FindDevicesByMAC(mac string) (res []models.Device, err error)
- func (c *Client) FindIPAddressesByInterfaceID(ifaceID uint64) ([]models.IP, error)
- func (c *Client) FindInterfacesByMAC(mac string) (res []models.Interface, err error)
- func (c *Client) GetDeviceByDUID(duid string) (res *models.Device, err error)
- func (c *Client) GetDeviceByID(id uint64) (res *models.Device, err error)
- func (c *Client) GetIPAddressByID(id uint64) (res *models.IP, err error)
- func (c *Client) GetSites() (res []models.Site, err error)
- type EntityResolver
- type NetboxConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLikelyMAC ¶
Types ¶
type Client ¶
type Client struct {
Config *NetboxConfig
}
func (*Client) CheckSites ¶
func (*Client) FindDevicesByMAC ¶
func (*Client) FindIPAddressesByInterfaceID ¶
func (*Client) FindInterfacesByMAC ¶
func (*Client) GetDeviceByDUID ¶
func (*Client) GetDeviceByID ¶
func (*Client) GetIPAddressByID ¶
type EntityResolver ¶
type EntityResolver interface {
Resolve() string
}
Click to show internal directories.
Click to hide internal directories.