Documentation
¶
Overview ¶
Package proxy configures a SOCKS5 proxy that is actually an SSH tunnel. A proxy is used for one domain only and should have a unique port. There is self-checking logic to ensure that the proxy is running and reachable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// Name of the installation/management cluster this proxy is for.
Name string
// Proxy port
Port int
// Domain the proxy should be used for.
Domain string
// CheckEndpoint is the endpoint to ping for this proxy
CheckEndpoint string
// contains filtered or unexported fields
}
func (*Proxy) Ping ¶ added in v0.2.0
Ping performs a GET request to the root URL of the provided host. It returns information about the success, response code, any errors, and the duration.
func (*Proxy) PingConstantly ¶ added in v0.2.0
func (p *Proxy) PingConstantly()
func (*Proxy) Status ¶ added in v0.4.0
func (p *Proxy) Status() ProxyStatus
Status returns the current status of the proxy.
Click to show internal directories.
Click to hide internal directories.