testing

package
v1.31.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

type Tweak func(*api.Endpoints)

Tweak is a function that modifies a Endpoints.

Jump to

Keyboard shortcuts

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