package
0.0.0-20170824060325-cf23810f2098
Repository: https://github.com/sttts/kubernetes.git
Documentation: pkg.go.dev

# Functions

CleanupLeftovers removes all iptables rules and chains created by the Proxier It returns true if an error was encountered.
IsProxyLocked returns true if the proxy could not acquire the lock on iptables.
NewCustomProxier functions similarly to NewProxier, returing a new Proxier for the given LoadBalancer and address.
NewLoadBalancerRR returns a new LoadBalancerRR.
NewProxier returns a new Proxier given a LoadBalancer and an address on which to listen.
ProxyTCP proxies data bi-directionally between in and out.
TryConnectEndpoints attempts to connect to the next available endpoint for the given service, cycling through until it is able to successully connect, or it has tried with all timeouts in EndpointDialTimeouts.

# Variables

How long we wait for a connection to a backend in seconds.
No description provided by the author
No description provided by the author
ErrProxyOnLocalhost is returned by NewProxier if the user requests a proxier on the loopback address.

# Structs

Holds all the known UDP clients that have not timed out.
LoadBalancerRR is a round-robin load balancer.
Proxier is a simple proxy for TCP connections between a localhost:lport and services that provide the actual implementations.
ServiceInfo contains information and state for a particular proxied service.

# Interfaces

LoadBalancer is an interface for distributing incoming requests to service endpoints.
No description provided by the author
Abstraction over TCP/UDP sockets which are proxied.

# Type aliases

ProxySocketFunc is a function which constructs a ProxySocket from a protocol, ip, and port.