Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInterfaceNil = errors.New("Interface is nil")
ErrInterfaceNil - errors out when interface is nil
View Source
var ErrMockNetIOFail = errors.New("netio fail")
ErrMockNetIOFail - mock netio error
Functions ¶
This section is empty.
Types ¶
type MockNetIO ¶
type MockNetIO struct {
// contains filtered or unexported fields
}
func NewMockNetIO ¶
func (*MockNetIO) GetNetworkInterfaceAddrs ¶
func (*MockNetIO) GetNetworkInterfaceByName ¶
func (*MockNetIO) SetGetInterfaceValidatonFn ¶
func (netshim *MockNetIO) SetGetInterfaceValidatonFn(fn getInterfaceValidationFn)
Click to show internal directories.
Click to hide internal directories.