Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RoundTripper ¶
func RoundTripper(dialHost string, cert *x509.Certificate) http.RoundTripper
RoundTripper returns a specially configured round tripper. When the client is used to connect to a remote TLS server (e.g. openshift.<random>.osadev.cloud), it will in fact dial dialHost (e.g. <random>.<location>.cloudapp.azure.com). It will then negotiate TLS against the former address (i.e. openshift.<random>.osadev.cloud), verifying that the server certificate presented matches cert.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.