kutokenmanager

package
v0.0.0-...-232fc37 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGPUID

func CreateGPUID(path string)

func GetFileParamUint

func GetFileParamUint(Path, File string) uint64

func InsmodGpuMod

func InsmodGpuMod()

func PathExists

func PathExists(path string) bool

func RmmodGpuMod

func RmmodGpuMod()

Types

type KuTokenManager

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

func NewKuTokenManager

func NewKuTokenManager(tokenName string, tokenSize int, socketFile string) *KuTokenManager

func (*KuTokenManager) Allocate

Allocate which return list of devices.

func (*KuTokenManager) GetDevicePluginOptions

func (ktm *KuTokenManager) GetDevicePluginOptions(context.Context, *pluginapi.Empty) (*pluginapi.DevicePluginOptions, error)

GetDevicePluginOptions is unimplemented for this plugin

func (*KuTokenManager) GetPreferredAllocation

GetPreferredAllocation is unimplemented for this plugin

func (*KuTokenManager) ListAndWatch

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

func (*KuTokenManager) PreStartContainer

PreStartContainer is unimplemented for this plugin

func (*KuTokenManager) Register

func (ktm *KuTokenManager) Register() error

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

func (*KuTokenManager) Run

func (ktm *KuTokenManager) Run(stopCh, newPodCh chan string)

func (*KuTokenManager) Start

func (ktm *KuTokenManager) Start() error

Serve starts the gRPC server of the device plugin.

func (*KuTokenManager) Stop

func (ktm *KuTokenManager) 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