podresources

package
v0.5.15 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndpointAutoDiscoveryPodResourcesClient added in v0.5.9

func EndpointAutoDiscoveryPodResourcesClient(endpoints []string, getClientFunc GetClientFunc) (*podResourcesClient,
	chan struct{},
)

EndpointAutoDiscoveryPodResourcesClient returns a podResourcesClient and a channel that can be used to close the connection.

func GetV1Client

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

GetV1Client returns a client for the PodResourcesLister grpc service, and it is referring from upstream k8s's GetV1Client, which is also an implement of GetClientFunc.

Types

type GetClientFunc

type GetClientFunc func(socket string, connectionTimeout time.Duration, maxMsgSize int) (v1.PodResourcesListerClient, *grpc.ClientConn, error)

GetClientFunc is a function to get a client for the PodResourcesLister grpc service.

Jump to

Keyboard shortcuts

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