discovery

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArpDiscoverySource     device.DiscoverySource = "ARP"
	PingDiscoverySource    device.DiscoverySource = "PING"
	SNMPDiscoverySource    device.DiscoverySource = "SNMP"
	SNMPArpDiscoverySource device.DiscoverySource = "SNMP_ARP"
)

Variables

View Source
var ErrIPv6ExcludedFromDiscovery = IPv6ExcludedFromDiscovery{}
View Source
var ErrNoDeviceDiscovered = NoDeviceDiscoveredError{}

Functions

func BuildAddrScannerFunc

func BuildAddrScannerFunc(funcs []scanfunc) func(netip.Addr) (device.EventDeviceDiscovered, error)

func BuildAddrScanners

func BuildAddrScanners(cfg *config.Discovery) []scanfunc

func BuildNetworkScanFunc

func BuildNetworkScanFunc(q chan netip.Addr, status *string) func(network.Network) (string, error)

func NetworkRescanFilter

func NetworkRescanFilter(cfg *config.Discovery) network.NetworkFilter

func SnmpArpTableRescanFilter

func SnmpArpTableRescanFilter(cfg *config.DiscoverySNMPConfig) device.DeviceFilter

func SnmpInterfaceRescanFilter

func SnmpInterfaceRescanFilter(cfg *config.DiscoverySNMPConfig) device.DeviceFilter

Types

type DiscoverDevicesFromSNMPDevice

type DiscoverDevicesFromSNMPDevice struct {
	device.Device
}

type DiscoverNetworksFromSNMPDevice

type DiscoverNetworksFromSNMPDevice struct {
	device.Device
}

type IPv6ExcludedFromDiscovery

type IPv6ExcludedFromDiscovery struct {
	Network network.Network
}

func (IPv6ExcludedFromDiscovery) Error

func (IPv6ExcludedFromDiscovery) Is

func (e IPv6ExcludedFromDiscovery) Is(target error) bool

type NoDeviceDiscoveredError

type NoDeviceDiscoveredError struct {
	Addr netip.Addr
}

func NoDeviceDiscovered

func NoDeviceDiscovered(addr netip.Addr) NoDeviceDiscoveredError

func (NoDeviceDiscoveredError) Error

func (e NoDeviceDiscoveredError) Error() string

func (NoDeviceDiscoveredError) Is

func (e NoDeviceDiscoveredError) Is(target error) bool

Jump to

Keyboard shortcuts

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