package testing
import "k8s.io/kubernetes/pkg/api/endpoints/testing"
Index ¶
- func MakeEndpointAddress(ip string, pod string) api.EndpointAddress
- func MakeEndpointPort(name string, port int) api.EndpointPort
- func MakeEndpoints(name string, addrs []api.EndpointAddress, ports []api.EndpointPort, tweaks ...Tweak) *api.Endpoints
- type Tweak
Functions ¶
func MakeEndpointAddress ¶
func MakeEndpointAddress(ip string, pod string) api.EndpointAddress
MakeEndpointAddress helps construct EndpointAddress objects which pass API validation.
func MakeEndpointPort ¶
func MakeEndpointPort(name string, port int) api.EndpointPort
MakeEndpointPort helps construct EndpointPort objects which pass API validation.
func MakeEndpoints ¶
func MakeEndpoints(name string, addrs []api.EndpointAddress, ports []api.EndpointPort, tweaks ...Tweak) *api.Endpoints
MakeEndpoints helps construct Endpoints objects (which pass API validation) more legibly and tersely than a Go struct definition.
Types ¶
type Tweak ¶
Tweak is a function that modifies a Endpoints.
Source Files ¶
make.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 3 hours ago –
Tools for package owners.