Documentation ¶
Index ¶
- type Proxy
- func (p *Proxy) Cleanup() error
- func (p *Proxy) Get(ctx context.Context, req *podresourcesv1.GetPodResourcesRequest) (*podresourcesv1.GetPodResourcesResponse, error)
- func (p *Proxy) GetAllocatableResources(ctx context.Context, req *podresourcesv1.AllocatableResourcesRequest) (*podresourcesv1.AllocatableResourcesResponse, error)
- func (p *Proxy) List(ctx context.Context, req *podresourcesv1.ListPodResourcesRequest) (*podresourcesv1.ListPodResourcesResponse, error)
- func (p *Proxy) Serve() error
- func (p *Proxy) Setup(endpoint string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy implements PodResourcesListerServer
func New ¶
func New(cli podresourcesv1.PodResourcesListerClient, cleanup podres.CleanupFunc) *Proxy
NewV1PodResourcesServer returns a PodResourcesListerServer which lists pods provided by the PodsProvider with device information provided by the DevicesProvider
func (*Proxy) Get ¶
func (p *Proxy) Get(ctx context.Context, req *podresourcesv1.GetPodResourcesRequest) (*podresourcesv1.GetPodResourcesResponse, error)
Get returns information about the resources assigned to a specific pod
func (*Proxy) GetAllocatableResources ¶
func (p *Proxy) GetAllocatableResources(ctx context.Context, req *podresourcesv1.AllocatableResourcesRequest) (*podresourcesv1.AllocatableResourcesResponse, error)
GetAllocatableResources returns information about all the resources known by the server - this more like the capacity, not like the current amount of free resources.
func (*Proxy) List ¶
func (p *Proxy) List(ctx context.Context, req *podresourcesv1.ListPodResourcesRequest) (*podresourcesv1.ListPodResourcesResponse, error)
List returns information about the resources assigned to pods on the node
Click to show internal directories.
Click to hide internal directories.