crawler

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func ExistingDevices

func ExistingDevices(doneCh <-chan struct{}, errs chan error, matcher netlink.Matcher) chan Device

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