probe

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegisteredProbes = []func(){smartProbeRegister, udevProbeRegister}

RegisteredProbes contains register function of probes which we want to register

Functions

func Start

func Start(registeredProbes []func())

Start starts registration of probes present in RegisteredProbes

Types

type EventAction

type EventAction string
const (
	AttachEA EventAction = libudevwrapper.UDEV_ACTION_ADD    // AttachEA is attach disk event name
	DetachEA EventAction = libudevwrapper.UDEV_ACTION_REMOVE // DetachEA is detach disk event name
)

type ProbeEvent

type ProbeEvent struct {
	Controller *controller.Controller
}

ProbeEvent struct contain a copy of controller it will update disk resources

Jump to

Keyboard shortcuts

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