plugin

package
v0.0.0-...-cdf4838 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HostVitualPath = "/data/edge/device"
)

Variables

This section is empty.

Functions

func NewFSWatcher

func NewFSWatcher(files ...string) (*fsnotify.Watcher, error)

Types

type DevicePluginServer

type DevicePluginServer struct {
	Endpoint           string
	ResourceName       string
	DevicePluginServer v1beta1.DevicePluginServer
}

func (*DevicePluginServer) Register

func (p *DevicePluginServer) Register() error

func (*DevicePluginServer) Run

func (p *DevicePluginServer) Run(stop <-chan struct{})

func (*DevicePluginServer) Serve

func (p *DevicePluginServer) Serve(stop <-chan struct{})

func (*DevicePluginServer) Wait

func (p *DevicePluginServer) Wait() error

type OrinDeviceConfig

type OrinDeviceConfig struct {
	DeviceLocator  map[v1.ResourceName]kubeapis.DeviceLocator
	Sitter         kubeapis.Sitter
	DeviceProvider provider.DeviceProvider
	NodeName       string
	ClientSet      *kubernetes.Clientset
}

type OrinDeviceGrpcServer

type OrinDeviceGrpcServer struct {
	OrinID       int
	ResourceName v1.ResourceName

	*OrinDeviceConfig
	// contains filtered or unexported fields
}

func NewOrinDeviceGrpcServer

func NewOrinDeviceGrpcServer(c *OrinDeviceConfig, resourceName string, orinID int, boardIDSets sets.Int) (*OrinDeviceGrpcServer, error)

func (*OrinDeviceGrpcServer) Allocate

func (*OrinDeviceGrpcServer) GetDevicePluginOptions

func (s *OrinDeviceGrpcServer) GetDevicePluginOptions(ctx context.Context, empty *v1beta1.Empty) (*v1beta1.DevicePluginOptions, error)

func (*OrinDeviceGrpcServer) GetPreferredAllocation

func (*OrinDeviceGrpcServer) ListAndWatch

func (*OrinDeviceGrpcServer) PreStartContainer

type OrinDevicePlugin

type OrinDevicePlugin map[string]*DevicePluginServer

func NewOrinDevicePlugin

func NewOrinDevicePlugin(c *OrinDeviceConfig) (OrinDevicePlugin, error)

func (OrinDevicePlugin) Run

func (odp OrinDevicePlugin) Run(stop <-chan struct{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL