mock_proxy_test.go 374 B

1234567891011121314151617
  1. package portmapper
  2. import "net"
  3. func newMockProxyCommand(proto string, hostIP net.IP, hostPort int, containerIP net.IP, containerPort int, userlandProxyPath string) (userlandProxy, error) {
  4. return &mockProxyCommand{}, nil
  5. }
  6. type mockProxyCommand struct{}
  7. func (p *mockProxyCommand) Start() error {
  8. return nil
  9. }
  10. func (p *mockProxyCommand) Stop() error {
  11. return nil
  12. }