Documentation ¶
Rendered for windows/amd64
Index ¶
- func NewMockNetIO(testMibIPForwardRows []antreasyscall.MibIPForwardRow) antreasyscall.NetIOInterface
- type MockNetIO
- func (n *MockNetIO) CreateIPForwardEntry(_ *antreasyscall.MibIPForwardRow) (errcode error)
- func (n *MockNetIO) DeleteIPForwardEntry(_ *antreasyscall.MibIPForwardRow) (errcode error)
- func (n *MockNetIO) GetIPInterfaceEntry(_ *antreasyscall.MibIPInterfaceRow) (errcode error)
- func (n *MockNetIO) ListIPForwardRows(_ uint16) ([]antreasyscall.MibIPForwardRow, error)
- func (n *MockNetIO) SetIPInterfaceEntry(_ *antreasyscall.MibIPInterfaceRow) (errcode error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockNetIO ¶
func NewMockNetIO(testMibIPForwardRows []antreasyscall.MibIPForwardRow) antreasyscall.NetIOInterface
Types ¶
type MockNetIO ¶
type MockNetIO struct { GetIPInterfaceEntryErr error SetIPInterfaceEntryErr error CreateIPForwardEntryErr error DeleteIPForwardEntryErr error ListIPForwardRowsErr error IPForwardRows []antreasyscall.MibIPForwardRow }
MockNetIO is a custom defined mock struct, not generated by MockGen.
func (*MockNetIO) CreateIPForwardEntry ¶
func (n *MockNetIO) CreateIPForwardEntry(_ *antreasyscall.MibIPForwardRow) (errcode error)
func (*MockNetIO) DeleteIPForwardEntry ¶
func (n *MockNetIO) DeleteIPForwardEntry(_ *antreasyscall.MibIPForwardRow) (errcode error)
func (*MockNetIO) GetIPInterfaceEntry ¶
func (n *MockNetIO) GetIPInterfaceEntry(_ *antreasyscall.MibIPInterfaceRow) (errcode error)
func (*MockNetIO) ListIPForwardRows ¶
func (n *MockNetIO) ListIPForwardRows(_ uint16) ([]antreasyscall.MibIPForwardRow, error)
func (*MockNetIO) SetIPInterfaceEntry ¶
func (n *MockNetIO) SetIPInterfaceEntry(_ *antreasyscall.MibIPInterfaceRow) (errcode error)
Click to show internal directories.
Click to hide internal directories.