Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device interface {
// New creates the device and initializes it
New() error
// Start logically initializes the device
Start() error
// UpdateNodeInfo - updates a node info structure by writing capacity, allocatable, used, scorer
UpdateNodeInfo(*types.NodeInfo) error
// Allocate attempts to allocate the devices
// Returns list of Mounts, and list of Devices to use
// Returns an error on failure.
Allocate(*types.PodInfo, *types.ContainerInfo) ([]Mount, []string, map[string]string, error)
// GetName returns the name of a device
GetName() string
}
Device is a device to use
func CreateDeviceFromPlugin ¶
CreateDeviceFromPlugin returns a device from a plugin name
Click to show internal directories.
Click to hide internal directories.