mock_proxy.go 336 B

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