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

package podresources

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


Package Files

client.go constants.go server.go


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

func GetClient Uses

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 Uses

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

type DevicesProvider Uses

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

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

type PodsProvider Uses

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

PodsProvider knows how to provide the pods admitted by the node


v1alpha1Package v1alpha1 is a generated protocol buffer package.

Package podresources imports 7 packages (graph) and is imported by 5 packages. Updated 2019-08-27. Refresh now. Tools for package owners.