Documentation ¶
Index ¶
Constants ¶
View Source
const ( // This environmental variable must hold address of ingress gateway which client should access. // Address may be IP or FQDN. If this variable is not present creator will fallback to output of `minikube ip`. ServiceNameEnv = "INGRESSGATEWAY_ADDRESS" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientCreator ¶
type ClientCreator interface { // ServiceAddress returns address of ingress gateway read from environment. It does so by reading // service name from environmental variable and resolving it. If env variable is not set output of `minikube ip` will // be used as address to support local testing. ServiceAddress() (string, error) // Client returns http.Client which dials ingress gateway service address instead of the one provided in request // URL. For details how address is resolved see ServiceAddressFromEnv. Client() (*http.Client, error) }
Click to show internal directories.
Click to hide internal directories.