urma

package
v0.0.0-...-a4cbc98 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocateDevice

func AllocateDevice(name string) (urmasdk.DeviceInfo, error)

func GetSharedDevice

func GetSharedDevice() ([]urmasdk.Device, error)

Types

type MockUrma

type MockUrma struct {
	UbsGetSharedDevicePatches *gomonkey.Patches
	UbsAllocateDevicePatches  *gomonkey.Patches

	ResetFunc []func()
}

func (*MockUrma) MockUbsAllocateDevice

func (m *MockUrma) MockUbsAllocateDevice(name string)

func (*MockUrma) MockUbsGetSharedDevice

func (m *MockUrma) MockUbsGetSharedDevice(name string)

func (*MockUrma) Reset

func (m *MockUrma) Reset()

Source Files

  • mock_urma.go
  • urma_device.go

Jump to

Keyboard shortcuts

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