Documentation
¶
Index ¶
- Constants
- type CompositionRequest
- type ProcessorRequest
- type ProcessorType
- type Processors
- type SunfishClient
- func (s *SunfishClient) AddResource(instance *v1alpha1.ComposableResource) (string, string, error)
- func (s *SunfishClient) CheckResource(instance *v1alpha1.ComposableResource) error
- func (s *SunfishClient) GetResources() (deviceInfoList []cdi.DeviceInfo, err error)
- func (s *SunfishClient) RemoveResource(instance *v1alpha1.ComposableResource) error
- type SupportedGPU
Constants ¶
View Source
const ( V100 = "Tesla-V100-PCIE-16GB" A10040G = "NVIDIA-A100-PCIE-40GB" A10080G = "NVIDIA-A100-80GB-PCIe" )
View Source
const (
TypeGpu = "GPU"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompositionRequest ¶
type CompositionRequest struct {
Name string `json:"Name"`
Procs Processors `json:"Processors"`
}
type ProcessorRequest ¶
type ProcessorType ¶
type ProcessorType string
type Processors ¶
type Processors struct {
Members []ProcessorRequest `json:"Members"`
}
type SunfishClient ¶
type SunfishClient struct {
// contains filtered or unexported fields
}
func NewSunfishClient ¶
func NewSunfishClient() *SunfishClient
func (*SunfishClient) AddResource ¶
func (s *SunfishClient) AddResource(instance *v1alpha1.ComposableResource) (string, string, error)
func (*SunfishClient) CheckResource ¶
func (s *SunfishClient) CheckResource(instance *v1alpha1.ComposableResource) error
func (*SunfishClient) GetResources ¶
func (s *SunfishClient) GetResources() (deviceInfoList []cdi.DeviceInfo, err error)
func (*SunfishClient) RemoveResource ¶
func (s *SunfishClient) RemoveResource(instance *v1alpha1.ComposableResource) error
type SupportedGPU ¶
type SupportedGPU string
Click to show internal directories.
Click to hide internal directories.