github.com/m3db/m3@v1.5.0/src/aggregator/tools/deploy/client_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/aggregator/tools/deploy/client.go 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 deploy is a generated GoMock package. 25 package deploy 26 27 import ( 28 "reflect" 29 30 "github.com/m3db/m3/src/aggregator/aggregator" 31 32 "github.com/golang/mock/gomock" 33 ) 34 35 // MockAggregatorClient is a mock of AggregatorClient interface. 36 type MockAggregatorClient struct { 37 ctrl *gomock.Controller 38 recorder *MockAggregatorClientMockRecorder 39 } 40 41 // MockAggregatorClientMockRecorder is the mock recorder for MockAggregatorClient. 42 type MockAggregatorClientMockRecorder struct { 43 mock *MockAggregatorClient 44 } 45 46 // NewMockAggregatorClient creates a new mock instance. 47 func NewMockAggregatorClient(ctrl *gomock.Controller) *MockAggregatorClient { 48 mock := &MockAggregatorClient{ctrl: ctrl} 49 mock.recorder = &MockAggregatorClientMockRecorder{mock} 50 return mock 51 } 52 53 // EXPECT returns an object that allows the caller to indicate expected use. 54 func (m *MockAggregatorClient) EXPECT() *MockAggregatorClientMockRecorder { 55 return m.recorder 56 } 57 58 // IsHealthy mocks base method. 59 func (m *MockAggregatorClient) IsHealthy(instance string) error { 60 m.ctrl.T.Helper() 61 ret := m.ctrl.Call(m, "IsHealthy", instance) 62 ret0, _ := ret[0].(error) 63 return ret0 64 } 65 66 // IsHealthy indicates an expected call of IsHealthy. 67 func (mr *MockAggregatorClientMockRecorder) IsHealthy(instance interface{}) *gomock.Call { 68 mr.mock.ctrl.T.Helper() 69 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsHealthy", reflect.TypeOf((*MockAggregatorClient)(nil).IsHealthy), instance) 70 } 71 72 // Resign mocks base method. 73 func (m *MockAggregatorClient) Resign(instance string) error { 74 m.ctrl.T.Helper() 75 ret := m.ctrl.Call(m, "Resign", instance) 76 ret0, _ := ret[0].(error) 77 return ret0 78 } 79 80 // Resign indicates an expected call of Resign. 81 func (mr *MockAggregatorClientMockRecorder) Resign(instance interface{}) *gomock.Call { 82 mr.mock.ctrl.T.Helper() 83 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Resign", reflect.TypeOf((*MockAggregatorClient)(nil).Resign), instance) 84 } 85 86 // Status mocks base method. 87 func (m *MockAggregatorClient) Status(instance string) (aggregator.RuntimeStatus, error) { 88 m.ctrl.T.Helper() 89 ret := m.ctrl.Call(m, "Status", instance) 90 ret0, _ := ret[0].(aggregator.RuntimeStatus) 91 ret1, _ := ret[1].(error) 92 return ret0, ret1 93 } 94 95 // Status indicates an expected call of Status. 96 func (mr *MockAggregatorClientMockRecorder) Status(instance interface{}) *gomock.Call { 97 mr.mock.ctrl.T.Helper() 98 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockAggregatorClient)(nil).Status), instance) 99 }