package
0.0.0-20180911130330-d3ccc4fb1d66
Repository: https://github.com/rglyons/kube-arangodb.git
Documentation: pkg.go.dev
# Functions
Prepares the X-Forwarded-For header for another forwarding hop by appending the previous sender's IP address to the X-Forwarded-For chain.
If bind-address is usable, return it directly If bind-address is not usable (unset, 0.0.0.0, or loopback), we will use the host's default interface.
ChooseHostInterface is a method used fetch an IP for a daemon.
CloneHeader creates a deep copy of an http.Header.
CloneRequest creates a shallow copy of the request along with a deep copy of the Headers.
ConnectWithRedirects uses dialer to send req, following up to 10 redirects (relative to originalLocation).
No description provided by the author
No description provided by the author
Extracts and returns the clients IP from the given request.
No description provided by the author
IPNetEqual checks if the two input IPNets are representing the same subnet.
Returns if the given err is "connection reset by peer" error.
IsProbableEOF returns true if the given error resembles a connection termination scenario that would justify assuming that the watch is empty.
JoinPreservingTrailingSlash does a path.Join of the specified elements, preserving any trailing slash on the last non-empty segment.
JoinSchemeNamePort returns a string that specifies the scheme, name, and port: * "<name>" * "<name>:<port>" * "<scheme>:<name>:<port>" None of the parameters may contain a ':' character Name is required Scheme must be "", "http", or "https".
NewProxierWithNoProxyCIDR constructs a Proxier function that respects CIDRs in NO_PROXY and delegates if no matching CIDRs are found.
ParsePortRange parses a string of the form "min-max", inclusive at both ends, and initializs a new PortRange from it.
No description provided by the author
SetOldTransportDefaults applies the defaults from http.DefaultTransport for the Proxy, Dial, and TLSHandshakeTimeout fields if unset.
SetTransportDefaults applies the defaults from http.DefaultTransport for the Proxy, Dial, and TLSHandshakeTimeout fields if unset.
SourceIPs splits the comma separated X-Forwarded-For header or returns the X-Real-Ip header or req.RemoteAddr, in that order, ignoring invalid IPs.
SplitSchemeNamePort takes a string of the following forms: * "<name>", returns "", "<name>","", true * "<name>:<port>", returns "", "<name>","<port>",true * "<scheme>:<name>:<port>", returns "<scheme>","<name>","<port>",true
Name must be non-empty or valid will be returned false.
No description provided by the author
# Interfaces
Dialer dials a host and writes a request to it.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
DialerFunc implements Dialer for the provided function.
No description provided by the author