sunfish

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 ProcessorRequest struct {
	RequestCount int64  `json:"@Redfish.RequestCount"`
	ProcType     string `json:"ProcessorType"`
	Model        string `json:"Model"`
}

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

Jump to

Keyboard shortcuts

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