Documentation
¶
Index ¶
- Constants
- func NewRDMADevicePlugin(base *baseplugin.BasePlugin) customdeviceplugin.CustomDevicePlugin
- type RDMADevicePlugin
- func (p *RDMADevicePlugin) AllocateAssociatedDevice(ctx context.Context, resReq *pluginapi.ResourceRequest, ...) (*pluginapi.AssociatedDeviceAllocationResponse, error)
- func (p *RDMADevicePlugin) DefaultPreAllocateResourceName() string
- func (p *RDMADevicePlugin) DeviceNames() []string
- func (p *RDMADevicePlugin) GetAssociatedDeviceTopologyHints(ctx context.Context, req *pluginapi.AssociatedDeviceRequest) (*pluginapi.AssociatedDeviceHintsResponse, error)
- func (p *RDMADevicePlugin) UpdateAllocatableAssociatedDevices(ctx context.Context, ...) (*pluginapi.UpdateAllocatableAssociatedDevicesResponse, error)
Constants ¶
View Source
const RDMACustomDevicePluginName = "rdma-custom-device-plugin"
Variables ¶
This section is empty.
Functions ¶
func NewRDMADevicePlugin ¶
func NewRDMADevicePlugin(base *baseplugin.BasePlugin) customdeviceplugin.CustomDevicePlugin
Types ¶
type RDMADevicePlugin ¶
type RDMADevicePlugin struct {
*baseplugin.BasePlugin
// contains filtered or unexported fields
}
func (*RDMADevicePlugin) AllocateAssociatedDevice ¶
func (p *RDMADevicePlugin) AllocateAssociatedDevice( ctx context.Context, resReq *pluginapi.ResourceRequest, deviceReq *pluginapi.DeviceRequest, accompanyResourceName string, ) (*pluginapi.AssociatedDeviceAllocationResponse, error)
AllocateAssociatedDevice check if rdma is allocated to other containers, make sure they do not share rdma
func (*RDMADevicePlugin) DefaultPreAllocateResourceName ¶
func (p *RDMADevicePlugin) DefaultPreAllocateResourceName() string
func (*RDMADevicePlugin) DeviceNames ¶
func (p *RDMADevicePlugin) DeviceNames() []string
func (*RDMADevicePlugin) GetAssociatedDeviceTopologyHints ¶
func (p *RDMADevicePlugin) GetAssociatedDeviceTopologyHints(ctx context.Context, req *pluginapi.AssociatedDeviceRequest) (*pluginapi.AssociatedDeviceHintsResponse, error)
func (*RDMADevicePlugin) UpdateAllocatableAssociatedDevices ¶
func (p *RDMADevicePlugin) UpdateAllocatableAssociatedDevices(ctx context.Context, request *pluginapi.UpdateAllocatableAssociatedDevicesRequest) (*pluginapi.UpdateAllocatableAssociatedDevicesResponse, error)
Click to show internal directories.
Click to hide internal directories.