github.com/m3db/m3@v1.5.0/src/aggregator/client/client_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/aggregator/client (interfaces: Client,AdminClient)
     3  
     4  // Copyright (c) 2021 Uber Technologies, Inc.
     5  //
     6  // Permission is hereby granted, free of charge, to any person obtaining a copy
     7  // of this software and associated documentation files (the "Software"), to deal
     8  // in the Software without restriction, including without limitation the rights
     9  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    10  // copies of the Software, and to permit persons to whom the Software is
    11  // furnished to do so, subject to the following conditions:
    12  //
    13  // The above copyright notice and this permission notice shall be included in
    14  // all copies or substantial portions of the Software.
    15  //
    16  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    17  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    18  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    19  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    20  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    21  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    22  // THE SOFTWARE.
    23  
    24  // Package client is a generated GoMock package.
    25  package client
    26  
    27  import (
    28  	"reflect"
    29  
    30  	"github.com/m3db/m3/src/metrics/metadata"
    31  	"github.com/m3db/m3/src/metrics/metric/aggregated"
    32  	"github.com/m3db/m3/src/metrics/metric/unaggregated"
    33  	"github.com/m3db/m3/src/metrics/policy"
    34  
    35  	"github.com/golang/mock/gomock"
    36  )
    37  
    38  // MockClient is a mock of Client interface.
    39  type MockClient struct {
    40  	ctrl     *gomock.Controller
    41  	recorder *MockClientMockRecorder
    42  }
    43  
    44  // MockClientMockRecorder is the mock recorder for MockClient.
    45  type MockClientMockRecorder struct {
    46  	mock *MockClient
    47  }
    48  
    49  // NewMockClient creates a new mock instance.
    50  func NewMockClient(ctrl *gomock.Controller) *MockClient {
    51  	mock := &MockClient{ctrl: ctrl}
    52  	mock.recorder = &MockClientMockRecorder{mock}
    53  	return mock
    54  }
    55  
    56  // EXPECT returns an object that allows the caller to indicate expected use.
    57  func (m *MockClient) EXPECT() *MockClientMockRecorder {
    58  	return m.recorder
    59  }
    60  
    61  // Close mocks base method.
    62  func (m *MockClient) Close() error {
    63  	m.ctrl.T.Helper()
    64  	ret := m.ctrl.Call(m, "Close")
    65  	ret0, _ := ret[0].(error)
    66  	return ret0
    67  }
    68  
    69  // Close indicates an expected call of Close.
    70  func (mr *MockClientMockRecorder) Close() *gomock.Call {
    71  	mr.mock.ctrl.T.Helper()
    72  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockClient)(nil).Close))
    73  }
    74  
    75  // Flush mocks base method.
    76  func (m *MockClient) Flush() error {
    77  	m.ctrl.T.Helper()
    78  	ret := m.ctrl.Call(m, "Flush")
    79  	ret0, _ := ret[0].(error)
    80  	return ret0
    81  }
    82  
    83  // Flush indicates an expected call of Flush.
    84  func (mr *MockClientMockRecorder) Flush() *gomock.Call {
    85  	mr.mock.ctrl.T.Helper()
    86  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Flush", reflect.TypeOf((*MockClient)(nil).Flush))
    87  }
    88  
    89  // Init mocks base method.
    90  func (m *MockClient) Init() error {
    91  	m.ctrl.T.Helper()
    92  	ret := m.ctrl.Call(m, "Init")
    93  	ret0, _ := ret[0].(error)
    94  	return ret0
    95  }
    96  
    97  // Init indicates an expected call of Init.
    98  func (mr *MockClientMockRecorder) Init() *gomock.Call {
    99  	mr.mock.ctrl.T.Helper()
   100  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockClient)(nil).Init))
   101  }
   102  
   103  // WritePassthrough mocks base method.
   104  func (m *MockClient) WritePassthrough(arg0 aggregated.Metric, arg1 policy.StoragePolicy) error {
   105  	m.ctrl.T.Helper()
   106  	ret := m.ctrl.Call(m, "WritePassthrough", arg0, arg1)
   107  	ret0, _ := ret[0].(error)
   108  	return ret0
   109  }
   110  
   111  // WritePassthrough indicates an expected call of WritePassthrough.
   112  func (mr *MockClientMockRecorder) WritePassthrough(arg0, arg1 interface{}) *gomock.Call {
   113  	mr.mock.ctrl.T.Helper()
   114  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WritePassthrough", reflect.TypeOf((*MockClient)(nil).WritePassthrough), arg0, arg1)
   115  }
   116  
   117  // WriteTimed mocks base method.
   118  func (m *MockClient) WriteTimed(arg0 aggregated.Metric, arg1 metadata.TimedMetadata) error {
   119  	m.ctrl.T.Helper()
   120  	ret := m.ctrl.Call(m, "WriteTimed", arg0, arg1)
   121  	ret0, _ := ret[0].(error)
   122  	return ret0
   123  }
   124  
   125  // WriteTimed indicates an expected call of WriteTimed.
   126  func (mr *MockClientMockRecorder) WriteTimed(arg0, arg1 interface{}) *gomock.Call {
   127  	mr.mock.ctrl.T.Helper()
   128  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTimed", reflect.TypeOf((*MockClient)(nil).WriteTimed), arg0, arg1)
   129  }
   130  
   131  // WriteTimedWithStagedMetadatas mocks base method.
   132  func (m *MockClient) WriteTimedWithStagedMetadatas(arg0 aggregated.Metric, arg1 metadata.StagedMetadatas) error {
   133  	m.ctrl.T.Helper()
   134  	ret := m.ctrl.Call(m, "WriteTimedWithStagedMetadatas", arg0, arg1)
   135  	ret0, _ := ret[0].(error)
   136  	return ret0
   137  }
   138  
   139  // WriteTimedWithStagedMetadatas indicates an expected call of WriteTimedWithStagedMetadatas.
   140  func (mr *MockClientMockRecorder) WriteTimedWithStagedMetadatas(arg0, arg1 interface{}) *gomock.Call {
   141  	mr.mock.ctrl.T.Helper()
   142  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTimedWithStagedMetadatas", reflect.TypeOf((*MockClient)(nil).WriteTimedWithStagedMetadatas), arg0, arg1)
   143  }
   144  
   145  // WriteUntimedBatchTimer mocks base method.
   146  func (m *MockClient) WriteUntimedBatchTimer(arg0 unaggregated.BatchTimer, arg1 metadata.StagedMetadatas) error {
   147  	m.ctrl.T.Helper()
   148  	ret := m.ctrl.Call(m, "WriteUntimedBatchTimer", arg0, arg1)
   149  	ret0, _ := ret[0].(error)
   150  	return ret0
   151  }
   152  
   153  // WriteUntimedBatchTimer indicates an expected call of WriteUntimedBatchTimer.
   154  func (mr *MockClientMockRecorder) WriteUntimedBatchTimer(arg0, arg1 interface{}) *gomock.Call {
   155  	mr.mock.ctrl.T.Helper()
   156  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteUntimedBatchTimer", reflect.TypeOf((*MockClient)(nil).WriteUntimedBatchTimer), arg0, arg1)
   157  }
   158  
   159  // WriteUntimedCounter mocks base method.
   160  func (m *MockClient) WriteUntimedCounter(arg0 unaggregated.Counter, arg1 metadata.StagedMetadatas) error {
   161  	m.ctrl.T.Helper()
   162  	ret := m.ctrl.Call(m, "WriteUntimedCounter", arg0, arg1)
   163  	ret0, _ := ret[0].(error)
   164  	return ret0
   165  }
   166  
   167  // WriteUntimedCounter indicates an expected call of WriteUntimedCounter.
   168  func (mr *MockClientMockRecorder) WriteUntimedCounter(arg0, arg1 interface{}) *gomock.Call {
   169  	mr.mock.ctrl.T.Helper()
   170  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteUntimedCounter", reflect.TypeOf((*MockClient)(nil).WriteUntimedCounter), arg0, arg1)
   171  }
   172  
   173  // WriteUntimedGauge mocks base method.
   174  func (m *MockClient) WriteUntimedGauge(arg0 unaggregated.Gauge, arg1 metadata.StagedMetadatas) error {
   175  	m.ctrl.T.Helper()
   176  	ret := m.ctrl.Call(m, "WriteUntimedGauge", arg0, arg1)
   177  	ret0, _ := ret[0].(error)
   178  	return ret0
   179  }
   180  
   181  // WriteUntimedGauge indicates an expected call of WriteUntimedGauge.
   182  func (mr *MockClientMockRecorder) WriteUntimedGauge(arg0, arg1 interface{}) *gomock.Call {
   183  	mr.mock.ctrl.T.Helper()
   184  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteUntimedGauge", reflect.TypeOf((*MockClient)(nil).WriteUntimedGauge), arg0, arg1)
   185  }
   186  
   187  // MockAdminClient is a mock of AdminClient interface.
   188  type MockAdminClient struct {
   189  	ctrl     *gomock.Controller
   190  	recorder *MockAdminClientMockRecorder
   191  }
   192  
   193  // MockAdminClientMockRecorder is the mock recorder for MockAdminClient.
   194  type MockAdminClientMockRecorder struct {
   195  	mock *MockAdminClient
   196  }
   197  
   198  // NewMockAdminClient creates a new mock instance.
   199  func NewMockAdminClient(ctrl *gomock.Controller) *MockAdminClient {
   200  	mock := &MockAdminClient{ctrl: ctrl}
   201  	mock.recorder = &MockAdminClientMockRecorder{mock}
   202  	return mock
   203  }
   204  
   205  // EXPECT returns an object that allows the caller to indicate expected use.
   206  func (m *MockAdminClient) EXPECT() *MockAdminClientMockRecorder {
   207  	return m.recorder
   208  }
   209  
   210  // Close mocks base method.
   211  func (m *MockAdminClient) Close() error {
   212  	m.ctrl.T.Helper()
   213  	ret := m.ctrl.Call(m, "Close")
   214  	ret0, _ := ret[0].(error)
   215  	return ret0
   216  }
   217  
   218  // Close indicates an expected call of Close.
   219  func (mr *MockAdminClientMockRecorder) Close() *gomock.Call {
   220  	mr.mock.ctrl.T.Helper()
   221  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockAdminClient)(nil).Close))
   222  }
   223  
   224  // Flush mocks base method.
   225  func (m *MockAdminClient) Flush() error {
   226  	m.ctrl.T.Helper()
   227  	ret := m.ctrl.Call(m, "Flush")
   228  	ret0, _ := ret[0].(error)
   229  	return ret0
   230  }
   231  
   232  // Flush indicates an expected call of Flush.
   233  func (mr *MockAdminClientMockRecorder) Flush() *gomock.Call {
   234  	mr.mock.ctrl.T.Helper()
   235  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Flush", reflect.TypeOf((*MockAdminClient)(nil).Flush))
   236  }
   237  
   238  // Init mocks base method.
   239  func (m *MockAdminClient) Init() error {
   240  	m.ctrl.T.Helper()
   241  	ret := m.ctrl.Call(m, "Init")
   242  	ret0, _ := ret[0].(error)
   243  	return ret0
   244  }
   245  
   246  // Init indicates an expected call of Init.
   247  func (mr *MockAdminClientMockRecorder) Init() *gomock.Call {
   248  	mr.mock.ctrl.T.Helper()
   249  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockAdminClient)(nil).Init))
   250  }
   251  
   252  // WriteForwarded mocks base method.
   253  func (m *MockAdminClient) WriteForwarded(arg0 aggregated.ForwardedMetric, arg1 metadata.ForwardMetadata) error {
   254  	m.ctrl.T.Helper()
   255  	ret := m.ctrl.Call(m, "WriteForwarded", arg0, arg1)
   256  	ret0, _ := ret[0].(error)
   257  	return ret0
   258  }
   259  
   260  // WriteForwarded indicates an expected call of WriteForwarded.
   261  func (mr *MockAdminClientMockRecorder) WriteForwarded(arg0, arg1 interface{}) *gomock.Call {
   262  	mr.mock.ctrl.T.Helper()
   263  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteForwarded", reflect.TypeOf((*MockAdminClient)(nil).WriteForwarded), arg0, arg1)
   264  }
   265  
   266  // WritePassthrough mocks base method.
   267  func (m *MockAdminClient) WritePassthrough(arg0 aggregated.Metric, arg1 policy.StoragePolicy) error {
   268  	m.ctrl.T.Helper()
   269  	ret := m.ctrl.Call(m, "WritePassthrough", arg0, arg1)
   270  	ret0, _ := ret[0].(error)
   271  	return ret0
   272  }
   273  
   274  // WritePassthrough indicates an expected call of WritePassthrough.
   275  func (mr *MockAdminClientMockRecorder) WritePassthrough(arg0, arg1 interface{}) *gomock.Call {
   276  	mr.mock.ctrl.T.Helper()
   277  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WritePassthrough", reflect.TypeOf((*MockAdminClient)(nil).WritePassthrough), arg0, arg1)
   278  }
   279  
   280  // WriteTimed mocks base method.
   281  func (m *MockAdminClient) WriteTimed(arg0 aggregated.Metric, arg1 metadata.TimedMetadata) error {
   282  	m.ctrl.T.Helper()
   283  	ret := m.ctrl.Call(m, "WriteTimed", arg0, arg1)
   284  	ret0, _ := ret[0].(error)
   285  	return ret0
   286  }
   287  
   288  // WriteTimed indicates an expected call of WriteTimed.
   289  func (mr *MockAdminClientMockRecorder) WriteTimed(arg0, arg1 interface{}) *gomock.Call {
   290  	mr.mock.ctrl.T.Helper()
   291  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTimed", reflect.TypeOf((*MockAdminClient)(nil).WriteTimed), arg0, arg1)
   292  }
   293  
   294  // WriteTimedWithStagedMetadatas mocks base method.
   295  func (m *MockAdminClient) WriteTimedWithStagedMetadatas(arg0 aggregated.Metric, arg1 metadata.StagedMetadatas) error {
   296  	m.ctrl.T.Helper()
   297  	ret := m.ctrl.Call(m, "WriteTimedWithStagedMetadatas", arg0, arg1)
   298  	ret0, _ := ret[0].(error)
   299  	return ret0
   300  }
   301  
   302  // WriteTimedWithStagedMetadatas indicates an expected call of WriteTimedWithStagedMetadatas.
   303  func (mr *MockAdminClientMockRecorder) WriteTimedWithStagedMetadatas(arg0, arg1 interface{}) *gomock.Call {
   304  	mr.mock.ctrl.T.Helper()
   305  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTimedWithStagedMetadatas", reflect.TypeOf((*MockAdminClient)(nil).WriteTimedWithStagedMetadatas), arg0, arg1)
   306  }
   307  
   308  // WriteUntimedBatchTimer mocks base method.
   309  func (m *MockAdminClient) WriteUntimedBatchTimer(arg0 unaggregated.BatchTimer, arg1 metadata.StagedMetadatas) error {
   310  	m.ctrl.T.Helper()
   311  	ret := m.ctrl.Call(m, "WriteUntimedBatchTimer", arg0, arg1)
   312  	ret0, _ := ret[0].(error)
   313  	return ret0
   314  }
   315  
   316  // WriteUntimedBatchTimer indicates an expected call of WriteUntimedBatchTimer.
   317  func (mr *MockAdminClientMockRecorder) WriteUntimedBatchTimer(arg0, arg1 interface{}) *gomock.Call {
   318  	mr.mock.ctrl.T.Helper()
   319  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteUntimedBatchTimer", reflect.TypeOf((*MockAdminClient)(nil).WriteUntimedBatchTimer), arg0, arg1)
   320  }
   321  
   322  // WriteUntimedCounter mocks base method.
   323  func (m *MockAdminClient) WriteUntimedCounter(arg0 unaggregated.Counter, arg1 metadata.StagedMetadatas) error {
   324  	m.ctrl.T.Helper()
   325  	ret := m.ctrl.Call(m, "WriteUntimedCounter", arg0, arg1)
   326  	ret0, _ := ret[0].(error)
   327  	return ret0
   328  }
   329  
   330  // WriteUntimedCounter indicates an expected call of WriteUntimedCounter.
   331  func (mr *MockAdminClientMockRecorder) WriteUntimedCounter(arg0, arg1 interface{}) *gomock.Call {
   332  	mr.mock.ctrl.T.Helper()
   333  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteUntimedCounter", reflect.TypeOf((*MockAdminClient)(nil).WriteUntimedCounter), arg0, arg1)
   334  }
   335  
   336  // WriteUntimedGauge mocks base method.
   337  func (m *MockAdminClient) WriteUntimedGauge(arg0 unaggregated.Gauge, arg1 metadata.StagedMetadatas) error {
   338  	m.ctrl.T.Helper()
   339  	ret := m.ctrl.Call(m, "WriteUntimedGauge", arg0, arg1)
   340  	ret0, _ := ret[0].(error)
   341  	return ret0
   342  }
   343  
   344  // WriteUntimedGauge indicates an expected call of WriteUntimedGauge.
   345  func (mr *MockAdminClientMockRecorder) WriteUntimedGauge(arg0, arg1 interface{}) *gomock.Call {
   346  	mr.mock.ctrl.T.Helper()
   347  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteUntimedGauge", reflect.TypeOf((*MockAdminClient)(nil).WriteUntimedGauge), arg0, arg1)
   348  }