...

Package endpointslice

import "k8s.io/kubernetes/test/e2e/framework/endpointslice"
Overview
Index

Overview ▾

type FullPortsByPodUID

FullPortsByPodUID is a map that maps pod UID to container ports.

type FullPortsByPodUID map[types.UID][]v1.ContainerPort

func GetFullContainerPortsByPodUID

func GetFullContainerPortsByPodUID(eps []discoveryv1.EndpointSlice) FullPortsByPodUID

GetFullContainerPortsByPodUID returns a PortsByPodUID map on the given endpoints.

type PortsByPodUID

PortsByPodUID is a map that maps pod UID to container ports.

type PortsByPodUID map[types.UID][]int

func GetContainerPortsByPodUID

func GetContainerPortsByPodUID(eps []discoveryv1.EndpointSlice) PortsByPodUID

GetContainerPortsByPodUID returns a PortsByPodUID map on the given endpoints.