github.com/fcwu/docker@v1.4.2-0.20150115145920-2a69ca89f0df/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 }