Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2022 v0.0.1 Nov 10, 2022 Changes in this version + type Definer interface + HotplugDeviceDetected func(di *HotplugDeviceInfo) (*ProposedSlot, error) + type HandledByGadgetPredicate interface + HandledByGadget func(di *HotplugDeviceInfo, slot *snap.SlotInfo) bool + type HotplugDeviceInfo struct + func EnumerateExistingDevices() (devices []*HotplugDeviceInfo, parseErrors []error, fatalError error) + func NewHotplugDeviceInfo(env map[string]string) (*HotplugDeviceInfo, error) + func (h *HotplugDeviceInfo) Attribute(name string) (string, bool) + func (h *HotplugDeviceInfo) DeviceName() string + func (h *HotplugDeviceInfo) DevicePath() string + func (h *HotplugDeviceInfo) DeviceType() string + func (h *HotplugDeviceInfo) Major() string + func (h *HotplugDeviceInfo) Minor() string + func (h *HotplugDeviceInfo) ShortString() string + func (h *HotplugDeviceInfo) String() string + func (h *HotplugDeviceInfo) Subsystem() string + type HotplugKeyHandler interface + HotplugKey func(di *HotplugDeviceInfo) (snap.HotplugKey, error) + type ProposedSlot struct + Attrs map[string]interface{} + Label string + Name string + func (slot *ProposedSlot) Clean() (*ProposedSlot, error)