Documentation
¶
Index ¶
- func Register(name string, setup Setup)
- type Device
- type Manager
- func (m *Manager) FindDevices(devs ...*pb.CDIDevice) ([]string, error)
- func (m *Manager) GetDevice(name string) Device
- func (m *Manager) InjectDevices(spec *specs.Spec, devs ...*pb.CDIDevice) error
- func (m *Manager) ListDevices() []Device
- func (m *Manager) MatchDevices(dev *pb.CDIDevice) []string
- func (m *Manager) OnDemandInstaller(name string) (func(context.Context) error, bool)
- func (m *Manager) Refresh() error
- type Setup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) FindDevices ¶
func (*Manager) InjectDevices ¶
func (*Manager) ListDevices ¶
func (*Manager) MatchDevices ¶ added in v0.35.0
MatchDevices returns the registered devices that the request resolves to, including matches by class annotation. Unlike FindDevices it does not fail or warn when nothing matches.
func (*Manager) OnDemandInstaller ¶
Click to show internal directories.
Click to hide internal directories.