github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/worker/caasapplicationprovisioner/mocks/broker_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/worker/caasapplicationprovisioner (interfaces: CAASBroker) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package mocks -destination mocks/broker_mock.go github.com/juju/juju/worker/caasapplicationprovisioner CAASBroker 7 // 8 9 // Package mocks is a generated GoMock package. 10 package mocks 11 12 import ( 13 reflect "reflect" 14 15 caas "github.com/juju/juju/caas" 16 names "github.com/juju/names/v5" 17 gomock "go.uber.org/mock/gomock" 18 ) 19 20 // MockCAASBroker is a mock of CAASBroker interface. 21 type MockCAASBroker struct { 22 ctrl *gomock.Controller 23 recorder *MockCAASBrokerMockRecorder 24 } 25 26 // MockCAASBrokerMockRecorder is the mock recorder for MockCAASBroker. 27 type MockCAASBrokerMockRecorder struct { 28 mock *MockCAASBroker 29 } 30 31 // NewMockCAASBroker creates a new mock instance. 32 func NewMockCAASBroker(ctrl *gomock.Controller) *MockCAASBroker { 33 mock := &MockCAASBroker{ctrl: ctrl} 34 mock.recorder = &MockCAASBrokerMockRecorder{mock} 35 return mock 36 } 37 38 // EXPECT returns an object that allows the caller to indicate expected use. 39 func (m *MockCAASBroker) EXPECT() *MockCAASBrokerMockRecorder { 40 return m.recorder 41 } 42 43 // AnnotateUnit mocks base method. 44 func (m *MockCAASBroker) AnnotateUnit(arg0 string, arg1 caas.DeploymentMode, arg2 string, arg3 names.UnitTag) error { 45 m.ctrl.T.Helper() 46 ret := m.ctrl.Call(m, "AnnotateUnit", arg0, arg1, arg2, arg3) 47 ret0, _ := ret[0].(error) 48 return ret0 49 } 50 51 // AnnotateUnit indicates an expected call of AnnotateUnit. 52 func (mr *MockCAASBrokerMockRecorder) AnnotateUnit(arg0, arg1, arg2, arg3 any) *gomock.Call { 53 mr.mock.ctrl.T.Helper() 54 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AnnotateUnit", reflect.TypeOf((*MockCAASBroker)(nil).AnnotateUnit), arg0, arg1, arg2, arg3) 55 } 56 57 // Application mocks base method. 58 func (m *MockCAASBroker) Application(arg0 string, arg1 caas.DeploymentType) caas.Application { 59 m.ctrl.T.Helper() 60 ret := m.ctrl.Call(m, "Application", arg0, arg1) 61 ret0, _ := ret[0].(caas.Application) 62 return ret0 63 } 64 65 // Application indicates an expected call of Application. 66 func (mr *MockCAASBrokerMockRecorder) Application(arg0, arg1 any) *gomock.Call { 67 mr.mock.ctrl.T.Helper() 68 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Application", reflect.TypeOf((*MockCAASBroker)(nil).Application), arg0, arg1) 69 } 70 71 // DeleteOperator mocks base method. 72 func (m *MockCAASBroker) DeleteOperator(arg0 string) error { 73 m.ctrl.T.Helper() 74 ret := m.ctrl.Call(m, "DeleteOperator", arg0) 75 ret0, _ := ret[0].(error) 76 return ret0 77 } 78 79 // DeleteOperator indicates an expected call of DeleteOperator. 80 func (mr *MockCAASBrokerMockRecorder) DeleteOperator(arg0 any) *gomock.Call { 81 mr.mock.ctrl.T.Helper() 82 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOperator", reflect.TypeOf((*MockCAASBroker)(nil).DeleteOperator), arg0) 83 } 84 85 // DeleteService mocks base method. 86 func (m *MockCAASBroker) DeleteService(arg0 string) error { 87 m.ctrl.T.Helper() 88 ret := m.ctrl.Call(m, "DeleteService", arg0) 89 ret0, _ := ret[0].(error) 90 return ret0 91 } 92 93 // DeleteService indicates an expected call of DeleteService. 94 func (mr *MockCAASBrokerMockRecorder) DeleteService(arg0 any) *gomock.Call { 95 mr.mock.ctrl.T.Helper() 96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteService", reflect.TypeOf((*MockCAASBroker)(nil).DeleteService), arg0) 97 } 98 99 // OperatorExists mocks base method. 100 func (m *MockCAASBroker) OperatorExists(arg0 string) (caas.DeploymentState, error) { 101 m.ctrl.T.Helper() 102 ret := m.ctrl.Call(m, "OperatorExists", arg0) 103 ret0, _ := ret[0].(caas.DeploymentState) 104 ret1, _ := ret[1].(error) 105 return ret0, ret1 106 } 107 108 // OperatorExists indicates an expected call of OperatorExists. 109 func (mr *MockCAASBrokerMockRecorder) OperatorExists(arg0 any) *gomock.Call { 110 mr.mock.ctrl.T.Helper() 111 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OperatorExists", reflect.TypeOf((*MockCAASBroker)(nil).OperatorExists), arg0) 112 } 113 114 // Units mocks base method. 115 func (m *MockCAASBroker) Units(arg0 string, arg1 caas.DeploymentMode) ([]caas.Unit, error) { 116 m.ctrl.T.Helper() 117 ret := m.ctrl.Call(m, "Units", arg0, arg1) 118 ret0, _ := ret[0].([]caas.Unit) 119 ret1, _ := ret[1].(error) 120 return ret0, ret1 121 } 122 123 // Units indicates an expected call of Units. 124 func (mr *MockCAASBrokerMockRecorder) Units(arg0, arg1 any) *gomock.Call { 125 mr.mock.ctrl.T.Helper() 126 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Units", reflect.TypeOf((*MockCAASBroker)(nil).Units), arg0, arg1) 127 }