devices

package
v1.0.57 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoDeviceFound = errors.New("no device found")
)

Functions

func NewKubeletClient

func NewKubeletClient() (*kubeletClient, error)

Types

type DeviceManager

type DeviceManager interface {
	Init(initialDevices int64)
	GetDevices() []*v1beta1.Device
}

type IDManager

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

func NewIDManager

func NewIDManager(initialSize int64) *IDManager

func (*IDManager) GetDevices

func (m *IDManager) GetDevices() []*v1beta1.Device

func (*IDManager) Init

func (m *IDManager) Init(initialDevices int64)

type PodDetails

type PodDetails string

func NewPodDetails

func NewPodDetails(name string, namespace string) PodDetails

func (PodDetails) Details

func (p PodDetails) Details() (string, string)

Jump to

Keyboard shortcuts

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