github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/libnetwork/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, userlandProxyPath string) (userlandProxy, error) { 6 return &mockProxyCommand{}, nil 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 }