type Tweak … // MakeEndpoints helps construct Endpoints objects (which pass API validation) // more legibly and tersely than a Go struct definition. func MakeEndpoints(name string, addrs []api.EndpointAddress, ports []api.EndpointPort, tweaks ...Tweak) *api.Endpoints { … } // MakeEndpointAddress helps construct EndpointAddress objects which pass API // validation. func MakeEndpointAddress(ip string, pod string) api.EndpointAddress { … } // MakeEndpointPort helps construct EndpointPort objects which pass API // validation. func MakeEndpointPort(name string, port int) api.EndpointPort { … }