Versions in this module Expand all Collapse all v0 v0.1.0 Aug 14, 2024 Changes in this version + const MaxDockerHostname + var ErrInvalidChunkLength = errors.New("invalid byte in chunk length") + var ErrLineTooLong = errors.New("header line too long") + var ErrNoCommandSpecified = errors.New("No command specified") + var ErrNoDefaultIPAM = errors.New(...) + var ErrWeaveCIDRNone = errors.New("the container was created with the '-e WEAVE_CIDR=none' option") + var Log = common.Log + type ChunkedReader struct + func NewChunkedReader(r io.Reader) *ChunkedReader + func (cr *ChunkedReader) Chunk() io.Reader + func (cr *ChunkedReader) Err() error + func (cr *ChunkedReader) Next() bool + type Config struct + DNSDomain string + DNSListenAddress string + DockerBridge string + DockerHost string + Enabled bool + HostnameFromLabel string + HostnameMatch string + HostnameReplacement string + Image string + KeepTXOn bool + ListenAddrs []string + NoDefaultIPAM bool + NoMulticastRoute bool + NoRewriteHosts bool + RewriteInspect bool + TLSConfig TLSConfig + WithoutDNS bool + type ErrNoSuchImage struct + Name string + func (err *ErrNoSuchImage) Error() string + type MalformedHostHeaderOverride struct + func (l *MalformedHostHeaderOverride) Accept() (net.Conn, error) + type MalformedHostHeaderOverrideConn struct + func (l *MalformedHostHeaderOverrideConn) Read(b []byte) (n int, err error) + type Proxy struct + func NewProxy(c Config) (*Proxy, error) + func StubProxy(c Config) (*Proxy, error) + func (proxy *Proxy) AttachExistingContainers() + func (proxy *Proxy) ContainerDestroyed(ident string) + func (proxy *Proxy) ContainerDied(ident string) + func (proxy *Proxy) ContainerStarted(ident string) + func (proxy *Proxy) Dial() (net.Conn, error) + func (proxy *Proxy) Intercept(i interceptor, w http.ResponseWriter, r *http.Request) + func (proxy *Proxy) Listen() []net.Listener + func (proxy *Proxy) RewriteEtcHosts(hostsPath, fqdn string, ips []*net.IPNet, extraHosts []string) error + func (proxy *Proxy) Serve(listeners []net.Listener, ready func()) + func (proxy *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (proxy *Proxy) StatusHTTP(w http.ResponseWriter, r *http.Request) + func (proxy *Proxy) Stop() + type Status struct + Addresses []string + func NewStatus(proxy *Proxy) *Status + type TLSConfig struct + CACert string + Cert string + Enabled bool + Key string + Verify bool + func (c *TLSConfig) IsEnabled() bool + func (c *TLSConfig) LoadCerts() error + type UnmarshalWrongTypeError struct + Expected string + Field string + Got interface{} + func (e *UnmarshalWrongTypeError) Error() string