Documentation
¶
Index ¶
- type Server
- func (s *Server) Allocate(ctx context.Context, req *v1beta1.AllocateRequest) (*v1beta1.AllocateResponse, error)
- func (s *Server) GetDevicePluginOptions(ctx context.Context, _ *v1beta1.Empty) (*v1beta1.DevicePluginOptions, error)
- func (s *Server) GetPreferredAllocation(ctx context.Context, req *v1beta1.PreferredAllocationRequest) (*v1beta1.PreferredAllocationResponse, error)
- func (s *Server) ListAndWatch(_ *v1beta1.Empty, lws v1beta1.DevicePlugin_ListAndWatchServer) error
- func (s *Server) PreStartContainer(ctx context.Context, req *v1beta1.PreStartContainerRequest) (*v1beta1.PreStartContainerResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct{}
func (*Server) Allocate ¶
func (s *Server) Allocate( ctx context.Context, req *v1beta1.AllocateRequest, ) (*v1beta1.AllocateResponse, error)
of the steps to make the Device available in the container.
func (*Server) GetDevicePluginOptions ¶
func (s *Server) GetDevicePluginOptions( ctx context.Context, _ *v1beta1.Empty, ) (*v1beta1.DevicePluginOptions, error)
Manager.
func (*Server) GetPreferredAllocation ¶
func (s *Server) GetPreferredAllocation( ctx context.Context, req *v1beta1.PreferredAllocationRequest, ) (*v1beta1.PreferredAllocationResponse, error)
GetPreferredAllocation returns a preferred set of devices to allocate from a list of available ones. The resulting preferred allocation is not guaranteed to be the allocation ultimately performed by the devicemanager. It is only designed to help the devicemanager make a more informed allocation decision when possible.
func (*Server) ListAndWatch ¶
func (s *Server) ListAndWatch( _ *v1beta1.Empty, lws v1beta1.DevicePlugin_ListAndWatchServer, ) error
returns the new list.
func (*Server) PreStartContainer ¶
func (s *Server) PreStartContainer( ctx context.Context, req *v1beta1.PreStartContainerRequest, ) (*v1beta1.PreStartContainerResponse, error)
such as resetting the device before making devices available to the container.
Click to show internal directories.
Click to hide internal directories.