deviceplugin

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ResourceNameSGX is resource name registered to kubelet.
	ResourceNameSGX = vendor + "/sgx_epc_MiB"

	ServerSock = devicepluginapi.DevicePluginPath + "sgx.sock"

	STABLE_RUNNING_SECONDS = 3600
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SGXDevicePlugin

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

SGXDevicePlugin implements the Kubernetes device plugin API: DevicePluginServer.

func NewSGXDevicePlugin

func NewSGXDevicePlugin() (*SGXDevicePlugin, error)

NewSGXDevicePlugin returns an initialized SGXDevicePlugin

func (*SGXDevicePlugin) Allocate

Allocate which return list of devices. Allocate implements DevicePluginServer interface.

func (*SGXDevicePlugin) GetDevicePluginOptions

GetDevicePluginOptions implements DevicePluginServer interface. We just do nothing here.

func (*SGXDevicePlugin) ListAndWatch

ListAndWatch lists devices and update that list according to the health status. ListAndWatch implements DevicePluginServer interface.

func (*SGXDevicePlugin) PreStartContainer

PreStartContainer implements DevicePluginServer interface. We just do nothing here.

func (*SGXDevicePlugin) Register

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

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

func (*SGXDevicePlugin) Serve

func (m *SGXDevicePlugin) Serve() error

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

func (*SGXDevicePlugin) Start

func (m *SGXDevicePlugin) Start() error

Start starts the gRPC server of the device plugin

func (*SGXDevicePlugin) Stop

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