Documentation ¶
Index ¶
- func CoverPointSliceToStr[T string | int](ps []*T) (result []T)
- func GetFirstUID(uid string) string
- func GetNodePort(service *v1.Service, port int32, protocol v1.Protocol) (nodePort int32, found bool)
- func GetNodesName(nodes []*v1.Node) (names []string)
- func GetPortsSlice(ports []v1.ServicePort) []int
- func GetRandomItems(items []*string, count int) (result []*string)
- func GetSvcPorts(service *v1.Service) []int
- func GetSvcPortsAndNodePorts(service *v1.Service) ([]int, []int)
- func IntIndex(vs []int, t int) int
- func StringIndex(vs []string, t string) int
- func TwoArrayEqual(a []int, b []int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoverPointSliceToStr ¶ added in v1.4.19
func GetFirstUID ¶
func GetNodePort ¶
func GetNodesName ¶ added in v1.4.19
func GetPortsSlice ¶ added in v1.4.19
func GetPortsSlice(ports []v1.ServicePort) []int
func GetRandomItems ¶ added in v1.4.15
func GetSvcPorts ¶ added in v1.4.19
func GetSvcPortsAndNodePorts ¶ added in v1.4.19
GetSvcPortsAndNodePorts return service ports and nodeports
func StringIndex ¶
func TwoArrayEqual ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.