Documentation
¶
Index ¶
- type FPGAManager
- func (a *FPGAManager) Assign(UUID string, containerID string) error
- func (a *FPGAManager) Check() error
- func (a *FPGAManager) Discover() error
- func (a *FPGAManager) Dump() error
- func (a *FPGAManager) GetAndAssignAvailableFPGAs(numFPGAs int, containerID string) ([]FPGASpecs, error)
- func (a *FPGAManager) GetAvailableFPGAs(numFPGAs int) ([]FPGASpecs, error)
- func (a *FPGAManager) GetFPGASpecsList() []FPGASpecs
- func (a *FPGAManager) Init() error
- func (a *FPGAManager) Release(containerID string) error
- func (a *FPGAManager) Shutdown() error
- type FPGAManagerInterface
- type FPGASpecs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FPGAManager ¶
type FPGAManager struct { FPGASpecsList []FPGASpecs FPGASpecsMutex sync.Mutex Vendor string Ctx context.Context }
func (*FPGAManager) Check ¶
func (a *FPGAManager) Check() error
func (*FPGAManager) Discover ¶
func (a *FPGAManager) Discover() error
Discover implements the Discover function of the FPGAManager interface
func (*FPGAManager) Dump ¶
func (a *FPGAManager) Dump() error
dump the FPGASpecsList into a JSON file
func (*FPGAManager) GetAndAssignAvailableFPGAs ¶
func (a *FPGAManager) GetAndAssignAvailableFPGAs(numFPGAs int, containerID string) ([]FPGASpecs, error)
func (*FPGAManager) GetAvailableFPGAs ¶
func (a *FPGAManager) GetAvailableFPGAs(numFPGAs int) ([]FPGASpecs, error)
func (*FPGAManager) GetFPGASpecsList ¶
func (a *FPGAManager) GetFPGASpecsList() []FPGASpecs
func (*FPGAManager) Init ¶
func (a *FPGAManager) Init() error
func (*FPGAManager) Release ¶
func (a *FPGAManager) Release(containerID string) error
func (*FPGAManager) Shutdown ¶
func (a *FPGAManager) Shutdown() error
type FPGAManagerInterface ¶
type FPGAManagerInterface interface { Init() error Shutdown() error GetFPGASpecsList() []FPGASpecs Dump() error Discover() error Check() error GetAvailableFPGAs(numFPGAs int) ([]FPGASpecs, error) Assign(UUID string, containerID string) error Release(UUID string) error GetAndAssignAvailableFPGAs(numFPGAs int, containerID string) ([]FPGASpecs, error) }
Click to show internal directories.
Click to hide internal directories.