Documentation ¶
Index ¶
- type Client
- func (m *Client) CreateMigDevices(_ context.Context, _ mig.ProfileList) (mig.ProfileList, error)
- func (m *Client) DeleteAllExcept(_ context.Context, resources gpu.DeviceList) error
- func (m *Client) DeleteMigDevice(_ context.Context, _ gpu.Device) gpu.Error
- func (m *Client) GetAllocatableMigDevices(ctx context.Context) (gpu.DeviceList, gpu.Error)
- func (m *Client) GetMigDevices(_ context.Context) (gpu.DeviceList, gpu.Error)
- func (m *Client) GetUsedMigDevices(ctx context.Context) (gpu.DeviceList, gpu.Error)
- func (m *Client) Reset()
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 (*Client) DeleteMigDevice ¶
func (*Client) GetAllocatableMigDevices ¶
func (*Client) GetMigDevices ¶
func (*Client) GetUsedMigDevices ¶
Click to show internal directories.
Click to hide internal directories.