util

package
v1.4.19 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoverPointSliceToStr added in v1.4.19

func CoverPointSliceToStr[T string | int](ps []*T) (result []T)

func GetFirstUID

func GetFirstUID(uid string) string

func GetNodePort

func GetNodePort(service *v1.Service, port int32, protocol v1.Protocol) (nodePort int32, found bool)

func GetNodesName added in v1.4.19

func GetNodesName(nodes []*v1.Node) (names []string)

func GetPortsSlice added in v1.4.19

func GetPortsSlice(ports []v1.ServicePort) []int

func GetRandomItems added in v1.4.15

func GetRandomItems(items []*string, count int) (result []*string)

func GetSvcPorts added in v1.4.19

func GetSvcPorts(service *v1.Service) []int

func GetSvcPortsAndNodePorts added in v1.4.19

func GetSvcPortsAndNodePorts(service *v1.Service) ([]int, []int)

GetSvcPortsAndNodePorts return service ports and nodeports

func IntIndex

func IntIndex(vs []int, t int) int

func StringIndex

func StringIndex(vs []string, t string) int

func TwoArrayEqual

func TwoArrayEqual(a []int, b []int) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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