kubernetesk8s.io/kubernetes/pkg/kubelet/apis/podresources Index | Files | Directories

package podresources

import "k8s.io/kubernetes/pkg/kubelet/apis/podresources"

Index

Constants

const (
	// Socket is the name of the podresources server socket
	Socket = "kubelet"
)

Functions

func GetClient

func GetClient(socket string, connectionTimeout time.Duration, maxMsgSize int) (podresourcesapi.PodResourcesListerClient, *grpc.ClientConn, error)

GetClient returns a client for the PodResourcesLister grpc service

func NewPodResourcesServer

func NewPodResourcesServer(podsProvider PodsProvider, devicesProvider DevicesProvider) v1alpha1.PodResourcesListerServer

NewPodResourcesServer returns a PodResourcesListerServer which lists pods provided by the PodsProvider with device information provided by the DevicesProvider

Types

type DevicesProvider

type DevicesProvider interface {
	GetDevices(podUID, containerName string) []*v1alpha1.ContainerDevices
}

DevicesProvider knows how to provide the devices used by the given container

type PodsProvider

type PodsProvider interface {
	GetPods() []*v1.Pod
}

PodsProvider knows how to provide the pods admitted by the node

Source Files

client.go constants.go server.go

Directories

PathSynopsis
pkg/kubelet/apis/podresources/v1alpha1Package v1alpha1 is a generated protocol buffer package.
Version
v1.14.1
Published
Apr 5, 2019
Platform
js/wasm
Imports
7 packages
Last checked
12 seconds ago

Tools for package owners.