MCPcopy
hub / github.com/moby/moby / Proxy

Interface Proxy

cmd/docker-proxy/proxy_linux.go:20–26  ·  view source on GitHub ↗

Proxy defines the behavior of a proxy. It forwards traffic back and forth between two endpoints : the frontend and the backend. It can be used to do software port-mapping between two addresses. e.g. forward all traffic between the frontend (host) 127.0.0.1:3000 to the backend (container) at 172.17.4

Source from the content-addressed store, hash-verified

18// e.g. forward all traffic between the frontend (host) 127.0.0.1:3000
19// to the backend (container) at 172.17.42.108:4000.
20type Proxy interface {
21 // Run starts forwarding traffic back and forth between the front
22 // and back-end addresses.
23 Run()
24 // Close stops forwarding traffic and close both ends of the Proxy.
25 Close()
26}

Callers 16

TestImageListFunction · 0.65
TestExecStartConsoleSizeFunction · 0.65
TestImageSaveFunction · 0.65
TestImageImportFunction · 0.65
TestEncodePlatformsFunction · 0.65
TestVolumePruneFunction · 0.65
mainFunction · 0.65
clientLoopMethod · 0.65
CloseMethod · 0.65
replyLoopMethod · 0.65

Implementers 6

SCTPProxycmd/docker-proxy/sctp_proxy_linux.go
StreamEchoServercmd/docker-proxy/network_proxy_linux_t
UDPEchoServercmd/docker-proxy/network_proxy_linux_t
UDPProxycmd/docker-proxy/udp_proxy_linux.go
TCPProxycmd/docker-proxy/tcp_proxy_linux.go
Copierdaemon/logger/copier.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…