Documentation ¶
Overview ¶
Package mock_fwdport is a generated GoMock package.
Index ¶
- type MockPort
- func (m *MockPort) Acquire() error
- func (m *MockPort) Actions(arg0 forwarding.PortAction) fwdaction.Actions
- func (m *MockPort) Attributes() fwdattribute.Set
- func (m *MockPort) Counters() map[forwarding.CounterId]fwdobject.Counter
- func (m *MockPort) EXPECT() *MockPortMockRecorder
- func (m *MockPort) ID() fwdobject.ID
- func (m *MockPort) Increment(arg0 forwarding.CounterId, arg1 uint32)
- func (m *MockPort) Init(arg0 fwdobject.ID, arg1 fwdobject.NID, arg2 func())
- func (m *MockPort) NID() fwdobject.NID
- func (m *MockPort) Release(arg0 bool) error
- func (m *MockPort) State(arg0 *forwarding.PortInfo) (*forwarding.PortStateReply, error)
- func (m *MockPort) String() string
- func (m *MockPort) Update(arg0 *forwarding.PortUpdateDesc) error
- func (m *MockPort) Write(arg0 fwdpacket.Packet) (fwdaction.State, error)
- type MockPortMockRecorder
- func (mr *MockPortMockRecorder) Acquire() *gomock.Call
- func (mr *MockPortMockRecorder) Actions(arg0 interface{}) *gomock.Call
- func (mr *MockPortMockRecorder) Attributes() *gomock.Call
- func (mr *MockPortMockRecorder) Counters() *gomock.Call
- func (mr *MockPortMockRecorder) ID() *gomock.Call
- func (mr *MockPortMockRecorder) Increment(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPortMockRecorder) Init(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPortMockRecorder) NID() *gomock.Call
- func (mr *MockPortMockRecorder) Release(arg0 interface{}) *gomock.Call
- func (mr *MockPortMockRecorder) State(arg0 interface{}) *gomock.Call
- func (mr *MockPortMockRecorder) String() *gomock.Call
- func (mr *MockPortMockRecorder) Update(arg0 interface{}) *gomock.Call
- func (mr *MockPortMockRecorder) Write(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPort ¶
type MockPort struct {
// contains filtered or unexported fields
}
MockPort is a mock of Port interface.
func NewMockPort ¶
func NewMockPort(ctrl *gomock.Controller) *MockPort
NewMockPort creates a new mock instance.
func (*MockPort) Actions ¶
func (m *MockPort) Actions(arg0 forwarding.PortAction) fwdaction.Actions
Actions mocks base method.
func (*MockPort) Attributes ¶
func (m *MockPort) Attributes() fwdattribute.Set
Attributes mocks base method.
func (*MockPort) Counters ¶
func (m *MockPort) Counters() map[forwarding.CounterId]fwdobject.Counter
Counters mocks base method.
func (*MockPort) EXPECT ¶
func (m *MockPort) EXPECT() *MockPortMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPort) Increment ¶
func (m *MockPort) Increment(arg0 forwarding.CounterId, arg1 uint32)
Increment mocks base method.
func (*MockPort) State ¶
func (m *MockPort) State(arg0 *forwarding.PortInfo) (*forwarding.PortStateReply, error)
State mocks base method.
func (*MockPort) Update ¶
func (m *MockPort) Update(arg0 *forwarding.PortUpdateDesc) error
Update mocks base method.
type MockPortMockRecorder ¶
type MockPortMockRecorder struct {
// contains filtered or unexported fields
}
MockPortMockRecorder is the mock recorder for MockPort.
func (*MockPortMockRecorder) Acquire ¶
func (mr *MockPortMockRecorder) Acquire() *gomock.Call
Acquire indicates an expected call of Acquire.
func (*MockPortMockRecorder) Actions ¶
func (mr *MockPortMockRecorder) Actions(arg0 interface{}) *gomock.Call
Actions indicates an expected call of Actions.
func (*MockPortMockRecorder) Attributes ¶
func (mr *MockPortMockRecorder) Attributes() *gomock.Call
Attributes indicates an expected call of Attributes.
func (*MockPortMockRecorder) Counters ¶
func (mr *MockPortMockRecorder) Counters() *gomock.Call
Counters indicates an expected call of Counters.
func (*MockPortMockRecorder) ID ¶
func (mr *MockPortMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockPortMockRecorder) Increment ¶
func (mr *MockPortMockRecorder) Increment(arg0, arg1 interface{}) *gomock.Call
Increment indicates an expected call of Increment.
func (*MockPortMockRecorder) Init ¶
func (mr *MockPortMockRecorder) Init(arg0, arg1, arg2 interface{}) *gomock.Call
Init indicates an expected call of Init.
func (*MockPortMockRecorder) NID ¶
func (mr *MockPortMockRecorder) NID() *gomock.Call
NID indicates an expected call of NID.
func (*MockPortMockRecorder) Release ¶
func (mr *MockPortMockRecorder) Release(arg0 interface{}) *gomock.Call
Release indicates an expected call of Release.
func (*MockPortMockRecorder) State ¶
func (mr *MockPortMockRecorder) State(arg0 interface{}) *gomock.Call
State indicates an expected call of State.
func (*MockPortMockRecorder) String ¶
func (mr *MockPortMockRecorder) String() *gomock.Call
String indicates an expected call of String.
func (*MockPortMockRecorder) Update ¶
func (mr *MockPortMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockPortMockRecorder) Write ¶
func (mr *MockPortMockRecorder) Write(arg0 interface{}) *gomock.Call
Write indicates an expected call of Write.