github.com/m3db/m3@v1.5.0/src/m3em/node/node_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/m3em/node (interfaces: ServiceNode,Options)
     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 node is a generated GoMock package.
    25  package node
    26  
    27  import (
    28  	"reflect"
    29  	"time"
    30  
    31  	"github.com/m3db/m3/src/cluster/generated/proto/placementpb"
    32  	"github.com/m3db/m3/src/cluster/placement"
    33  	"github.com/m3db/m3/src/cluster/shard"
    34  	"github.com/m3db/m3/src/m3em/build"
    35  	"github.com/m3db/m3/src/x/instrument"
    36  	"github.com/m3db/m3/src/x/retry"
    37  
    38  	"github.com/golang/mock/gomock"
    39  )
    40  
    41  // MockServiceNode is a mock of ServiceNode interface.
    42  type MockServiceNode struct {
    43  	ctrl     *gomock.Controller
    44  	recorder *MockServiceNodeMockRecorder
    45  }
    46  
    47  // MockServiceNodeMockRecorder is the mock recorder for MockServiceNode.
    48  type MockServiceNodeMockRecorder struct {
    49  	mock *MockServiceNode
    50  }
    51  
    52  // NewMockServiceNode creates a new mock instance.
    53  func NewMockServiceNode(ctrl *gomock.Controller) *MockServiceNode {
    54  	mock := &MockServiceNode{ctrl: ctrl}
    55  	mock.recorder = &MockServiceNodeMockRecorder{mock}
    56  	return mock
    57  }
    58  
    59  // EXPECT returns an object that allows the caller to indicate expected use.
    60  func (m *MockServiceNode) EXPECT() *MockServiceNodeMockRecorder {
    61  	return m.recorder
    62  }
    63  
    64  // Clone mocks base method.
    65  func (m *MockServiceNode) Clone() placement.Instance {
    66  	m.ctrl.T.Helper()
    67  	ret := m.ctrl.Call(m, "Clone")
    68  	ret0, _ := ret[0].(placement.Instance)
    69  	return ret0
    70  }
    71  
    72  // Clone indicates an expected call of Clone.
    73  func (mr *MockServiceNodeMockRecorder) Clone() *gomock.Call {
    74  	mr.mock.ctrl.T.Helper()
    75  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clone", reflect.TypeOf((*MockServiceNode)(nil).Clone))
    76  }
    77  
    78  // Close mocks base method.
    79  func (m *MockServiceNode) Close() error {
    80  	m.ctrl.T.Helper()
    81  	ret := m.ctrl.Call(m, "Close")
    82  	ret0, _ := ret[0].(error)
    83  	return ret0
    84  }
    85  
    86  // Close indicates an expected call of Close.
    87  func (mr *MockServiceNodeMockRecorder) Close() *gomock.Call {
    88  	mr.mock.ctrl.T.Helper()
    89  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockServiceNode)(nil).Close))
    90  }
    91  
    92  // DeregisterListener mocks base method.
    93  func (m *MockServiceNode) DeregisterListener(arg0 ListenerID) {
    94  	m.ctrl.T.Helper()
    95  	m.ctrl.Call(m, "DeregisterListener", arg0)
    96  }
    97  
    98  // DeregisterListener indicates an expected call of DeregisterListener.
    99  func (mr *MockServiceNodeMockRecorder) DeregisterListener(arg0 interface{}) *gomock.Call {
   100  	mr.mock.ctrl.T.Helper()
   101  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeregisterListener", reflect.TypeOf((*MockServiceNode)(nil).DeregisterListener), arg0)
   102  }
   103  
   104  // Endpoint mocks base method.
   105  func (m *MockServiceNode) Endpoint() string {
   106  	m.ctrl.T.Helper()
   107  	ret := m.ctrl.Call(m, "Endpoint")
   108  	ret0, _ := ret[0].(string)
   109  	return ret0
   110  }
   111  
   112  // Endpoint indicates an expected call of Endpoint.
   113  func (mr *MockServiceNodeMockRecorder) Endpoint() *gomock.Call {
   114  	mr.mock.ctrl.T.Helper()
   115  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Endpoint", reflect.TypeOf((*MockServiceNode)(nil).Endpoint))
   116  }
   117  
   118  // GetRemoteOutput mocks base method.
   119  func (m *MockServiceNode) GetRemoteOutput(arg0 RemoteOutputType, arg1 string) (bool, error) {
   120  	m.ctrl.T.Helper()
   121  	ret := m.ctrl.Call(m, "GetRemoteOutput", arg0, arg1)
   122  	ret0, _ := ret[0].(bool)
   123  	ret1, _ := ret[1].(error)
   124  	return ret0, ret1
   125  }
   126  
   127  // GetRemoteOutput indicates an expected call of GetRemoteOutput.
   128  func (mr *MockServiceNodeMockRecorder) GetRemoteOutput(arg0, arg1 interface{}) *gomock.Call {
   129  	mr.mock.ctrl.T.Helper()
   130  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRemoteOutput", reflect.TypeOf((*MockServiceNode)(nil).GetRemoteOutput), arg0, arg1)
   131  }
   132  
   133  // Hostname mocks base method.
   134  func (m *MockServiceNode) Hostname() string {
   135  	m.ctrl.T.Helper()
   136  	ret := m.ctrl.Call(m, "Hostname")
   137  	ret0, _ := ret[0].(string)
   138  	return ret0
   139  }
   140  
   141  // Hostname indicates an expected call of Hostname.
   142  func (mr *MockServiceNodeMockRecorder) Hostname() *gomock.Call {
   143  	mr.mock.ctrl.T.Helper()
   144  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Hostname", reflect.TypeOf((*MockServiceNode)(nil).Hostname))
   145  }
   146  
   147  // ID mocks base method.
   148  func (m *MockServiceNode) ID() string {
   149  	m.ctrl.T.Helper()
   150  	ret := m.ctrl.Call(m, "ID")
   151  	ret0, _ := ret[0].(string)
   152  	return ret0
   153  }
   154  
   155  // ID indicates an expected call of ID.
   156  func (mr *MockServiceNodeMockRecorder) ID() *gomock.Call {
   157  	mr.mock.ctrl.T.Helper()
   158  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockServiceNode)(nil).ID))
   159  }
   160  
   161  // IsAvailable mocks base method.
   162  func (m *MockServiceNode) IsAvailable() bool {
   163  	m.ctrl.T.Helper()
   164  	ret := m.ctrl.Call(m, "IsAvailable")
   165  	ret0, _ := ret[0].(bool)
   166  	return ret0
   167  }
   168  
   169  // IsAvailable indicates an expected call of IsAvailable.
   170  func (mr *MockServiceNodeMockRecorder) IsAvailable() *gomock.Call {
   171  	mr.mock.ctrl.T.Helper()
   172  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsAvailable", reflect.TypeOf((*MockServiceNode)(nil).IsAvailable))
   173  }
   174  
   175  // IsInitializing mocks base method.
   176  func (m *MockServiceNode) IsInitializing() bool {
   177  	m.ctrl.T.Helper()
   178  	ret := m.ctrl.Call(m, "IsInitializing")
   179  	ret0, _ := ret[0].(bool)
   180  	return ret0
   181  }
   182  
   183  // IsInitializing indicates an expected call of IsInitializing.
   184  func (mr *MockServiceNodeMockRecorder) IsInitializing() *gomock.Call {
   185  	mr.mock.ctrl.T.Helper()
   186  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsInitializing", reflect.TypeOf((*MockServiceNode)(nil).IsInitializing))
   187  }
   188  
   189  // IsLeaving mocks base method.
   190  func (m *MockServiceNode) IsLeaving() bool {
   191  	m.ctrl.T.Helper()
   192  	ret := m.ctrl.Call(m, "IsLeaving")
   193  	ret0, _ := ret[0].(bool)
   194  	return ret0
   195  }
   196  
   197  // IsLeaving indicates an expected call of IsLeaving.
   198  func (mr *MockServiceNodeMockRecorder) IsLeaving() *gomock.Call {
   199  	mr.mock.ctrl.T.Helper()
   200  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsLeaving", reflect.TypeOf((*MockServiceNode)(nil).IsLeaving))
   201  }
   202  
   203  // IsolationGroup mocks base method.
   204  func (m *MockServiceNode) IsolationGroup() string {
   205  	m.ctrl.T.Helper()
   206  	ret := m.ctrl.Call(m, "IsolationGroup")
   207  	ret0, _ := ret[0].(string)
   208  	return ret0
   209  }
   210  
   211  // IsolationGroup indicates an expected call of IsolationGroup.
   212  func (mr *MockServiceNodeMockRecorder) IsolationGroup() *gomock.Call {
   213  	mr.mock.ctrl.T.Helper()
   214  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsolationGroup", reflect.TypeOf((*MockServiceNode)(nil).IsolationGroup))
   215  }
   216  
   217  // Metadata mocks base method.
   218  func (m *MockServiceNode) Metadata() placement.InstanceMetadata {
   219  	m.ctrl.T.Helper()
   220  	ret := m.ctrl.Call(m, "Metadata")
   221  	ret0, _ := ret[0].(placement.InstanceMetadata)
   222  	return ret0
   223  }
   224  
   225  // Metadata indicates an expected call of Metadata.
   226  func (mr *MockServiceNodeMockRecorder) Metadata() *gomock.Call {
   227  	mr.mock.ctrl.T.Helper()
   228  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Metadata", reflect.TypeOf((*MockServiceNode)(nil).Metadata))
   229  }
   230  
   231  // Port mocks base method.
   232  func (m *MockServiceNode) Port() uint32 {
   233  	m.ctrl.T.Helper()
   234  	ret := m.ctrl.Call(m, "Port")
   235  	ret0, _ := ret[0].(uint32)
   236  	return ret0
   237  }
   238  
   239  // Port indicates an expected call of Port.
   240  func (mr *MockServiceNodeMockRecorder) Port() *gomock.Call {
   241  	mr.mock.ctrl.T.Helper()
   242  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Port", reflect.TypeOf((*MockServiceNode)(nil).Port))
   243  }
   244  
   245  // Proto mocks base method.
   246  func (m *MockServiceNode) Proto() (*placementpb.Instance, error) {
   247  	m.ctrl.T.Helper()
   248  	ret := m.ctrl.Call(m, "Proto")
   249  	ret0, _ := ret[0].(*placementpb.Instance)
   250  	ret1, _ := ret[1].(error)
   251  	return ret0, ret1
   252  }
   253  
   254  // Proto indicates an expected call of Proto.
   255  func (mr *MockServiceNodeMockRecorder) Proto() *gomock.Call {
   256  	mr.mock.ctrl.T.Helper()
   257  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Proto", reflect.TypeOf((*MockServiceNode)(nil).Proto))
   258  }
   259  
   260  // RegisterListener mocks base method.
   261  func (m *MockServiceNode) RegisterListener(arg0 Listener) ListenerID {
   262  	m.ctrl.T.Helper()
   263  	ret := m.ctrl.Call(m, "RegisterListener", arg0)
   264  	ret0, _ := ret[0].(ListenerID)
   265  	return ret0
   266  }
   267  
   268  // RegisterListener indicates an expected call of RegisterListener.
   269  func (mr *MockServiceNodeMockRecorder) RegisterListener(arg0 interface{}) *gomock.Call {
   270  	mr.mock.ctrl.T.Helper()
   271  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterListener", reflect.TypeOf((*MockServiceNode)(nil).RegisterListener), arg0)
   272  }
   273  
   274  // SetEndpoint mocks base method.
   275  func (m *MockServiceNode) SetEndpoint(arg0 string) placement.Instance {
   276  	m.ctrl.T.Helper()
   277  	ret := m.ctrl.Call(m, "SetEndpoint", arg0)
   278  	ret0, _ := ret[0].(placement.Instance)
   279  	return ret0
   280  }
   281  
   282  // SetEndpoint indicates an expected call of SetEndpoint.
   283  func (mr *MockServiceNodeMockRecorder) SetEndpoint(arg0 interface{}) *gomock.Call {
   284  	mr.mock.ctrl.T.Helper()
   285  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEndpoint", reflect.TypeOf((*MockServiceNode)(nil).SetEndpoint), arg0)
   286  }
   287  
   288  // SetHostname mocks base method.
   289  func (m *MockServiceNode) SetHostname(arg0 string) placement.Instance {
   290  	m.ctrl.T.Helper()
   291  	ret := m.ctrl.Call(m, "SetHostname", arg0)
   292  	ret0, _ := ret[0].(placement.Instance)
   293  	return ret0
   294  }
   295  
   296  // SetHostname indicates an expected call of SetHostname.
   297  func (mr *MockServiceNodeMockRecorder) SetHostname(arg0 interface{}) *gomock.Call {
   298  	mr.mock.ctrl.T.Helper()
   299  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHostname", reflect.TypeOf((*MockServiceNode)(nil).SetHostname), arg0)
   300  }
   301  
   302  // SetID mocks base method.
   303  func (m *MockServiceNode) SetID(arg0 string) placement.Instance {
   304  	m.ctrl.T.Helper()
   305  	ret := m.ctrl.Call(m, "SetID", arg0)
   306  	ret0, _ := ret[0].(placement.Instance)
   307  	return ret0
   308  }
   309  
   310  // SetID indicates an expected call of SetID.
   311  func (mr *MockServiceNodeMockRecorder) SetID(arg0 interface{}) *gomock.Call {
   312  	mr.mock.ctrl.T.Helper()
   313  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetID", reflect.TypeOf((*MockServiceNode)(nil).SetID), arg0)
   314  }
   315  
   316  // SetIsolationGroup mocks base method.
   317  func (m *MockServiceNode) SetIsolationGroup(arg0 string) placement.Instance {
   318  	m.ctrl.T.Helper()
   319  	ret := m.ctrl.Call(m, "SetIsolationGroup", arg0)
   320  	ret0, _ := ret[0].(placement.Instance)
   321  	return ret0
   322  }
   323  
   324  // SetIsolationGroup indicates an expected call of SetIsolationGroup.
   325  func (mr *MockServiceNodeMockRecorder) SetIsolationGroup(arg0 interface{}) *gomock.Call {
   326  	mr.mock.ctrl.T.Helper()
   327  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIsolationGroup", reflect.TypeOf((*MockServiceNode)(nil).SetIsolationGroup), arg0)
   328  }
   329  
   330  // SetMetadata mocks base method.
   331  func (m *MockServiceNode) SetMetadata(arg0 placement.InstanceMetadata) placement.Instance {
   332  	m.ctrl.T.Helper()
   333  	ret := m.ctrl.Call(m, "SetMetadata", arg0)
   334  	ret0, _ := ret[0].(placement.Instance)
   335  	return ret0
   336  }
   337  
   338  // SetMetadata indicates an expected call of SetMetadata.
   339  func (mr *MockServiceNodeMockRecorder) SetMetadata(arg0 interface{}) *gomock.Call {
   340  	mr.mock.ctrl.T.Helper()
   341  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMetadata", reflect.TypeOf((*MockServiceNode)(nil).SetMetadata), arg0)
   342  }
   343  
   344  // SetPort mocks base method.
   345  func (m *MockServiceNode) SetPort(arg0 uint32) placement.Instance {
   346  	m.ctrl.T.Helper()
   347  	ret := m.ctrl.Call(m, "SetPort", arg0)
   348  	ret0, _ := ret[0].(placement.Instance)
   349  	return ret0
   350  }
   351  
   352  // SetPort indicates an expected call of SetPort.
   353  func (mr *MockServiceNodeMockRecorder) SetPort(arg0 interface{}) *gomock.Call {
   354  	mr.mock.ctrl.T.Helper()
   355  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPort", reflect.TypeOf((*MockServiceNode)(nil).SetPort), arg0)
   356  }
   357  
   358  // SetShardSetID mocks base method.
   359  func (m *MockServiceNode) SetShardSetID(arg0 uint32) placement.Instance {
   360  	m.ctrl.T.Helper()
   361  	ret := m.ctrl.Call(m, "SetShardSetID", arg0)
   362  	ret0, _ := ret[0].(placement.Instance)
   363  	return ret0
   364  }
   365  
   366  // SetShardSetID indicates an expected call of SetShardSetID.
   367  func (mr *MockServiceNodeMockRecorder) SetShardSetID(arg0 interface{}) *gomock.Call {
   368  	mr.mock.ctrl.T.Helper()
   369  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetShardSetID", reflect.TypeOf((*MockServiceNode)(nil).SetShardSetID), arg0)
   370  }
   371  
   372  // SetShards mocks base method.
   373  func (m *MockServiceNode) SetShards(arg0 shard.Shards) placement.Instance {
   374  	m.ctrl.T.Helper()
   375  	ret := m.ctrl.Call(m, "SetShards", arg0)
   376  	ret0, _ := ret[0].(placement.Instance)
   377  	return ret0
   378  }
   379  
   380  // SetShards indicates an expected call of SetShards.
   381  func (mr *MockServiceNodeMockRecorder) SetShards(arg0 interface{}) *gomock.Call {
   382  	mr.mock.ctrl.T.Helper()
   383  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetShards", reflect.TypeOf((*MockServiceNode)(nil).SetShards), arg0)
   384  }
   385  
   386  // SetWeight mocks base method.
   387  func (m *MockServiceNode) SetWeight(arg0 uint32) placement.Instance {
   388  	m.ctrl.T.Helper()
   389  	ret := m.ctrl.Call(m, "SetWeight", arg0)
   390  	ret0, _ := ret[0].(placement.Instance)
   391  	return ret0
   392  }
   393  
   394  // SetWeight indicates an expected call of SetWeight.
   395  func (mr *MockServiceNodeMockRecorder) SetWeight(arg0 interface{}) *gomock.Call {
   396  	mr.mock.ctrl.T.Helper()
   397  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWeight", reflect.TypeOf((*MockServiceNode)(nil).SetWeight), arg0)
   398  }
   399  
   400  // SetZone mocks base method.
   401  func (m *MockServiceNode) SetZone(arg0 string) placement.Instance {
   402  	m.ctrl.T.Helper()
   403  	ret := m.ctrl.Call(m, "SetZone", arg0)
   404  	ret0, _ := ret[0].(placement.Instance)
   405  	return ret0
   406  }
   407  
   408  // SetZone indicates an expected call of SetZone.
   409  func (mr *MockServiceNodeMockRecorder) SetZone(arg0 interface{}) *gomock.Call {
   410  	mr.mock.ctrl.T.Helper()
   411  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetZone", reflect.TypeOf((*MockServiceNode)(nil).SetZone), arg0)
   412  }
   413  
   414  // Setup mocks base method.
   415  func (m *MockServiceNode) Setup(arg0 build.ServiceBuild, arg1 build.ServiceConfiguration, arg2 string, arg3 bool) error {
   416  	m.ctrl.T.Helper()
   417  	ret := m.ctrl.Call(m, "Setup", arg0, arg1, arg2, arg3)
   418  	ret0, _ := ret[0].(error)
   419  	return ret0
   420  }
   421  
   422  // Setup indicates an expected call of Setup.
   423  func (mr *MockServiceNodeMockRecorder) Setup(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   424  	mr.mock.ctrl.T.Helper()
   425  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Setup", reflect.TypeOf((*MockServiceNode)(nil).Setup), arg0, arg1, arg2, arg3)
   426  }
   427  
   428  // ShardSetID mocks base method.
   429  func (m *MockServiceNode) ShardSetID() uint32 {
   430  	m.ctrl.T.Helper()
   431  	ret := m.ctrl.Call(m, "ShardSetID")
   432  	ret0, _ := ret[0].(uint32)
   433  	return ret0
   434  }
   435  
   436  // ShardSetID indicates an expected call of ShardSetID.
   437  func (mr *MockServiceNodeMockRecorder) ShardSetID() *gomock.Call {
   438  	mr.mock.ctrl.T.Helper()
   439  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShardSetID", reflect.TypeOf((*MockServiceNode)(nil).ShardSetID))
   440  }
   441  
   442  // Shards mocks base method.
   443  func (m *MockServiceNode) Shards() shard.Shards {
   444  	m.ctrl.T.Helper()
   445  	ret := m.ctrl.Call(m, "Shards")
   446  	ret0, _ := ret[0].(shard.Shards)
   447  	return ret0
   448  }
   449  
   450  // Shards indicates an expected call of Shards.
   451  func (mr *MockServiceNodeMockRecorder) Shards() *gomock.Call {
   452  	mr.mock.ctrl.T.Helper()
   453  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shards", reflect.TypeOf((*MockServiceNode)(nil).Shards))
   454  }
   455  
   456  // Start mocks base method.
   457  func (m *MockServiceNode) Start() error {
   458  	m.ctrl.T.Helper()
   459  	ret := m.ctrl.Call(m, "Start")
   460  	ret0, _ := ret[0].(error)
   461  	return ret0
   462  }
   463  
   464  // Start indicates an expected call of Start.
   465  func (mr *MockServiceNodeMockRecorder) Start() *gomock.Call {
   466  	mr.mock.ctrl.T.Helper()
   467  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockServiceNode)(nil).Start))
   468  }
   469  
   470  // Status mocks base method.
   471  func (m *MockServiceNode) Status() Status {
   472  	m.ctrl.T.Helper()
   473  	ret := m.ctrl.Call(m, "Status")
   474  	ret0, _ := ret[0].(Status)
   475  	return ret0
   476  }
   477  
   478  // Status indicates an expected call of Status.
   479  func (mr *MockServiceNodeMockRecorder) Status() *gomock.Call {
   480  	mr.mock.ctrl.T.Helper()
   481  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockServiceNode)(nil).Status))
   482  }
   483  
   484  // Stop mocks base method.
   485  func (m *MockServiceNode) Stop() error {
   486  	m.ctrl.T.Helper()
   487  	ret := m.ctrl.Call(m, "Stop")
   488  	ret0, _ := ret[0].(error)
   489  	return ret0
   490  }
   491  
   492  // Stop indicates an expected call of Stop.
   493  func (mr *MockServiceNodeMockRecorder) Stop() *gomock.Call {
   494  	mr.mock.ctrl.T.Helper()
   495  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockServiceNode)(nil).Stop))
   496  }
   497  
   498  // String mocks base method.
   499  func (m *MockServiceNode) String() string {
   500  	m.ctrl.T.Helper()
   501  	ret := m.ctrl.Call(m, "String")
   502  	ret0, _ := ret[0].(string)
   503  	return ret0
   504  }
   505  
   506  // String indicates an expected call of String.
   507  func (mr *MockServiceNodeMockRecorder) String() *gomock.Call {
   508  	mr.mock.ctrl.T.Helper()
   509  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockServiceNode)(nil).String))
   510  }
   511  
   512  // Teardown mocks base method.
   513  func (m *MockServiceNode) Teardown() error {
   514  	m.ctrl.T.Helper()
   515  	ret := m.ctrl.Call(m, "Teardown")
   516  	ret0, _ := ret[0].(error)
   517  	return ret0
   518  }
   519  
   520  // Teardown indicates an expected call of Teardown.
   521  func (mr *MockServiceNodeMockRecorder) Teardown() *gomock.Call {
   522  	mr.mock.ctrl.T.Helper()
   523  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Teardown", reflect.TypeOf((*MockServiceNode)(nil).Teardown))
   524  }
   525  
   526  // TransferLocalFile mocks base method.
   527  func (m *MockServiceNode) TransferLocalFile(arg0 string, arg1 []string, arg2 bool) error {
   528  	m.ctrl.T.Helper()
   529  	ret := m.ctrl.Call(m, "TransferLocalFile", arg0, arg1, arg2)
   530  	ret0, _ := ret[0].(error)
   531  	return ret0
   532  }
   533  
   534  // TransferLocalFile indicates an expected call of TransferLocalFile.
   535  func (mr *MockServiceNodeMockRecorder) TransferLocalFile(arg0, arg1, arg2 interface{}) *gomock.Call {
   536  	mr.mock.ctrl.T.Helper()
   537  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransferLocalFile", reflect.TypeOf((*MockServiceNode)(nil).TransferLocalFile), arg0, arg1, arg2)
   538  }
   539  
   540  // Weight mocks base method.
   541  func (m *MockServiceNode) Weight() uint32 {
   542  	m.ctrl.T.Helper()
   543  	ret := m.ctrl.Call(m, "Weight")
   544  	ret0, _ := ret[0].(uint32)
   545  	return ret0
   546  }
   547  
   548  // Weight indicates an expected call of Weight.
   549  func (mr *MockServiceNodeMockRecorder) Weight() *gomock.Call {
   550  	mr.mock.ctrl.T.Helper()
   551  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Weight", reflect.TypeOf((*MockServiceNode)(nil).Weight))
   552  }
   553  
   554  // Zone mocks base method.
   555  func (m *MockServiceNode) Zone() string {
   556  	m.ctrl.T.Helper()
   557  	ret := m.ctrl.Call(m, "Zone")
   558  	ret0, _ := ret[0].(string)
   559  	return ret0
   560  }
   561  
   562  // Zone indicates an expected call of Zone.
   563  func (mr *MockServiceNodeMockRecorder) Zone() *gomock.Call {
   564  	mr.mock.ctrl.T.Helper()
   565  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Zone", reflect.TypeOf((*MockServiceNode)(nil).Zone))
   566  }
   567  
   568  // MockOptions is a mock of Options interface.
   569  type MockOptions struct {
   570  	ctrl     *gomock.Controller
   571  	recorder *MockOptionsMockRecorder
   572  }
   573  
   574  // MockOptionsMockRecorder is the mock recorder for MockOptions.
   575  type MockOptionsMockRecorder struct {
   576  	mock *MockOptions
   577  }
   578  
   579  // NewMockOptions creates a new mock instance.
   580  func NewMockOptions(ctrl *gomock.Controller) *MockOptions {
   581  	mock := &MockOptions{ctrl: ctrl}
   582  	mock.recorder = &MockOptionsMockRecorder{mock}
   583  	return mock
   584  }
   585  
   586  // EXPECT returns an object that allows the caller to indicate expected use.
   587  func (m *MockOptions) EXPECT() *MockOptionsMockRecorder {
   588  	return m.recorder
   589  }
   590  
   591  // HeartbeatOptions mocks base method.
   592  func (m *MockOptions) HeartbeatOptions() HeartbeatOptions {
   593  	m.ctrl.T.Helper()
   594  	ret := m.ctrl.Call(m, "HeartbeatOptions")
   595  	ret0, _ := ret[0].(HeartbeatOptions)
   596  	return ret0
   597  }
   598  
   599  // HeartbeatOptions indicates an expected call of HeartbeatOptions.
   600  func (mr *MockOptionsMockRecorder) HeartbeatOptions() *gomock.Call {
   601  	mr.mock.ctrl.T.Helper()
   602  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HeartbeatOptions", reflect.TypeOf((*MockOptions)(nil).HeartbeatOptions))
   603  }
   604  
   605  // InstrumentOptions mocks base method.
   606  func (m *MockOptions) InstrumentOptions() instrument.Options {
   607  	m.ctrl.T.Helper()
   608  	ret := m.ctrl.Call(m, "InstrumentOptions")
   609  	ret0, _ := ret[0].(instrument.Options)
   610  	return ret0
   611  }
   612  
   613  // InstrumentOptions indicates an expected call of InstrumentOptions.
   614  func (mr *MockOptionsMockRecorder) InstrumentOptions() *gomock.Call {
   615  	mr.mock.ctrl.T.Helper()
   616  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstrumentOptions", reflect.TypeOf((*MockOptions)(nil).InstrumentOptions))
   617  }
   618  
   619  // MaxPullSize mocks base method.
   620  func (m *MockOptions) MaxPullSize() int64 {
   621  	m.ctrl.T.Helper()
   622  	ret := m.ctrl.Call(m, "MaxPullSize")
   623  	ret0, _ := ret[0].(int64)
   624  	return ret0
   625  }
   626  
   627  // MaxPullSize indicates an expected call of MaxPullSize.
   628  func (mr *MockOptionsMockRecorder) MaxPullSize() *gomock.Call {
   629  	mr.mock.ctrl.T.Helper()
   630  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxPullSize", reflect.TypeOf((*MockOptions)(nil).MaxPullSize))
   631  }
   632  
   633  // OperationTimeout mocks base method.
   634  func (m *MockOptions) OperationTimeout() time.Duration {
   635  	m.ctrl.T.Helper()
   636  	ret := m.ctrl.Call(m, "OperationTimeout")
   637  	ret0, _ := ret[0].(time.Duration)
   638  	return ret0
   639  }
   640  
   641  // OperationTimeout indicates an expected call of OperationTimeout.
   642  func (mr *MockOptionsMockRecorder) OperationTimeout() *gomock.Call {
   643  	mr.mock.ctrl.T.Helper()
   644  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OperationTimeout", reflect.TypeOf((*MockOptions)(nil).OperationTimeout))
   645  }
   646  
   647  // OperatorClientFn mocks base method.
   648  func (m *MockOptions) OperatorClientFn() OperatorClientFn {
   649  	m.ctrl.T.Helper()
   650  	ret := m.ctrl.Call(m, "OperatorClientFn")
   651  	ret0, _ := ret[0].(OperatorClientFn)
   652  	return ret0
   653  }
   654  
   655  // OperatorClientFn indicates an expected call of OperatorClientFn.
   656  func (mr *MockOptionsMockRecorder) OperatorClientFn() *gomock.Call {
   657  	mr.mock.ctrl.T.Helper()
   658  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OperatorClientFn", reflect.TypeOf((*MockOptions)(nil).OperatorClientFn))
   659  }
   660  
   661  // Retrier mocks base method.
   662  func (m *MockOptions) Retrier() retry.Retrier {
   663  	m.ctrl.T.Helper()
   664  	ret := m.ctrl.Call(m, "Retrier")
   665  	ret0, _ := ret[0].(retry.Retrier)
   666  	return ret0
   667  }
   668  
   669  // Retrier indicates an expected call of Retrier.
   670  func (mr *MockOptionsMockRecorder) Retrier() *gomock.Call {
   671  	mr.mock.ctrl.T.Helper()
   672  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Retrier", reflect.TypeOf((*MockOptions)(nil).Retrier))
   673  }
   674  
   675  // SetHeartbeatOptions mocks base method.
   676  func (m *MockOptions) SetHeartbeatOptions(arg0 HeartbeatOptions) Options {
   677  	m.ctrl.T.Helper()
   678  	ret := m.ctrl.Call(m, "SetHeartbeatOptions", arg0)
   679  	ret0, _ := ret[0].(Options)
   680  	return ret0
   681  }
   682  
   683  // SetHeartbeatOptions indicates an expected call of SetHeartbeatOptions.
   684  func (mr *MockOptionsMockRecorder) SetHeartbeatOptions(arg0 interface{}) *gomock.Call {
   685  	mr.mock.ctrl.T.Helper()
   686  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeartbeatOptions", reflect.TypeOf((*MockOptions)(nil).SetHeartbeatOptions), arg0)
   687  }
   688  
   689  // SetInstrumentOptions mocks base method.
   690  func (m *MockOptions) SetInstrumentOptions(arg0 instrument.Options) Options {
   691  	m.ctrl.T.Helper()
   692  	ret := m.ctrl.Call(m, "SetInstrumentOptions", arg0)
   693  	ret0, _ := ret[0].(Options)
   694  	return ret0
   695  }
   696  
   697  // SetInstrumentOptions indicates an expected call of SetInstrumentOptions.
   698  func (mr *MockOptionsMockRecorder) SetInstrumentOptions(arg0 interface{}) *gomock.Call {
   699  	mr.mock.ctrl.T.Helper()
   700  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstrumentOptions", reflect.TypeOf((*MockOptions)(nil).SetInstrumentOptions), arg0)
   701  }
   702  
   703  // SetMaxPullSize mocks base method.
   704  func (m *MockOptions) SetMaxPullSize(arg0 int64) Options {
   705  	m.ctrl.T.Helper()
   706  	ret := m.ctrl.Call(m, "SetMaxPullSize", arg0)
   707  	ret0, _ := ret[0].(Options)
   708  	return ret0
   709  }
   710  
   711  // SetMaxPullSize indicates an expected call of SetMaxPullSize.
   712  func (mr *MockOptionsMockRecorder) SetMaxPullSize(arg0 interface{}) *gomock.Call {
   713  	mr.mock.ctrl.T.Helper()
   714  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMaxPullSize", reflect.TypeOf((*MockOptions)(nil).SetMaxPullSize), arg0)
   715  }
   716  
   717  // SetOperationTimeout mocks base method.
   718  func (m *MockOptions) SetOperationTimeout(arg0 time.Duration) Options {
   719  	m.ctrl.T.Helper()
   720  	ret := m.ctrl.Call(m, "SetOperationTimeout", arg0)
   721  	ret0, _ := ret[0].(Options)
   722  	return ret0
   723  }
   724  
   725  // SetOperationTimeout indicates an expected call of SetOperationTimeout.
   726  func (mr *MockOptionsMockRecorder) SetOperationTimeout(arg0 interface{}) *gomock.Call {
   727  	mr.mock.ctrl.T.Helper()
   728  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetOperationTimeout", reflect.TypeOf((*MockOptions)(nil).SetOperationTimeout), arg0)
   729  }
   730  
   731  // SetOperatorClientFn mocks base method.
   732  func (m *MockOptions) SetOperatorClientFn(arg0 OperatorClientFn) Options {
   733  	m.ctrl.T.Helper()
   734  	ret := m.ctrl.Call(m, "SetOperatorClientFn", arg0)
   735  	ret0, _ := ret[0].(Options)
   736  	return ret0
   737  }
   738  
   739  // SetOperatorClientFn indicates an expected call of SetOperatorClientFn.
   740  func (mr *MockOptionsMockRecorder) SetOperatorClientFn(arg0 interface{}) *gomock.Call {
   741  	mr.mock.ctrl.T.Helper()
   742  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetOperatorClientFn", reflect.TypeOf((*MockOptions)(nil).SetOperatorClientFn), arg0)
   743  }
   744  
   745  // SetRetrier mocks base method.
   746  func (m *MockOptions) SetRetrier(arg0 retry.Retrier) Options {
   747  	m.ctrl.T.Helper()
   748  	ret := m.ctrl.Call(m, "SetRetrier", arg0)
   749  	ret0, _ := ret[0].(Options)
   750  	return ret0
   751  }
   752  
   753  // SetRetrier indicates an expected call of SetRetrier.
   754  func (mr *MockOptionsMockRecorder) SetRetrier(arg0 interface{}) *gomock.Call {
   755  	mr.mock.ctrl.T.Helper()
   756  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRetrier", reflect.TypeOf((*MockOptions)(nil).SetRetrier), arg0)
   757  }
   758  
   759  // SetTransferBufferSize mocks base method.
   760  func (m *MockOptions) SetTransferBufferSize(arg0 int) Options {
   761  	m.ctrl.T.Helper()
   762  	ret := m.ctrl.Call(m, "SetTransferBufferSize", arg0)
   763  	ret0, _ := ret[0].(Options)
   764  	return ret0
   765  }
   766  
   767  // SetTransferBufferSize indicates an expected call of SetTransferBufferSize.
   768  func (mr *MockOptionsMockRecorder) SetTransferBufferSize(arg0 interface{}) *gomock.Call {
   769  	mr.mock.ctrl.T.Helper()
   770  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTransferBufferSize", reflect.TypeOf((*MockOptions)(nil).SetTransferBufferSize), arg0)
   771  }
   772  
   773  // TransferBufferSize mocks base method.
   774  func (m *MockOptions) TransferBufferSize() int {
   775  	m.ctrl.T.Helper()
   776  	ret := m.ctrl.Call(m, "TransferBufferSize")
   777  	ret0, _ := ret[0].(int)
   778  	return ret0
   779  }
   780  
   781  // TransferBufferSize indicates an expected call of TransferBufferSize.
   782  func (mr *MockOptionsMockRecorder) TransferBufferSize() *gomock.Call {
   783  	mr.mock.ctrl.T.Helper()
   784  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransferBufferSize", reflect.TypeOf((*MockOptions)(nil).TransferBufferSize))
   785  }
   786  
   787  // Validate mocks base method.
   788  func (m *MockOptions) Validate() error {
   789  	m.ctrl.T.Helper()
   790  	ret := m.ctrl.Call(m, "Validate")
   791  	ret0, _ := ret[0].(error)
   792  	return ret0
   793  }
   794  
   795  // Validate indicates an expected call of Validate.
   796  func (mr *MockOptionsMockRecorder) Validate() *gomock.Call {
   797  	mr.mock.ctrl.T.Helper()
   798  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockOptions)(nil).Validate))
   799  }