kubelet

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(endpoints []string, getClientFunc podresources.GetClientFunc) (podresourcesserver.DevicesProvider, error)

Types

type Provider

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

Provider provide devices resource by kubelet v1 podResources api

func (*Provider) GetAllocatableDevices

func (p *Provider) GetAllocatableDevices() []*podresourcesapi.ContainerDevices

func (*Provider) GetDevices

func (p *Provider) GetDevices() []*podresourcesapi.PodResources

Jump to

Keyboard shortcuts

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