github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/aggregator/tools/deploy/manager_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: ../../tools/deploy/manager.go
     3  
     4  // Copyright (c) 2022 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/golang/mock/gomock"
    31  )
    32  
    33  // MockInstance is a mock of Instance interface.
    34  type MockInstance struct {
    35  	ctrl     *gomock.Controller
    36  	recorder *MockInstanceMockRecorder
    37  }
    38  
    39  // MockInstanceMockRecorder is the mock recorder for MockInstance.
    40  type MockInstanceMockRecorder struct {
    41  	mock *MockInstance
    42  }
    43  
    44  // NewMockInstance creates a new mock instance.
    45  func NewMockInstance(ctrl *gomock.Controller) *MockInstance {
    46  	mock := &MockInstance{ctrl: ctrl}
    47  	mock.recorder = &MockInstanceMockRecorder{mock}
    48  	return mock
    49  }
    50  
    51  // EXPECT returns an object that allows the caller to indicate expected use.
    52  func (m *MockInstance) EXPECT() *MockInstanceMockRecorder {
    53  	return m.recorder
    54  }
    55  
    56  // ID mocks base method.
    57  func (m *MockInstance) ID() string {
    58  	m.ctrl.T.Helper()
    59  	ret := m.ctrl.Call(m, "ID")
    60  	ret0, _ := ret[0].(string)
    61  	return ret0
    62  }
    63  
    64  // ID indicates an expected call of ID.
    65  func (mr *MockInstanceMockRecorder) ID() *gomock.Call {
    66  	mr.mock.ctrl.T.Helper()
    67  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockInstance)(nil).ID))
    68  }
    69  
    70  // IsDeploying mocks base method.
    71  func (m *MockInstance) IsDeploying() bool {
    72  	m.ctrl.T.Helper()
    73  	ret := m.ctrl.Call(m, "IsDeploying")
    74  	ret0, _ := ret[0].(bool)
    75  	return ret0
    76  }
    77  
    78  // IsDeploying indicates an expected call of IsDeploying.
    79  func (mr *MockInstanceMockRecorder) IsDeploying() *gomock.Call {
    80  	mr.mock.ctrl.T.Helper()
    81  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsDeploying", reflect.TypeOf((*MockInstance)(nil).IsDeploying))
    82  }
    83  
    84  // IsHealthy mocks base method.
    85  func (m *MockInstance) IsHealthy() bool {
    86  	m.ctrl.T.Helper()
    87  	ret := m.ctrl.Call(m, "IsHealthy")
    88  	ret0, _ := ret[0].(bool)
    89  	return ret0
    90  }
    91  
    92  // IsHealthy indicates an expected call of IsHealthy.
    93  func (mr *MockInstanceMockRecorder) IsHealthy() *gomock.Call {
    94  	mr.mock.ctrl.T.Helper()
    95  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsHealthy", reflect.TypeOf((*MockInstance)(nil).IsHealthy))
    96  }
    97  
    98  // Revision mocks base method.
    99  func (m *MockInstance) Revision() string {
   100  	m.ctrl.T.Helper()
   101  	ret := m.ctrl.Call(m, "Revision")
   102  	ret0, _ := ret[0].(string)
   103  	return ret0
   104  }
   105  
   106  // Revision indicates an expected call of Revision.
   107  func (mr *MockInstanceMockRecorder) Revision() *gomock.Call {
   108  	mr.mock.ctrl.T.Helper()
   109  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Revision", reflect.TypeOf((*MockInstance)(nil).Revision))
   110  }
   111  
   112  // MockManager is a mock of Manager interface.
   113  type MockManager struct {
   114  	ctrl     *gomock.Controller
   115  	recorder *MockManagerMockRecorder
   116  }
   117  
   118  // MockManagerMockRecorder is the mock recorder for MockManager.
   119  type MockManagerMockRecorder struct {
   120  	mock *MockManager
   121  }
   122  
   123  // NewMockManager creates a new mock instance.
   124  func NewMockManager(ctrl *gomock.Controller) *MockManager {
   125  	mock := &MockManager{ctrl: ctrl}
   126  	mock.recorder = &MockManagerMockRecorder{mock}
   127  	return mock
   128  }
   129  
   130  // EXPECT returns an object that allows the caller to indicate expected use.
   131  func (m *MockManager) EXPECT() *MockManagerMockRecorder {
   132  	return m.recorder
   133  }
   134  
   135  // Deploy mocks base method.
   136  func (m *MockManager) Deploy(instanceIDs []string, revision string) error {
   137  	m.ctrl.T.Helper()
   138  	ret := m.ctrl.Call(m, "Deploy", instanceIDs, revision)
   139  	ret0, _ := ret[0].(error)
   140  	return ret0
   141  }
   142  
   143  // Deploy indicates an expected call of Deploy.
   144  func (mr *MockManagerMockRecorder) Deploy(instanceIDs, revision interface{}) *gomock.Call {
   145  	mr.mock.ctrl.T.Helper()
   146  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deploy", reflect.TypeOf((*MockManager)(nil).Deploy), instanceIDs, revision)
   147  }
   148  
   149  // Query mocks base method.
   150  func (m *MockManager) Query(instanceIDs []string) ([]Instance, error) {
   151  	m.ctrl.T.Helper()
   152  	ret := m.ctrl.Call(m, "Query", instanceIDs)
   153  	ret0, _ := ret[0].([]Instance)
   154  	ret1, _ := ret[1].(error)
   155  	return ret0, ret1
   156  }
   157  
   158  // Query indicates an expected call of Query.
   159  func (mr *MockManagerMockRecorder) Query(instanceIDs interface{}) *gomock.Call {
   160  	mr.mock.ctrl.T.Helper()
   161  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockManager)(nil).Query), instanceIDs)
   162  }
   163  
   164  // QueryAll mocks base method.
   165  func (m *MockManager) QueryAll() ([]Instance, error) {
   166  	m.ctrl.T.Helper()
   167  	ret := m.ctrl.Call(m, "QueryAll")
   168  	ret0, _ := ret[0].([]Instance)
   169  	ret1, _ := ret[1].(error)
   170  	return ret0, ret1
   171  }
   172  
   173  // QueryAll indicates an expected call of QueryAll.
   174  func (mr *MockManagerMockRecorder) QueryAll() *gomock.Call {
   175  	mr.mock.ctrl.T.Helper()
   176  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryAll", reflect.TypeOf((*MockManager)(nil).QueryAll))
   177  }