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