github.com/erriapo/docker@v1.6.0-rc2/daemon/networkdriver/portmapper/mock_proxy.go (about) 1 package portmapper 2 3 import "net" 4 5 func NewMockProxyCommand(proto string, hostIP net.IP, hostPort int, containerIP net.IP, containerPort int) UserlandProxy { 6 return &mockProxyCommand{} 7 } 8 9 type mockProxyCommand struct { 10 } 11 12 func (p *mockProxyCommand) Start() error { 13 return nil 14 } 15 16 func (p *mockProxyCommand) Stop() error { 17 return nil 18 }