Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeHandler ¶
type FakeHandler interface { Handler CreateFakePod(podName string, namespace string, resourceName string, deviceIds []string) }
FakeHandler interface extends the Handler interface to provide additional testing methods.
func NewFakeHandler ¶
func NewFakeHandler() FakeHandler
NewFakeHandler returns an implementation of the FakeHandler interface.
type Handler ¶
type Handler interface {
GetPodResources() (map[string]api.PodResources, error)
}
Handler is the device plugins interface to the K8s pod resources API. The interface exists for testing purposes, allowing unit tests to test against a fake API.
func NewHandler ¶
func NewHandler() Handler
NewHandler returns an implementation of the Handler interface.
Click to show internal directories.
Click to hide internal directories.