mig

package
v0.0.0-...-12e0a72 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	NumCallsDeleteMigResource     uint
	NumCallsCreateMigResources    uint
	NumCallsGetMigDeviceResources uint

	ReturnedMigDeviceResources gpu.DeviceList
	ReturnedError              gpu.Error
	// contains filtered or unexported fields
}

Todo: use some tool for auto-generating mocks

func (*Client) CreateMigDevices

func (m *Client) CreateMigDevices(_ context.Context, _ mig.ProfileList) (mig.ProfileList, error)

func (*Client) DeleteAllExcept

func (m *Client) DeleteAllExcept(_ context.Context, resources gpu.DeviceList) error

func (*Client) DeleteMigDevice

func (m *Client) DeleteMigDevice(_ context.Context, _ gpu.Device) gpu.Error

func (*Client) GetAllocatableMigDevices

func (m *Client) GetAllocatableMigDevices(ctx context.Context) (gpu.DeviceList, gpu.Error)

func (*Client) GetMigDevices

func (m *Client) GetMigDevices(_ context.Context) (gpu.DeviceList, gpu.Error)

func (*Client) GetUsedMigDevices

func (m *Client) GetUsedMigDevices(ctx context.Context) (gpu.DeviceList, gpu.Error)

func (*Client) Reset

func (m *Client) Reset()

Jump to

Keyboard shortcuts

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