resourcesapi

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL