Documentation ¶
Overview ¶
Package mockpolicyenforcer is a generated GoMock package.
Index ¶
- type MockEnforcer
- func (m *MockEnforcer) EXPECT() *MockEnforcerMockRecorder
- func (m *MockEnforcer) Enforce(contextID string, puInfo *policy.PUInfo) error
- func (m *MockEnforcer) GetFilterQueue() *fqconfig.FilterQueue
- func (m *MockEnforcer) GetPortSetInstance() portset.PortSet
- func (m *MockEnforcer) Start() error
- func (m *MockEnforcer) Stop() error
- func (m *MockEnforcer) Unenforce(contextID string) error
- type MockEnforcerMockRecorder
- func (mr *MockEnforcerMockRecorder) Enforce(contextID, puInfo interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) GetFilterQueue() *gomock.Call
- func (mr *MockEnforcerMockRecorder) GetPortSetInstance() *gomock.Call
- func (mr *MockEnforcerMockRecorder) Start() *gomock.Call
- func (mr *MockEnforcerMockRecorder) Stop() *gomock.Call
- func (mr *MockEnforcerMockRecorder) Unenforce(contextID interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEnforcer ¶
type MockEnforcer struct {
// contains filtered or unexported fields
}
MockEnforcer is a mock of Enforcer interface nolint
func NewMockEnforcer ¶
func NewMockEnforcer(ctrl *gomock.Controller) *MockEnforcer
NewMockEnforcer creates a new mock instance nolint
func (*MockEnforcer) EXPECT ¶
func (m *MockEnforcer) EXPECT() *MockEnforcerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use nolint
func (*MockEnforcer) Enforce ¶
func (m *MockEnforcer) Enforce(contextID string, puInfo *policy.PUInfo) error
Enforce mocks base method nolint
func (*MockEnforcer) GetFilterQueue ¶
func (m *MockEnforcer) GetFilterQueue() *fqconfig.FilterQueue
GetFilterQueue mocks base method nolint
func (*MockEnforcer) GetPortSetInstance ¶
func (m *MockEnforcer) GetPortSetInstance() portset.PortSet
GetPortSetInstance mocks base method nolint
func (*MockEnforcer) Unenforce ¶
func (m *MockEnforcer) Unenforce(contextID string) error
Unenforce mocks base method nolint
type MockEnforcerMockRecorder ¶
type MockEnforcerMockRecorder struct {
// contains filtered or unexported fields
}
MockEnforcerMockRecorder is the mock recorder for MockEnforcer nolint
func (*MockEnforcerMockRecorder) Enforce ¶
func (mr *MockEnforcerMockRecorder) Enforce(contextID, puInfo interface{}) *gomock.Call
Enforce indicates an expected call of Enforce nolint
func (*MockEnforcerMockRecorder) GetFilterQueue ¶
func (mr *MockEnforcerMockRecorder) GetFilterQueue() *gomock.Call
GetFilterQueue indicates an expected call of GetFilterQueue nolint
func (*MockEnforcerMockRecorder) GetPortSetInstance ¶
func (mr *MockEnforcerMockRecorder) GetPortSetInstance() *gomock.Call
GetPortSetInstance indicates an expected call of GetPortSetInstance nolint
func (*MockEnforcerMockRecorder) Start ¶
func (mr *MockEnforcerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start nolint
func (*MockEnforcerMockRecorder) Stop ¶
func (mr *MockEnforcerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop nolint
func (*MockEnforcerMockRecorder) Unenforce ¶
func (mr *MockEnforcerMockRecorder) Unenforce(contextID interface{}) *gomock.Call
Unenforce indicates an expected call of Unenforce nolint