deviceplugin

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostPathDevicePlugin

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

NewHostPathDevicePlugin implements the Kubernetes device plugin API

func NewHostPathDevicePlugin

func NewHostPathDevicePlugin(cfg config.HostPathDevicePluginConfig) (*HostPathDevicePlugin, error)

NewHostPathDevicePlugin returns an initialized NewHostPathDevicePlugin

func (*HostPathDevicePlugin) Allocate

Allocate which return list of devices.

func (*HostPathDevicePlugin) GetDevicePluginOptions

func (*HostPathDevicePlugin) ListAndWatch

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

func (*HostPathDevicePlugin) Register

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

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

func (*HostPathDevicePlugin) Serve

func (m *HostPathDevicePlugin) Serve() error

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

func (*HostPathDevicePlugin) Start

func (m *HostPathDevicePlugin) Start() error

Start starts the gRPC server of the device plugin

func (*HostPathDevicePlugin) Stop

func (m *HostPathDevicePlugin) Stop() error

Stop stops the gRPC server

type Runner

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

func MustNewRunner

func MustNewRunner(
	cfg config.HostPathDevicePluginConfig,
) *Runner

func (*Runner) Run

func (r *Runner) Run()

Jump to

Keyboard shortcuts

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