github.com/rawahars/moby@v24.0.4+incompatible/libnetwork/portmapper/mock_proxy_test.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 }