github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/provider/common/mocks/zoned_environ.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/provider/common (interfaces: ZonedEnviron) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 constraints "github.com/juju/juju/core/constraints" 12 instance "github.com/juju/juju/core/instance" 13 environs "github.com/juju/juju/environs" 14 config "github.com/juju/juju/environs/config" 15 context "github.com/juju/juju/environs/context" 16 instances "github.com/juju/juju/environs/instances" 17 common "github.com/juju/juju/provider/common" 18 storage "github.com/juju/juju/storage" 19 version "github.com/juju/version" 20 ) 21 22 // MockZonedEnviron is a mock of ZonedEnviron interface 23 type MockZonedEnviron struct { 24 ctrl *gomock.Controller 25 recorder *MockZonedEnvironMockRecorder 26 } 27 28 // MockZonedEnvironMockRecorder is the mock recorder for MockZonedEnviron 29 type MockZonedEnvironMockRecorder struct { 30 mock *MockZonedEnviron 31 } 32 33 // NewMockZonedEnviron creates a new mock instance 34 func NewMockZonedEnviron(ctrl *gomock.Controller) *MockZonedEnviron { 35 mock := &MockZonedEnviron{ctrl: ctrl} 36 mock.recorder = &MockZonedEnvironMockRecorder{mock} 37 return mock 38 } 39 40 // EXPECT returns an object that allows the caller to indicate expected use 41 func (m *MockZonedEnviron) EXPECT() *MockZonedEnvironMockRecorder { 42 return m.recorder 43 } 44 45 // AdoptResources mocks base method 46 func (m *MockZonedEnviron) AdoptResources(arg0 context.ProviderCallContext, arg1 string, arg2 version.Number) error { 47 ret := m.ctrl.Call(m, "AdoptResources", arg0, arg1, arg2) 48 ret0, _ := ret[0].(error) 49 return ret0 50 } 51 52 // AdoptResources indicates an expected call of AdoptResources 53 func (mr *MockZonedEnvironMockRecorder) AdoptResources(arg0, arg1, arg2 interface{}) *gomock.Call { 54 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdoptResources", reflect.TypeOf((*MockZonedEnviron)(nil).AdoptResources), arg0, arg1, arg2) 55 } 56 57 // AllInstances mocks base method 58 func (m *MockZonedEnviron) AllInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error) { 59 ret := m.ctrl.Call(m, "AllInstances", arg0) 60 ret0, _ := ret[0].([]instances.Instance) 61 ret1, _ := ret[1].(error) 62 return ret0, ret1 63 } 64 65 // AllInstances indicates an expected call of AllInstances 66 func (mr *MockZonedEnvironMockRecorder) AllInstances(arg0 interface{}) *gomock.Call { 67 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllInstances", reflect.TypeOf((*MockZonedEnviron)(nil).AllInstances), arg0) 68 } 69 70 // AvailabilityZones mocks base method 71 func (m *MockZonedEnviron) AvailabilityZones(arg0 context.ProviderCallContext) ([]common.AvailabilityZone, error) { 72 ret := m.ctrl.Call(m, "AvailabilityZones", arg0) 73 ret0, _ := ret[0].([]common.AvailabilityZone) 74 ret1, _ := ret[1].(error) 75 return ret0, ret1 76 } 77 78 // AvailabilityZones indicates an expected call of AvailabilityZones 79 func (mr *MockZonedEnvironMockRecorder) AvailabilityZones(arg0 interface{}) *gomock.Call { 80 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AvailabilityZones", reflect.TypeOf((*MockZonedEnviron)(nil).AvailabilityZones), arg0) 81 } 82 83 // Bootstrap mocks base method 84 func (m *MockZonedEnviron) Bootstrap(arg0 environs.BootstrapContext, arg1 context.ProviderCallContext, arg2 environs.BootstrapParams) (*environs.BootstrapResult, error) { 85 ret := m.ctrl.Call(m, "Bootstrap", arg0, arg1, arg2) 86 ret0, _ := ret[0].(*environs.BootstrapResult) 87 ret1, _ := ret[1].(error) 88 return ret0, ret1 89 } 90 91 // Bootstrap indicates an expected call of Bootstrap 92 func (mr *MockZonedEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 interface{}) *gomock.Call { 93 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrap", reflect.TypeOf((*MockZonedEnviron)(nil).Bootstrap), arg0, arg1, arg2) 94 } 95 96 // Config mocks base method 97 func (m *MockZonedEnviron) Config() *config.Config { 98 ret := m.ctrl.Call(m, "Config") 99 ret0, _ := ret[0].(*config.Config) 100 return ret0 101 } 102 103 // Config indicates an expected call of Config 104 func (mr *MockZonedEnvironMockRecorder) Config() *gomock.Call { 105 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Config", reflect.TypeOf((*MockZonedEnviron)(nil).Config)) 106 } 107 108 // ConstraintsValidator mocks base method 109 func (m *MockZonedEnviron) ConstraintsValidator(arg0 context.ProviderCallContext) (constraints.Validator, error) { 110 ret := m.ctrl.Call(m, "ConstraintsValidator", arg0) 111 ret0, _ := ret[0].(constraints.Validator) 112 ret1, _ := ret[1].(error) 113 return ret0, ret1 114 } 115 116 // ConstraintsValidator indicates an expected call of ConstraintsValidator 117 func (mr *MockZonedEnvironMockRecorder) ConstraintsValidator(arg0 interface{}) *gomock.Call { 118 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConstraintsValidator", reflect.TypeOf((*MockZonedEnviron)(nil).ConstraintsValidator), arg0) 119 } 120 121 // ControllerInstances mocks base method 122 func (m *MockZonedEnviron) ControllerInstances(arg0 context.ProviderCallContext, arg1 string) ([]instance.Id, error) { 123 ret := m.ctrl.Call(m, "ControllerInstances", arg0, arg1) 124 ret0, _ := ret[0].([]instance.Id) 125 ret1, _ := ret[1].(error) 126 return ret0, ret1 127 } 128 129 // ControllerInstances indicates an expected call of ControllerInstances 130 func (mr *MockZonedEnvironMockRecorder) ControllerInstances(arg0, arg1 interface{}) *gomock.Call { 131 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ControllerInstances", reflect.TypeOf((*MockZonedEnviron)(nil).ControllerInstances), arg0, arg1) 132 } 133 134 // Create mocks base method 135 func (m *MockZonedEnviron) Create(arg0 context.ProviderCallContext, arg1 environs.CreateParams) error { 136 ret := m.ctrl.Call(m, "Create", arg0, arg1) 137 ret0, _ := ret[0].(error) 138 return ret0 139 } 140 141 // Create indicates an expected call of Create 142 func (mr *MockZonedEnvironMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call { 143 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockZonedEnviron)(nil).Create), arg0, arg1) 144 } 145 146 // DeriveAvailabilityZones mocks base method 147 func (m *MockZonedEnviron) DeriveAvailabilityZones(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) ([]string, error) { 148 ret := m.ctrl.Call(m, "DeriveAvailabilityZones", arg0, arg1) 149 ret0, _ := ret[0].([]string) 150 ret1, _ := ret[1].(error) 151 return ret0, ret1 152 } 153 154 // DeriveAvailabilityZones indicates an expected call of DeriveAvailabilityZones 155 func (mr *MockZonedEnvironMockRecorder) DeriveAvailabilityZones(arg0, arg1 interface{}) *gomock.Call { 156 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeriveAvailabilityZones", reflect.TypeOf((*MockZonedEnviron)(nil).DeriveAvailabilityZones), arg0, arg1) 157 } 158 159 // Destroy mocks base method 160 func (m *MockZonedEnviron) Destroy(arg0 context.ProviderCallContext) error { 161 ret := m.ctrl.Call(m, "Destroy", arg0) 162 ret0, _ := ret[0].(error) 163 return ret0 164 } 165 166 // Destroy indicates an expected call of Destroy 167 func (mr *MockZonedEnvironMockRecorder) Destroy(arg0 interface{}) *gomock.Call { 168 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Destroy", reflect.TypeOf((*MockZonedEnviron)(nil).Destroy), arg0) 169 } 170 171 // DestroyController mocks base method 172 func (m *MockZonedEnviron) DestroyController(arg0 context.ProviderCallContext, arg1 string) error { 173 ret := m.ctrl.Call(m, "DestroyController", arg0, arg1) 174 ret0, _ := ret[0].(error) 175 return ret0 176 } 177 178 // DestroyController indicates an expected call of DestroyController 179 func (mr *MockZonedEnvironMockRecorder) DestroyController(arg0, arg1 interface{}) *gomock.Call { 180 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DestroyController", reflect.TypeOf((*MockZonedEnviron)(nil).DestroyController), arg0, arg1) 181 } 182 183 // InstanceAvailabilityZoneNames mocks base method 184 func (m *MockZonedEnviron) InstanceAvailabilityZoneNames(arg0 context.ProviderCallContext, arg1 []instance.Id) ([]string, error) { 185 ret := m.ctrl.Call(m, "InstanceAvailabilityZoneNames", arg0, arg1) 186 ret0, _ := ret[0].([]string) 187 ret1, _ := ret[1].(error) 188 return ret0, ret1 189 } 190 191 // InstanceAvailabilityZoneNames indicates an expected call of InstanceAvailabilityZoneNames 192 func (mr *MockZonedEnvironMockRecorder) InstanceAvailabilityZoneNames(arg0, arg1 interface{}) *gomock.Call { 193 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstanceAvailabilityZoneNames", reflect.TypeOf((*MockZonedEnviron)(nil).InstanceAvailabilityZoneNames), arg0, arg1) 194 } 195 196 // InstanceTypes mocks base method 197 func (m *MockZonedEnviron) InstanceTypes(arg0 context.ProviderCallContext, arg1 constraints.Value) (instances.InstanceTypesWithCostMetadata, error) { 198 ret := m.ctrl.Call(m, "InstanceTypes", arg0, arg1) 199 ret0, _ := ret[0].(instances.InstanceTypesWithCostMetadata) 200 ret1, _ := ret[1].(error) 201 return ret0, ret1 202 } 203 204 // InstanceTypes indicates an expected call of InstanceTypes 205 func (mr *MockZonedEnvironMockRecorder) InstanceTypes(arg0, arg1 interface{}) *gomock.Call { 206 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstanceTypes", reflect.TypeOf((*MockZonedEnviron)(nil).InstanceTypes), arg0, arg1) 207 } 208 209 // Instances mocks base method 210 func (m *MockZonedEnviron) Instances(arg0 context.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error) { 211 ret := m.ctrl.Call(m, "Instances", arg0, arg1) 212 ret0, _ := ret[0].([]instances.Instance) 213 ret1, _ := ret[1].(error) 214 return ret0, ret1 215 } 216 217 // Instances indicates an expected call of Instances 218 func (mr *MockZonedEnvironMockRecorder) Instances(arg0, arg1 interface{}) *gomock.Call { 219 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Instances", reflect.TypeOf((*MockZonedEnviron)(nil).Instances), arg0, arg1) 220 } 221 222 // MaintainInstance mocks base method 223 func (m *MockZonedEnviron) MaintainInstance(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) error { 224 ret := m.ctrl.Call(m, "MaintainInstance", arg0, arg1) 225 ret0, _ := ret[0].(error) 226 return ret0 227 } 228 229 // MaintainInstance indicates an expected call of MaintainInstance 230 func (mr *MockZonedEnvironMockRecorder) MaintainInstance(arg0, arg1 interface{}) *gomock.Call { 231 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaintainInstance", reflect.TypeOf((*MockZonedEnviron)(nil).MaintainInstance), arg0, arg1) 232 } 233 234 // PrecheckInstance mocks base method 235 func (m *MockZonedEnviron) PrecheckInstance(arg0 context.ProviderCallContext, arg1 environs.PrecheckInstanceParams) error { 236 ret := m.ctrl.Call(m, "PrecheckInstance", arg0, arg1) 237 ret0, _ := ret[0].(error) 238 return ret0 239 } 240 241 // PrecheckInstance indicates an expected call of PrecheckInstance 242 func (mr *MockZonedEnvironMockRecorder) PrecheckInstance(arg0, arg1 interface{}) *gomock.Call { 243 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrecheckInstance", reflect.TypeOf((*MockZonedEnviron)(nil).PrecheckInstance), arg0, arg1) 244 } 245 246 // PrepareForBootstrap mocks base method 247 func (m *MockZonedEnviron) PrepareForBootstrap(arg0 environs.BootstrapContext) error { 248 ret := m.ctrl.Call(m, "PrepareForBootstrap", arg0) 249 ret0, _ := ret[0].(error) 250 return ret0 251 } 252 253 // PrepareForBootstrap indicates an expected call of PrepareForBootstrap 254 func (mr *MockZonedEnvironMockRecorder) PrepareForBootstrap(arg0 interface{}) *gomock.Call { 255 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareForBootstrap", reflect.TypeOf((*MockZonedEnviron)(nil).PrepareForBootstrap), arg0) 256 } 257 258 // Provider mocks base method 259 func (m *MockZonedEnviron) Provider() environs.EnvironProvider { 260 ret := m.ctrl.Call(m, "Provider") 261 ret0, _ := ret[0].(environs.EnvironProvider) 262 return ret0 263 } 264 265 // Provider indicates an expected call of Provider 266 func (mr *MockZonedEnvironMockRecorder) Provider() *gomock.Call { 267 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Provider", reflect.TypeOf((*MockZonedEnviron)(nil).Provider)) 268 } 269 270 // SetConfig mocks base method 271 func (m *MockZonedEnviron) SetConfig(arg0 *config.Config) error { 272 ret := m.ctrl.Call(m, "SetConfig", arg0) 273 ret0, _ := ret[0].(error) 274 return ret0 275 } 276 277 // SetConfig indicates an expected call of SetConfig 278 func (mr *MockZonedEnvironMockRecorder) SetConfig(arg0 interface{}) *gomock.Call { 279 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetConfig", reflect.TypeOf((*MockZonedEnviron)(nil).SetConfig), arg0) 280 } 281 282 // StartInstance mocks base method 283 func (m *MockZonedEnviron) StartInstance(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error) { 284 ret := m.ctrl.Call(m, "StartInstance", arg0, arg1) 285 ret0, _ := ret[0].(*environs.StartInstanceResult) 286 ret1, _ := ret[1].(error) 287 return ret0, ret1 288 } 289 290 // StartInstance indicates an expected call of StartInstance 291 func (mr *MockZonedEnvironMockRecorder) StartInstance(arg0, arg1 interface{}) *gomock.Call { 292 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartInstance", reflect.TypeOf((*MockZonedEnviron)(nil).StartInstance), arg0, arg1) 293 } 294 295 // StopInstances mocks base method 296 func (m *MockZonedEnviron) StopInstances(arg0 context.ProviderCallContext, arg1 ...instance.Id) error { 297 varargs := []interface{}{arg0} 298 for _, a := range arg1 { 299 varargs = append(varargs, a) 300 } 301 ret := m.ctrl.Call(m, "StopInstances", varargs...) 302 ret0, _ := ret[0].(error) 303 return ret0 304 } 305 306 // StopInstances indicates an expected call of StopInstances 307 func (mr *MockZonedEnvironMockRecorder) StopInstances(arg0 interface{}, arg1 ...interface{}) *gomock.Call { 308 varargs := append([]interface{}{arg0}, arg1...) 309 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopInstances", reflect.TypeOf((*MockZonedEnviron)(nil).StopInstances), varargs...) 310 } 311 312 // StorageProvider mocks base method 313 func (m *MockZonedEnviron) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error) { 314 ret := m.ctrl.Call(m, "StorageProvider", arg0) 315 ret0, _ := ret[0].(storage.Provider) 316 ret1, _ := ret[1].(error) 317 return ret0, ret1 318 } 319 320 // StorageProvider indicates an expected call of StorageProvider 321 func (mr *MockZonedEnvironMockRecorder) StorageProvider(arg0 interface{}) *gomock.Call { 322 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StorageProvider", reflect.TypeOf((*MockZonedEnviron)(nil).StorageProvider), arg0) 323 } 324 325 // StorageProviderTypes mocks base method 326 func (m *MockZonedEnviron) StorageProviderTypes() ([]storage.ProviderType, error) { 327 ret := m.ctrl.Call(m, "StorageProviderTypes") 328 ret0, _ := ret[0].([]storage.ProviderType) 329 ret1, _ := ret[1].(error) 330 return ret0, ret1 331 } 332 333 // StorageProviderTypes indicates an expected call of StorageProviderTypes 334 func (mr *MockZonedEnvironMockRecorder) StorageProviderTypes() *gomock.Call { 335 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StorageProviderTypes", reflect.TypeOf((*MockZonedEnviron)(nil).StorageProviderTypes)) 336 }