Documentation ¶
Index ¶
- type NetboxClient
- func (nbc *NetboxClient) Connect() error
- func (nbc *NetboxClient) GetCables() ([]*model.DcimCable, error)
- func (nbc *NetboxClient) GetCircuitTerminations() ([]*model.CircuitsCircuittermination, error)
- func (nbc *NetboxClient) GetCircuits() ([]*model.CircuitsCircuit, error)
- func (nbc *NetboxClient) GetCircuitsCircuitterminationTypeID() int32
- func (nbc *NetboxClient) GetDBHost() string
- func (nbc *NetboxClient) GetDcimFrontPortTypeID() int32
- func (nbc *NetboxClient) GetDcimInterfaceTypeID() int32
- func (nbc *NetboxClient) GetDcimRearPortTypeID() int32
- func (nbc *NetboxClient) GetDevices() ([]*model.DcimDevice, error)
- func (nbc *NetboxClient) GetFrontPorts() ([]*model.DcimFrontport, error)
- func (nbc *NetboxClient) GetIPAddresses() ([]*model.IpamIpaddress, error)
- func (nbc *NetboxClient) GetInterfaces() (map[int64]*model.DcimInterface, error)
- func (nbc *NetboxClient) GetPrefixes() ([]*model.IpamPrefix, error)
- func (nbc *NetboxClient) GetRearPorts() ([]*model.DcimRearport, error)
- type NetboxClientI
- type NetboxConnector
- func (n *NetboxConnector) EnrichTopology(t *model.Topology) error
- func (n *NetboxConnector) GetLoadDuration() time.Duration
- func (n *NetboxConnector) GetLoadTime() time.Time
- func (n *NetboxConnector) GetName() string
- func (n *NetboxConnector) GetUpdateErrorCount() uint64
- func (n *NetboxConnector) Healthy() bool
- func (n *NetboxConnector) InitialLoad() error
- func (n *NetboxConnector) StartRefreshRoutine()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetboxClient ¶
type NetboxClient struct {
// contains filtered or unexported fields
}
func (*NetboxClient) Connect ¶
func (nbc *NetboxClient) Connect() error
func (*NetboxClient) GetCircuitTerminations ¶
func (nbc *NetboxClient) GetCircuitTerminations() ([]*model.CircuitsCircuittermination, error)
func (*NetboxClient) GetCircuits ¶
func (nbc *NetboxClient) GetCircuits() ([]*model.CircuitsCircuit, error)
func (*NetboxClient) GetCircuitsCircuitterminationTypeID ¶
func (nbc *NetboxClient) GetCircuitsCircuitterminationTypeID() int32
func (*NetboxClient) GetDBHost ¶
func (nbc *NetboxClient) GetDBHost() string
func (*NetboxClient) GetDcimFrontPortTypeID ¶
func (nbc *NetboxClient) GetDcimFrontPortTypeID() int32
func (*NetboxClient) GetDcimInterfaceTypeID ¶
func (nbc *NetboxClient) GetDcimInterfaceTypeID() int32
func (*NetboxClient) GetDcimRearPortTypeID ¶
func (nbc *NetboxClient) GetDcimRearPortTypeID() int32
func (*NetboxClient) GetDevices ¶
func (nbc *NetboxClient) GetDevices() ([]*model.DcimDevice, error)
func (*NetboxClient) GetFrontPorts ¶
func (nbc *NetboxClient) GetFrontPorts() ([]*model.DcimFrontport, error)
func (*NetboxClient) GetIPAddresses ¶
func (nbc *NetboxClient) GetIPAddresses() ([]*model.IpamIpaddress, error)
func (*NetboxClient) GetInterfaces ¶
func (nbc *NetboxClient) GetInterfaces() (map[int64]*model.DcimInterface, error)
func (*NetboxClient) GetPrefixes ¶
func (nbc *NetboxClient) GetPrefixes() ([]*model.IpamPrefix, error)
func (*NetboxClient) GetRearPorts ¶
func (nbc *NetboxClient) GetRearPorts() ([]*model.DcimRearport, error)
type NetboxClientI ¶
type NetboxClientI interface { Connect() error GetDBHost() string GetDevices() ([]*dbModel.DcimDevice, error) GetInterfaces() (map[int64]*dbModel.DcimInterface, error) GetIPAddresses() ([]*dbModel.IpamIpaddress, error) GetCables() ([]*dbModel.DcimCable, error) GetPrefixes() ([]*dbModel.IpamPrefix, error) GetDcimInterfaceTypeID() int32 GetCircuitsCircuitterminationTypeID() int32 GetDcimFrontPortTypeID() int32 GetDcimRearPortTypeID() int32 GetCircuits() ([]*dbModel.CircuitsCircuit, error) GetCircuitTerminations() ([]*dbModel.CircuitsCircuittermination, error) GetFrontPorts() ([]*dbModel.DcimFrontport, error) GetRearPorts() ([]*dbModel.DcimRearport, error) }
type NetboxConnector ¶
type NetboxConnector struct {
// contains filtered or unexported fields
}
func NewConnector ¶
func (*NetboxConnector) EnrichTopology ¶
func (n *NetboxConnector) EnrichTopology(t *model.Topology) error
func (*NetboxConnector) GetLoadDuration ¶
func (n *NetboxConnector) GetLoadDuration() time.Duration
func (*NetboxConnector) GetLoadTime ¶
func (n *NetboxConnector) GetLoadTime() time.Time
func (*NetboxConnector) GetName ¶
func (n *NetboxConnector) GetName() string
func (*NetboxConnector) GetUpdateErrorCount ¶
func (n *NetboxConnector) GetUpdateErrorCount() uint64
func (*NetboxConnector) Healthy ¶
func (n *NetboxConnector) Healthy() bool
func (*NetboxConnector) InitialLoad ¶
func (n *NetboxConnector) InitialLoad() error
func (*NetboxConnector) StartRefreshRoutine ¶
func (n *NetboxConnector) StartRefreshRoutine()
Click to show internal directories.
Click to hide internal directories.