Documentation ¶
Index ¶
- type FakeNetsh
- func (*FakeNetsh) DeleteIPAddress(args []string) error
- func (*FakeNetsh) DeletePortProxyRule(args []string) error
- func (*FakeNetsh) EnsureIPAddress(args []string, ip net.IP) (bool, error)
- func (*FakeNetsh) EnsurePortProxyRule(args []string) (bool, error)
- func (*FakeNetsh) GetInterfaceToAddIP() string
- func (*FakeNetsh) Restore(args []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeNetsh ¶
type FakeNetsh struct { }
no-op implementation of netsh Interface
func (*FakeNetsh) DeleteIPAddress ¶
DeleteIPAddress checks if the specified IP address is present and, if so, deletes it.
func (*FakeNetsh) DeletePortProxyRule ¶
DeletePortProxyRule deletes the specified portproxy rule. If the rule did not exist, return error.
func (*FakeNetsh) EnsureIPAddress ¶
EnsureIPAddress checks if the specified IP Address is added to vEthernet (HNSTransparent) interface, if not, add it. If the address existed, return true.
func (*FakeNetsh) EnsurePortProxyRule ¶
func (*FakeNetsh) GetInterfaceToAddIP ¶
GetInterfaceToAddIP returns the interface name where Service IP needs to be added IP Address needs to be added for netsh portproxy to redirect traffic Reads Environment variable INTERFACE_TO_ADD_SERVICE_IP, if it is not defined then "vEthernet (HNSTransparent)" is returned