crawler

package
v0.0.0-...-1f06296 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: GPL-3.0, GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BASE_DEVPATH = "/sys/devices"
)

Variables

This section is empty.

Functions

func ExistingDevices

func ExistingDevices(queue chan Device, errors chan error, matcher netlink.Matcher) chan struct{}

ExistingDevices return all plugged devices matched by the matcher All uevent files inside /sys/devices is crawled to match right env values

Types

type Device

type Device struct {
	KObj string
	Env  map[string]string
}

Jump to

Keyboard shortcuts

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