deviceplugin

package
v1.8.12 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 16 Imported by: 5

Documentation

Index

Constants

View Source
const (
	ENITypeENI    = "eni"
	ENITypeMember = "member"
	ENITypeERDMA  = "erdma"

	// ENIResName aliyun eni resource name in kubernetes container resource
	ENIResName       = "aliyun/eni"
	MemberENIResName = "aliyun/member-eni"
	ERDMAResName     = "aliyun/erdma"
)

define resource name

Variables

This section is empty.

Functions

This section is empty.

Types

type ENIDevicePlugin added in v1.1.0

type ENIDevicePlugin struct {
	sync.Locker
	// contains filtered or unexported fields
}

ENIDevicePlugin implements the Kubernetes device plugin API

func NewENIDevicePlugin added in v1.1.0

func NewENIDevicePlugin(count int, eniType string) *ENIDevicePlugin

NewENIDevicePlugin returns an initialized ENIDevicePlugin

func (*ENIDevicePlugin) Allocate added in v1.1.0

Allocate which return list of devices.

func (*ENIDevicePlugin) GetDevicePluginOptions added in v1.1.0

GetDevicePluginOptions return device plugin options

func (*ENIDevicePlugin) GetPreferredAllocation added in v1.1.0

func (*ENIDevicePlugin) ListAndWatch added in v1.1.0

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

func (*ENIDevicePlugin) PreStartContainer added in v1.1.0

PreStartContainer return container prestart hook

func (*ENIDevicePlugin) Register added in v1.1.0

func (m *ENIDevicePlugin) Register(request pluginapi.RegisterRequest) error

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

func (*ENIDevicePlugin) Serve added in v1.1.0

func (m *ENIDevicePlugin) Serve()

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

func (*ENIDevicePlugin) Start added in v1.1.0

func (m *ENIDevicePlugin) Start() error

Start starts the gRPC server of the device plugin

func (*ENIDevicePlugin) Stop added in v1.1.0

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