github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/monitor/mockmonitor/mockmonitor.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: monitor/interfaces.go
     3  
     4  // Package mockmonitor is a generated GoMock package.
     5  package mockmonitor
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	config "go.aporeto.io/enforcerd/trireme-lib/monitor/config"
    13  	registerer "go.aporeto.io/enforcerd/trireme-lib/monitor/registerer"
    14  )
    15  
    16  // MockMonitor is a mock of Monitor interface
    17  // nolint
    18  type MockMonitor struct {
    19  	ctrl     *gomock.Controller
    20  	recorder *MockMonitorMockRecorder
    21  }
    22  
    23  // MockMonitorMockRecorder is the mock recorder for MockMonitor
    24  // nolint
    25  type MockMonitorMockRecorder struct {
    26  	mock *MockMonitor
    27  }
    28  
    29  // NewMockMonitor creates a new mock instance
    30  // nolint
    31  func NewMockMonitor(ctrl *gomock.Controller) *MockMonitor {
    32  	mock := &MockMonitor{ctrl: ctrl}
    33  	mock.recorder = &MockMonitorMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use
    38  // nolint
    39  func (m *MockMonitor) EXPECT() *MockMonitorMockRecorder {
    40  	return m.recorder
    41  }
    42  
    43  // Run mocks base method
    44  // nolint
    45  func (m *MockMonitor) Run(ctx context.Context) error {
    46  	m.ctrl.T.Helper()
    47  	ret := m.ctrl.Call(m, "Run", ctx)
    48  	ret0, _ := ret[0].(error)
    49  	return ret0
    50  }
    51  
    52  // Run indicates an expected call of Run
    53  // nolint
    54  func (mr *MockMonitorMockRecorder) Run(ctx interface{}) *gomock.Call {
    55  	mr.mock.ctrl.T.Helper()
    56  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockMonitor)(nil).Run), ctx)
    57  }
    58  
    59  // UpdateConfiguration mocks base method
    60  // nolint
    61  func (m *MockMonitor) UpdateConfiguration(ctx context.Context, config *config.MonitorConfig) error {
    62  	m.ctrl.T.Helper()
    63  	ret := m.ctrl.Call(m, "UpdateConfiguration", ctx, config)
    64  	ret0, _ := ret[0].(error)
    65  	return ret0
    66  }
    67  
    68  // UpdateConfiguration indicates an expected call of UpdateConfiguration
    69  // nolint
    70  func (mr *MockMonitorMockRecorder) UpdateConfiguration(ctx, config interface{}) *gomock.Call {
    71  	mr.mock.ctrl.T.Helper()
    72  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateConfiguration", reflect.TypeOf((*MockMonitor)(nil).UpdateConfiguration), ctx, config)
    73  }
    74  
    75  // Resync mocks base method
    76  // nolint
    77  func (m *MockMonitor) Resync(ctx context.Context) error {
    78  	m.ctrl.T.Helper()
    79  	ret := m.ctrl.Call(m, "Resync", ctx)
    80  	ret0, _ := ret[0].(error)
    81  	return ret0
    82  }
    83  
    84  // Resync indicates an expected call of Resync
    85  // nolint
    86  func (mr *MockMonitorMockRecorder) Resync(ctx interface{}) *gomock.Call {
    87  	mr.mock.ctrl.T.Helper()
    88  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Resync", reflect.TypeOf((*MockMonitor)(nil).Resync), ctx)
    89  }
    90  
    91  // MockImplementation is a mock of Implementation interface
    92  // nolint
    93  type MockImplementation struct {
    94  	ctrl     *gomock.Controller
    95  	recorder *MockImplementationMockRecorder
    96  }
    97  
    98  // MockImplementationMockRecorder is the mock recorder for MockImplementation
    99  // nolint
   100  type MockImplementationMockRecorder struct {
   101  	mock *MockImplementation
   102  }
   103  
   104  // NewMockImplementation creates a new mock instance
   105  // nolint
   106  func NewMockImplementation(ctrl *gomock.Controller) *MockImplementation {
   107  	mock := &MockImplementation{ctrl: ctrl}
   108  	mock.recorder = &MockImplementationMockRecorder{mock}
   109  	return mock
   110  }
   111  
   112  // EXPECT returns an object that allows the caller to indicate expected use
   113  // nolint
   114  func (m *MockImplementation) EXPECT() *MockImplementationMockRecorder {
   115  	return m.recorder
   116  }
   117  
   118  // Run mocks base method
   119  // nolint
   120  func (m *MockImplementation) Run(ctx context.Context) error {
   121  	m.ctrl.T.Helper()
   122  	ret := m.ctrl.Call(m, "Run", ctx)
   123  	ret0, _ := ret[0].(error)
   124  	return ret0
   125  }
   126  
   127  // Run indicates an expected call of Run
   128  // nolint
   129  func (mr *MockImplementationMockRecorder) Run(ctx interface{}) *gomock.Call {
   130  	mr.mock.ctrl.T.Helper()
   131  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockImplementation)(nil).Run), ctx)
   132  }
   133  
   134  // SetupConfig mocks base method
   135  // nolint
   136  func (m *MockImplementation) SetupConfig(registerer registerer.Registerer, cfg interface{}) error {
   137  	m.ctrl.T.Helper()
   138  	ret := m.ctrl.Call(m, "SetupConfig", registerer, cfg)
   139  	ret0, _ := ret[0].(error)
   140  	return ret0
   141  }
   142  
   143  // SetupConfig indicates an expected call of SetupConfig
   144  // nolint
   145  func (mr *MockImplementationMockRecorder) SetupConfig(registerer, cfg interface{}) *gomock.Call {
   146  	mr.mock.ctrl.T.Helper()
   147  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetupConfig", reflect.TypeOf((*MockImplementation)(nil).SetupConfig), registerer, cfg)
   148  }
   149  
   150  // SetupHandlers mocks base method
   151  // nolint
   152  func (m *MockImplementation) SetupHandlers(c *config.ProcessorConfig) {
   153  	m.ctrl.T.Helper()
   154  	m.ctrl.Call(m, "SetupHandlers", c)
   155  }
   156  
   157  // SetupHandlers indicates an expected call of SetupHandlers
   158  // nolint
   159  func (mr *MockImplementationMockRecorder) SetupHandlers(c interface{}) *gomock.Call {
   160  	mr.mock.ctrl.T.Helper()
   161  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetupHandlers", reflect.TypeOf((*MockImplementation)(nil).SetupHandlers), c)
   162  }
   163  
   164  // Resync mocks base method
   165  // nolint
   166  func (m *MockImplementation) Resync(ctx context.Context) error {
   167  	m.ctrl.T.Helper()
   168  	ret := m.ctrl.Call(m, "Resync", ctx)
   169  	ret0, _ := ret[0].(error)
   170  	return ret0
   171  }
   172  
   173  // Resync indicates an expected call of Resync
   174  // nolint
   175  func (mr *MockImplementationMockRecorder) Resync(ctx interface{}) *gomock.Call {
   176  	mr.mock.ctrl.T.Helper()
   177  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Resync", reflect.TypeOf((*MockImplementation)(nil).Resync), ctx)
   178  }