Documentation
¶
Overview ¶
Package kobject provides access to Linux kobject userspace events.
Userspace events occur whenever a kobject's state changes. As an example, events are triggered whenever a USB device is added or removed from a system, or whenever a virtual network interface is added or removed.
For more information on kobjects, please see:
Index ¶
Constants ¶
View Source
const ( Add = "add" Bind = "bind" Remove = "remove" Change = "change" Move = "move" Online = "online" Offline = "offline" Unbind = "unbind" )
Possible Actions which trigger an Event.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A Client provides access to Linux kobject userspace events. Clients are safe for concurrent use.
type Event ¶
type Event struct { // Fields which are present in all events. Action Action DevicePath string Subsystem string Sequence int // Values contains arbitrary key/value pairs which are not present in // all Events. Values map[string]string }
An Event is a userspace event in response to a state change of a kobject.
Click to show internal directories.
Click to hide internal directories.