util

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchPublicIP

func FetchPublicIP() string

func GetInterfaceIP

func GetInterfaceIP(name string) (net.IP, error)

GetInterfaceIP get net interface ipv4 address

func GetPodsSelector

func GetPodsSelector(svc *v1.Service) labels.Selector

GetPodsSelector use the selector to obtain the backend pods bound to the service

func IsNotFoundError

func IsNotFoundError(err error) bool

func SplitServiceKey

func SplitServiceKey(key string) (name, namespace string)

SplitServiceKey splits service name

Types

This section is empty.

Jump to

Keyboard shortcuts

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