types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RdmaDeviceSpec

type RdmaDeviceSpec interface {
	Get(string) []*pluginapi.DeviceSpec
}

RdmaDeviceSpec used to find the rdma devices

type ResourceManager

type ResourceManager interface {
	ReadConfig() error
	ValidateConfigs() error
	InitServers() error
	StartAllServers() error
	StopAllServers() error
	RestartAllServers() error
}

ResourceManager manger multi plugins

type ResourceServer

type ResourceServer interface {
	pluginapi.DevicePluginServer
	Start() error
	Stop() error
	Restart() error
	Watch() error
}

ResourceServer is gRPC server implements K8s device plugin api

type ResourceServerPort

type ResourceServerPort interface {
	GetServer() *grpc.Server
	CreateServer()
	DeleteServer()
	Listen(string, string) (net.Listener, error)
	Serve(net.Listener)
	Stop()
	Close(*grpc.ClientConn)
	Register(pluginapi.RegistrationClient, *pluginapi.RegisterRequest) error
	Dial(string, time.Duration) (*grpc.ClientConn, error)
}

ResourceServerPort to connect the resources server to k8s

type SignalNotifier

type SignalNotifier interface {
	Notify() chan os.Signal
}

NotifierFactory register signals to listen for

type UserConfig

type UserConfig struct {
	ResourceName string   `json:"resourceName"`
	RdmaHcaMax   int      `json:"rdmaHcaMax"`
	Devices      []string `json:"devices"`
}

UserConfig configuration for device plugin

type UserConfigList

type UserConfigList struct {
	ConfigList []UserConfig `json:"configList"`
}

UserConfigList config list for servers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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