plugin

package
v0.0.0-...-668f54c Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CpuDevicePlugin

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

CpuDevicePlugin implements the Kubernetes device plugin API

func NewCpuDevicePlugin

func NewCpuDevicePlugin(resourceName string, socket string) *CpuDevicePlugin

NewCpuDevicePlugin returns an initialized CpuDevicePlugin

func (*CpuDevicePlugin) Allocate

Allocate which return list of devices.

func (*CpuDevicePlugin) GetDevicePluginOptions

GetDevicePluginOptions returns the values of the optional settings for this plugin

func (*CpuDevicePlugin) GetPreferredAllocation

GetPreferredAllocation returns the preferred allocation from the set of devices specified in the request

func (*CpuDevicePlugin) ListAndWatch

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

func (*CpuDevicePlugin) PreStartContainer

PreStartContainer is unimplemented for this plugin

func (*CpuDevicePlugin) Register

func (m *CpuDevicePlugin) Register() error

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

func (*CpuDevicePlugin) Serve

func (m *CpuDevicePlugin) Serve() error

Serve starts the gRPC server of the device plugin.

func (*CpuDevicePlugin) Start

func (m *CpuDevicePlugin) Start() error

Start starts the gRPC server, registers the device plugin with the Kubelet, and starts the device healthchecks.

func (*CpuDevicePlugin) Stop

func (m *CpuDevicePlugin) 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