deviceplugin

package
v1.4.0-policy Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 15 Imported by: 6 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

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

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

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() error

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