Documentation ¶
Index ¶
- func NewDummyAllocator(_ *config.Config, _ device.GPUTree, _ kubernetes.Interface) allocator.GPUTopoService
- type DummyAllocator
- func (ta *DummyAllocator) Allocate(_ context.Context, reqs *pluginapi.AllocateRequest) (*pluginapi.AllocateResponse, error)
- func (ta *DummyAllocator) GetDevicePluginOptions(ctx context.Context, e *pluginapi.Empty) (*pluginapi.DevicePluginOptions, error)
- func (ta *DummyAllocator) ListAndWatch(e *pluginapi.Empty, s pluginapi.DevicePlugin_ListAndWatchServer) error
- func (ta *DummyAllocator) ListAndWatchWithResourceName(resourceName string, e *pluginapi.Empty, ...) error
- func (ta *DummyAllocator) PreStartContainer(ctx context.Context, req *pluginapi.PreStartContainerRequest) (*pluginapi.PreStartContainerResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDummyAllocator ¶
func NewDummyAllocator(_ *config.Config, _ device.GPUTree, _ kubernetes.Interface) allocator.GPUTopoService
NewDummyAllocator returns a new DummyAllocator
Types ¶
type DummyAllocator ¶
type DummyAllocator struct { }
DummyAllocator is a struct{}
func (*DummyAllocator) Allocate ¶
func (ta *DummyAllocator) Allocate(_ context.Context, reqs *pluginapi.AllocateRequest) (*pluginapi.AllocateResponse, error)
Allocate returns /dev/fuse for dummy device
func (*DummyAllocator) GetDevicePluginOptions ¶
func (ta *DummyAllocator) GetDevicePluginOptions(ctx context.Context, e *pluginapi.Empty) (*pluginapi.DevicePluginOptions, error)
GetDevicePluginOptions returns empty DevicePluginOptions
func (*DummyAllocator) ListAndWatch ¶
func (ta *DummyAllocator) ListAndWatch(e *pluginapi.Empty, s pluginapi.DevicePlugin_ListAndWatchServer) error
ListAndWatch not implement
func (*DummyAllocator) ListAndWatchWithResourceName ¶
func (ta *DummyAllocator) ListAndWatchWithResourceName(resourceName string, e *pluginapi.Empty, s pluginapi.DevicePlugin_ListAndWatchServer) error
ListAndWatchWithResourceName sends dummy device back to server
func (*DummyAllocator) PreStartContainer ¶
func (ta *DummyAllocator) PreStartContainer(ctx context.Context, req *pluginapi.PreStartContainerRequest) (*pluginapi.PreStartContainerResponse, error)
PreStartContainer returns empty PreStartContainerResponse
Click to show internal directories.
Click to hide internal directories.