Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNetworkDir ¶ added in v2.6.0
GetNetworkDir returns the host path of a network's directory (HAProxy files + proxy sockets; also HAProxy's chroot root): /run/archer/<network>.
func GetSocketPath ¶
GetSocketPath returns the host path of a proxy socket: /run/archer/<network>/<port>.sock.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager supervises unprivileged socat processes (one per port) per network.
func NewManager ¶
NewManager creates a proxy manager. By default it spawns unprivileged socat processes; pass a StartProc (e.g. in tests) to override how proxies are run.
func (*Manager) StartProxy ¶
StartProxy starts the supervised socat processes for a network; idempotent (no-op if already running, mirroring HAProxy).
Click to show internal directories.
Click to hide internal directories.