Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocatableDevices ¶
type AllocatableDevices nvdevicelib.AllocatableDevices
AllocatableDevices is an alias of nvdevicelib.AllocatableDevices
func (AllocatableDevices) ToNamedResourceInstances ¶
func (devices AllocatableDevices) ToNamedResourceInstances() []NamedResourcesInstance
ToNamedResourceInstances converts a list of AllocatableDevices to a list of NamedResourcesInstances.
func (AllocatableDevices) ToNamedResourcesResourceModel ¶
func (devices AllocatableDevices) ToNamedResourcesResourceModel() ResourceModel
ToNamedResourcesResourceModel converts a list of AllocatableDevices to a NamedResources ResourceModel.
type GpuInfo ¶
type GpuInfo nvdevicelib.GpuInfo
GpuInfo is an alias of nvdevicelib.GpuInfo
func (*GpuInfo) ToNamedResourcesInstance ¶
func (gpu *GpuInfo) ToNamedResourcesInstance() *NamedResourcesInstance
ToNamedResourcesInstance converts a GpuInfo object to a NamedResourcesInstance.
type NamedResourcesAttribute ¶
type NamedResourcesAttribute = resourceapi.NamedResourcesAttribute
NamedResourcesAttribute is an alias of resourceapi.NamedResourcesAttribute
type NamedResourcesAttributeValue ¶
type NamedResourcesAttributeValue = resourceapi.NamedResourcesAttributeValue
NamedResourcesAttributeValue is an alias of resourceapi.NamedResourcesAttributeValue
type NamedResourcesInstance ¶
type NamedResourcesInstance = resourceapi.NamedResourcesInstance
NamedResourcesInstance is an alias of resourceapi.NamedResourcesInstance
type NamedResourcesResources ¶
type NamedResourcesResources = resourceapi.NamedResourcesResources
NamedResourcesResources is an alias of resourceapi.NamedResourcesResources
type PerGpuAllocatableDevices ¶
type PerGpuAllocatableDevices nvdevicelib.PerGpuAllocatableDevices
PerGpuAllocatableDevices is an alias of nvdevicelib.PerGpuAllocatableDevices
func (PerGpuAllocatableDevices) ToNamedResourceInstances ¶
func (devices PerGpuAllocatableDevices) ToNamedResourceInstances() []NamedResourcesInstance
ToNamedResourceInstances converts a list of PerGpuAllocatableDevices to a list of NamedResourcesInstances.
func (PerGpuAllocatableDevices) ToNamedResourcesResourceModel ¶
func (devices PerGpuAllocatableDevices) ToNamedResourcesResourceModel() ResourceModel
ToNamedResourcesResourceModel converts a list of PerGpuAllocatableDevices to a NamedResources ResourceModel.
type ResourceModel ¶
type ResourceModel = resourceapi.ResourceModel
ResourceModel is an alias of resourceapi.ResourceModel