Documentation ¶
Index ¶
- func NewRequestForProxy(location *url.URL, req *http.Request) (*http.Request, context.CancelFunc)
- func ResolveCluster(services listersv1.ServiceLister, namespace, id string, port int32) (*url.URL, error)
- func ResolveEndpoint(services listersv1.ServiceLister, endpoints listersv1.EndpointsLister, ...) (*url.URL, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRequestForProxy ¶ added in v0.28.0
NewRequestForProxy returns a shallow copy of the original request with a context that may include a timeout for discovery requests
func ResolveCluster ¶
func ResolveEndpoint ¶
func ResolveEndpoint(services listersv1.ServiceLister, endpoints listersv1.EndpointsLister, namespace, id string, port int32) (*url.URL, error)
ResolveEndpoint returns a URL to which one can send traffic for the specified service.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.