plugins

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FuseServerSock = pluginapi.DevicePluginPath + "fuse.sock"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockDevicePlugin

type BlockDevicePlugin struct {
	Exec utilexec.Interface
	// contains filtered or unexported fields
}

BlockDevicePlugin implements the Kubernetes device plugin API

func (*BlockDevicePlugin) Allocate

Allocate which return list of devices.

func (*BlockDevicePlugin) GetDevicePluginOptions

func (*BlockDevicePlugin) ListAndWatch

ListAndWatch lists devices and update that list according to the health status

func (*BlockDevicePlugin) Register

func (m *BlockDevicePlugin) Register(kubeletEndpoint, resourceName string) error

Register registers the device plugin for the given resourceName with Kubelet.

func (*BlockDevicePlugin) Serve

func (m *BlockDevicePlugin) Serve() error

Serve starts the gRPC server and register the device plugin to Kubelet

func (*BlockDevicePlugin) Start

func (m *BlockDevicePlugin) Start() error

Start starts the gRPC server of the device plugin

func (*BlockDevicePlugin) Stop

func (m *BlockDevicePlugin) Stop() error

Stop stops the gRPC server

type DevicePlugin

type DevicePlugin interface {
	Serve() error
	Stop() error
}

func NewBlockDevicePlugin

func NewBlockDevicePlugin() (DevicePlugin, error)

func NewFuseDevicePlugin

func NewFuseDevicePlugin(number int) DevicePlugin

type FuseDevicePlugin

type FuseDevicePlugin struct {
	// contains filtered or unexported fields
}

FuseDevicePlugin implements the Kubernetes device plugin API

func (*FuseDevicePlugin) Allocate

Allocate which return list of devices.

func (*FuseDevicePlugin) GetDevicePluginOptions

func (*FuseDevicePlugin) ListAndWatch

ListAndWatch lists devices and update that list according to the health status

func (*FuseDevicePlugin) Register

func (m *FuseDevicePlugin) Register(kubeletEndpoint, resourceName string) error

Register registers the device plugin for the given resourceName with Kubelet.

func (*FuseDevicePlugin) Serve

func (m *FuseDevicePlugin) Serve() error

Serve starts the gRPC server and register the device plugin to Kubelet

func (*FuseDevicePlugin) Start

func (m *FuseDevicePlugin) Start() error

Start starts the gRPC server of the device plugin

func (*FuseDevicePlugin) Stop

func (m *FuseDevicePlugin) Stop() error

Stop stops the gRPC server

Jump to

Keyboard shortcuts

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