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
Click to show internal directories.
Click to hide internal directories.