indexers

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServiceLister  listersv1.ServiceLister
	EndpointLister listersv1.EndpointsLister
	NodeLister     listersv1.NodeLister
)

Functions

func GetNodeByPodIP

func GetNodeByPodIP(podIp string) (string, error)

Get the name of the node where the pod is located based on podIp

func GetNodeIPByName

func GetNodeIPByName(name string) (string, error)

Get the internalIp of the node based on the node name

func GetServiceByClusterIP added in v0.8.0

func GetServiceByClusterIP(clusterIp string) (*v1.Service, error)

func InitCache

func InitCache(path string, stopCh chan struct{})

func MetaNameIndexFunc

func MetaNameIndexFunc(obj interface{}) ([]string, error)

func PodIPKeyFunc

func PodIPKeyFunc(obj interface{}) ([]string, error)

Index pods by podIp

func ServiceIPKeyFunc added in v0.8.0

func ServiceIPKeyFunc(obj interface{}) ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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