netbox

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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) GetCables

func (nbc *NetboxClient) GetCables() ([]*model.DcimCable, 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 NewConnector(host string, port uint, user string, password string, dbName string, useTLS bool, caCertPath string, logDBQueries bool) *NetboxConnector

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()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL