github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/api/provisioner/mocks/machine_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/api/provisioner (interfaces: MachineProvisioner) 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 provisioner "github.com/juju/juju/api/provisioner" 12 params "github.com/juju/juju/apiserver/params" 13 instance "github.com/juju/juju/core/instance" 14 status "github.com/juju/juju/core/status" 15 watcher "github.com/juju/juju/core/watcher" 16 version "github.com/juju/version" 17 names_v2 "gopkg.in/juju/names.v2" 18 ) 19 20 // MockMachineProvisioner is a mock of MachineProvisioner interface 21 type MockMachineProvisioner struct { 22 ctrl *gomock.Controller 23 recorder *MockMachineProvisionerMockRecorder 24 } 25 26 // MockMachineProvisionerMockRecorder is the mock recorder for MockMachineProvisioner 27 type MockMachineProvisionerMockRecorder struct { 28 mock *MockMachineProvisioner 29 } 30 31 // NewMockMachineProvisioner creates a new mock instance 32 func NewMockMachineProvisioner(ctrl *gomock.Controller) *MockMachineProvisioner { 33 mock := &MockMachineProvisioner{ctrl: ctrl} 34 mock.recorder = &MockMachineProvisionerMockRecorder{mock} 35 return mock 36 } 37 38 // EXPECT returns an object that allows the caller to indicate expected use 39 func (m *MockMachineProvisioner) EXPECT() *MockMachineProvisionerMockRecorder { 40 return m.recorder 41 } 42 43 // AvailabilityZone mocks base method 44 func (m *MockMachineProvisioner) AvailabilityZone() (string, error) { 45 ret := m.ctrl.Call(m, "AvailabilityZone") 46 ret0, _ := ret[0].(string) 47 ret1, _ := ret[1].(error) 48 return ret0, ret1 49 } 50 51 // AvailabilityZone indicates an expected call of AvailabilityZone 52 func (mr *MockMachineProvisionerMockRecorder) AvailabilityZone() *gomock.Call { 53 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AvailabilityZone", reflect.TypeOf((*MockMachineProvisioner)(nil).AvailabilityZone)) 54 } 55 56 // CharmProfileChangeInfo mocks base method 57 func (m *MockMachineProvisioner) CharmProfileChangeInfo() (provisioner.CharmProfileChangeInfo, error) { 58 ret := m.ctrl.Call(m, "CharmProfileChangeInfo") 59 ret0, _ := ret[0].(provisioner.CharmProfileChangeInfo) 60 ret1, _ := ret[1].(error) 61 return ret0, ret1 62 } 63 64 // CharmProfileChangeInfo indicates an expected call of CharmProfileChangeInfo 65 func (mr *MockMachineProvisionerMockRecorder) CharmProfileChangeInfo() *gomock.Call { 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CharmProfileChangeInfo", reflect.TypeOf((*MockMachineProvisioner)(nil).CharmProfileChangeInfo)) 67 } 68 69 // DistributionGroup mocks base method 70 func (m *MockMachineProvisioner) DistributionGroup() ([]instance.Id, error) { 71 ret := m.ctrl.Call(m, "DistributionGroup") 72 ret0, _ := ret[0].([]instance.Id) 73 ret1, _ := ret[1].(error) 74 return ret0, ret1 75 } 76 77 // DistributionGroup indicates an expected call of DistributionGroup 78 func (mr *MockMachineProvisionerMockRecorder) DistributionGroup() *gomock.Call { 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DistributionGroup", reflect.TypeOf((*MockMachineProvisioner)(nil).DistributionGroup)) 80 } 81 82 // EnsureDead mocks base method 83 func (m *MockMachineProvisioner) EnsureDead() error { 84 ret := m.ctrl.Call(m, "EnsureDead") 85 ret0, _ := ret[0].(error) 86 return ret0 87 } 88 89 // EnsureDead indicates an expected call of EnsureDead 90 func (mr *MockMachineProvisionerMockRecorder) EnsureDead() *gomock.Call { 91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnsureDead", reflect.TypeOf((*MockMachineProvisioner)(nil).EnsureDead)) 92 } 93 94 // Id mocks base method 95 func (m *MockMachineProvisioner) Id() string { 96 ret := m.ctrl.Call(m, "Id") 97 ret0, _ := ret[0].(string) 98 return ret0 99 } 100 101 // Id indicates an expected call of Id 102 func (mr *MockMachineProvisionerMockRecorder) Id() *gomock.Call { 103 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Id", reflect.TypeOf((*MockMachineProvisioner)(nil).Id)) 104 } 105 106 // InstanceId mocks base method 107 func (m *MockMachineProvisioner) InstanceId() (instance.Id, error) { 108 ret := m.ctrl.Call(m, "InstanceId") 109 ret0, _ := ret[0].(instance.Id) 110 ret1, _ := ret[1].(error) 111 return ret0, ret1 112 } 113 114 // InstanceId indicates an expected call of InstanceId 115 func (mr *MockMachineProvisionerMockRecorder) InstanceId() *gomock.Call { 116 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstanceId", reflect.TypeOf((*MockMachineProvisioner)(nil).InstanceId)) 117 } 118 119 // InstanceStatus mocks base method 120 func (m *MockMachineProvisioner) InstanceStatus() (status.Status, string, error) { 121 ret := m.ctrl.Call(m, "InstanceStatus") 122 ret0, _ := ret[0].(status.Status) 123 ret1, _ := ret[1].(string) 124 ret2, _ := ret[2].(error) 125 return ret0, ret1, ret2 126 } 127 128 // InstanceStatus indicates an expected call of InstanceStatus 129 func (mr *MockMachineProvisionerMockRecorder) InstanceStatus() *gomock.Call { 130 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstanceStatus", reflect.TypeOf((*MockMachineProvisioner)(nil).InstanceStatus)) 131 } 132 133 // KeepInstance mocks base method 134 func (m *MockMachineProvisioner) KeepInstance() (bool, error) { 135 ret := m.ctrl.Call(m, "KeepInstance") 136 ret0, _ := ret[0].(bool) 137 ret1, _ := ret[1].(error) 138 return ret0, ret1 139 } 140 141 // KeepInstance indicates an expected call of KeepInstance 142 func (mr *MockMachineProvisionerMockRecorder) KeepInstance() *gomock.Call { 143 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeepInstance", reflect.TypeOf((*MockMachineProvisioner)(nil).KeepInstance)) 144 } 145 146 // Life mocks base method 147 func (m *MockMachineProvisioner) Life() params.Life { 148 ret := m.ctrl.Call(m, "Life") 149 ret0, _ := ret[0].(params.Life) 150 return ret0 151 } 152 153 // Life indicates an expected call of Life 154 func (mr *MockMachineProvisionerMockRecorder) Life() *gomock.Call { 155 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Life", reflect.TypeOf((*MockMachineProvisioner)(nil).Life)) 156 } 157 158 // MachineTag mocks base method 159 func (m *MockMachineProvisioner) MachineTag() names_v2.MachineTag { 160 ret := m.ctrl.Call(m, "MachineTag") 161 ret0, _ := ret[0].(names_v2.MachineTag) 162 return ret0 163 } 164 165 // MachineTag indicates an expected call of MachineTag 166 func (mr *MockMachineProvisionerMockRecorder) MachineTag() *gomock.Call { 167 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MachineTag", reflect.TypeOf((*MockMachineProvisioner)(nil).MachineTag)) 168 } 169 170 // MarkForRemoval mocks base method 171 func (m *MockMachineProvisioner) MarkForRemoval() error { 172 ret := m.ctrl.Call(m, "MarkForRemoval") 173 ret0, _ := ret[0].(error) 174 return ret0 175 } 176 177 // MarkForRemoval indicates an expected call of MarkForRemoval 178 func (mr *MockMachineProvisionerMockRecorder) MarkForRemoval() *gomock.Call { 179 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkForRemoval", reflect.TypeOf((*MockMachineProvisioner)(nil).MarkForRemoval)) 180 } 181 182 // ModelAgentVersion mocks base method 183 func (m *MockMachineProvisioner) ModelAgentVersion() (*version.Number, error) { 184 ret := m.ctrl.Call(m, "ModelAgentVersion") 185 ret0, _ := ret[0].(*version.Number) 186 ret1, _ := ret[1].(error) 187 return ret0, ret1 188 } 189 190 // ModelAgentVersion indicates an expected call of ModelAgentVersion 191 func (mr *MockMachineProvisionerMockRecorder) ModelAgentVersion() *gomock.Call { 192 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModelAgentVersion", reflect.TypeOf((*MockMachineProvisioner)(nil).ModelAgentVersion)) 193 } 194 195 // ProvisioningInfo mocks base method 196 func (m *MockMachineProvisioner) ProvisioningInfo() (*params.ProvisioningInfo, error) { 197 ret := m.ctrl.Call(m, "ProvisioningInfo") 198 ret0, _ := ret[0].(*params.ProvisioningInfo) 199 ret1, _ := ret[1].(error) 200 return ret0, ret1 201 } 202 203 // ProvisioningInfo indicates an expected call of ProvisioningInfo 204 func (mr *MockMachineProvisionerMockRecorder) ProvisioningInfo() *gomock.Call { 205 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProvisioningInfo", reflect.TypeOf((*MockMachineProvisioner)(nil).ProvisioningInfo)) 206 } 207 208 // Refresh mocks base method 209 func (m *MockMachineProvisioner) Refresh() error { 210 ret := m.ctrl.Call(m, "Refresh") 211 ret0, _ := ret[0].(error) 212 return ret0 213 } 214 215 // Refresh indicates an expected call of Refresh 216 func (mr *MockMachineProvisionerMockRecorder) Refresh() *gomock.Call { 217 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Refresh", reflect.TypeOf((*MockMachineProvisioner)(nil).Refresh)) 218 } 219 220 // Remove mocks base method 221 func (m *MockMachineProvisioner) Remove() error { 222 ret := m.ctrl.Call(m, "Remove") 223 ret0, _ := ret[0].(error) 224 return ret0 225 } 226 227 // Remove indicates an expected call of Remove 228 func (mr *MockMachineProvisionerMockRecorder) Remove() *gomock.Call { 229 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockMachineProvisioner)(nil).Remove)) 230 } 231 232 // RemoveUpgradeCharmProfileData mocks base method 233 func (m *MockMachineProvisioner) RemoveUpgradeCharmProfileData() error { 234 ret := m.ctrl.Call(m, "RemoveUpgradeCharmProfileData") 235 ret0, _ := ret[0].(error) 236 return ret0 237 } 238 239 // RemoveUpgradeCharmProfileData indicates an expected call of RemoveUpgradeCharmProfileData 240 func (mr *MockMachineProvisionerMockRecorder) RemoveUpgradeCharmProfileData() *gomock.Call { 241 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveUpgradeCharmProfileData", reflect.TypeOf((*MockMachineProvisioner)(nil).RemoveUpgradeCharmProfileData)) 242 } 243 244 // SetCharmProfiles mocks base method 245 func (m *MockMachineProvisioner) SetCharmProfiles(arg0 []string) error { 246 ret := m.ctrl.Call(m, "SetCharmProfiles", arg0) 247 ret0, _ := ret[0].(error) 248 return ret0 249 } 250 251 // SetCharmProfiles indicates an expected call of SetCharmProfiles 252 func (mr *MockMachineProvisionerMockRecorder) SetCharmProfiles(arg0 interface{}) *gomock.Call { 253 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCharmProfiles", reflect.TypeOf((*MockMachineProvisioner)(nil).SetCharmProfiles), arg0) 254 } 255 256 // SetInstanceInfo mocks base method 257 func (m *MockMachineProvisioner) SetInstanceInfo(arg0 instance.Id, arg1, arg2 string, arg3 *instance.HardwareCharacteristics, arg4 []params.NetworkConfig, arg5 []params.Volume, arg6 map[string]params.VolumeAttachmentInfo, arg7 []string) error { 258 ret := m.ctrl.Call(m, "SetInstanceInfo", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) 259 ret0, _ := ret[0].(error) 260 return ret0 261 } 262 263 // SetInstanceInfo indicates an expected call of SetInstanceInfo 264 func (mr *MockMachineProvisionerMockRecorder) SetInstanceInfo(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 interface{}) *gomock.Call { 265 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstanceInfo", reflect.TypeOf((*MockMachineProvisioner)(nil).SetInstanceInfo), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) 266 } 267 268 // SetInstanceStatus mocks base method 269 func (m *MockMachineProvisioner) SetInstanceStatus(arg0 status.Status, arg1 string, arg2 map[string]interface{}) error { 270 ret := m.ctrl.Call(m, "SetInstanceStatus", arg0, arg1, arg2) 271 ret0, _ := ret[0].(error) 272 return ret0 273 } 274 275 // SetInstanceStatus indicates an expected call of SetInstanceStatus 276 func (mr *MockMachineProvisionerMockRecorder) SetInstanceStatus(arg0, arg1, arg2 interface{}) *gomock.Call { 277 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstanceStatus", reflect.TypeOf((*MockMachineProvisioner)(nil).SetInstanceStatus), arg0, arg1, arg2) 278 } 279 280 // SetPassword mocks base method 281 func (m *MockMachineProvisioner) SetPassword(arg0 string) error { 282 ret := m.ctrl.Call(m, "SetPassword", arg0) 283 ret0, _ := ret[0].(error) 284 return ret0 285 } 286 287 // SetPassword indicates an expected call of SetPassword 288 func (mr *MockMachineProvisionerMockRecorder) SetPassword(arg0 interface{}) *gomock.Call { 289 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPassword", reflect.TypeOf((*MockMachineProvisioner)(nil).SetPassword), arg0) 290 } 291 292 // SetStatus mocks base method 293 func (m *MockMachineProvisioner) SetStatus(arg0 status.Status, arg1 string, arg2 map[string]interface{}) error { 294 ret := m.ctrl.Call(m, "SetStatus", arg0, arg1, arg2) 295 ret0, _ := ret[0].(error) 296 return ret0 297 } 298 299 // SetStatus indicates an expected call of SetStatus 300 func (mr *MockMachineProvisionerMockRecorder) SetStatus(arg0, arg1, arg2 interface{}) *gomock.Call { 301 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetStatus", reflect.TypeOf((*MockMachineProvisioner)(nil).SetStatus), arg0, arg1, arg2) 302 } 303 304 // SetSupportedContainers mocks base method 305 func (m *MockMachineProvisioner) SetSupportedContainers(arg0 ...instance.ContainerType) error { 306 varargs := []interface{}{} 307 for _, a := range arg0 { 308 varargs = append(varargs, a) 309 } 310 ret := m.ctrl.Call(m, "SetSupportedContainers", varargs...) 311 ret0, _ := ret[0].(error) 312 return ret0 313 } 314 315 // SetSupportedContainers indicates an expected call of SetSupportedContainers 316 func (mr *MockMachineProvisionerMockRecorder) SetSupportedContainers(arg0 ...interface{}) *gomock.Call { 317 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSupportedContainers", reflect.TypeOf((*MockMachineProvisioner)(nil).SetSupportedContainers), arg0...) 318 } 319 320 // SetUpgradeCharmProfileComplete mocks base method 321 func (m *MockMachineProvisioner) SetUpgradeCharmProfileComplete(arg0 string) error { 322 ret := m.ctrl.Call(m, "SetUpgradeCharmProfileComplete", arg0) 323 ret0, _ := ret[0].(error) 324 return ret0 325 } 326 327 // SetUpgradeCharmProfileComplete indicates an expected call of SetUpgradeCharmProfileComplete 328 func (mr *MockMachineProvisionerMockRecorder) SetUpgradeCharmProfileComplete(arg0 interface{}) *gomock.Call { 329 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetUpgradeCharmProfileComplete", reflect.TypeOf((*MockMachineProvisioner)(nil).SetUpgradeCharmProfileComplete), arg0) 330 } 331 332 // Status mocks base method 333 func (m *MockMachineProvisioner) Status() (status.Status, string, error) { 334 ret := m.ctrl.Call(m, "Status") 335 ret0, _ := ret[0].(status.Status) 336 ret1, _ := ret[1].(string) 337 ret2, _ := ret[2].(error) 338 return ret0, ret1, ret2 339 } 340 341 // Status indicates an expected call of Status 342 func (mr *MockMachineProvisionerMockRecorder) Status() *gomock.Call { 343 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockMachineProvisioner)(nil).Status)) 344 } 345 346 // String mocks base method 347 func (m *MockMachineProvisioner) String() string { 348 ret := m.ctrl.Call(m, "String") 349 ret0, _ := ret[0].(string) 350 return ret0 351 } 352 353 // String indicates an expected call of String 354 func (mr *MockMachineProvisionerMockRecorder) String() *gomock.Call { 355 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockMachineProvisioner)(nil).String)) 356 } 357 358 // SupportsNoContainers mocks base method 359 func (m *MockMachineProvisioner) SupportsNoContainers() error { 360 ret := m.ctrl.Call(m, "SupportsNoContainers") 361 ret0, _ := ret[0].(error) 362 return ret0 363 } 364 365 // SupportsNoContainers indicates an expected call of SupportsNoContainers 366 func (mr *MockMachineProvisionerMockRecorder) SupportsNoContainers() *gomock.Call { 367 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SupportsNoContainers", reflect.TypeOf((*MockMachineProvisioner)(nil).SupportsNoContainers)) 368 } 369 370 // Tag mocks base method 371 func (m *MockMachineProvisioner) Tag() names_v2.Tag { 372 ret := m.ctrl.Call(m, "Tag") 373 ret0, _ := ret[0].(names_v2.Tag) 374 return ret0 375 } 376 377 // Tag indicates an expected call of Tag 378 func (mr *MockMachineProvisionerMockRecorder) Tag() *gomock.Call { 379 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tag", reflect.TypeOf((*MockMachineProvisioner)(nil).Tag)) 380 } 381 382 // WatchAllContainers mocks base method 383 func (m *MockMachineProvisioner) WatchAllContainers() (watcher.StringsWatcher, error) { 384 ret := m.ctrl.Call(m, "WatchAllContainers") 385 ret0, _ := ret[0].(watcher.StringsWatcher) 386 ret1, _ := ret[1].(error) 387 return ret0, ret1 388 } 389 390 // WatchAllContainers indicates an expected call of WatchAllContainers 391 func (mr *MockMachineProvisionerMockRecorder) WatchAllContainers() *gomock.Call { 392 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchAllContainers", reflect.TypeOf((*MockMachineProvisioner)(nil).WatchAllContainers)) 393 } 394 395 // WatchContainers mocks base method 396 func (m *MockMachineProvisioner) WatchContainers(arg0 instance.ContainerType) (watcher.StringsWatcher, error) { 397 ret := m.ctrl.Call(m, "WatchContainers", arg0) 398 ret0, _ := ret[0].(watcher.StringsWatcher) 399 ret1, _ := ret[1].(error) 400 return ret0, ret1 401 } 402 403 // WatchContainers indicates an expected call of WatchContainers 404 func (mr *MockMachineProvisionerMockRecorder) WatchContainers(arg0 interface{}) *gomock.Call { 405 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchContainers", reflect.TypeOf((*MockMachineProvisioner)(nil).WatchContainers), arg0) 406 } 407 408 // WatchContainersCharmProfiles mocks base method 409 func (m *MockMachineProvisioner) WatchContainersCharmProfiles(arg0 instance.ContainerType) (watcher.StringsWatcher, error) { 410 ret := m.ctrl.Call(m, "WatchContainersCharmProfiles", arg0) 411 ret0, _ := ret[0].(watcher.StringsWatcher) 412 ret1, _ := ret[1].(error) 413 return ret0, ret1 414 } 415 416 // WatchContainersCharmProfiles indicates an expected call of WatchContainersCharmProfiles 417 func (mr *MockMachineProvisionerMockRecorder) WatchContainersCharmProfiles(arg0 interface{}) *gomock.Call { 418 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchContainersCharmProfiles", reflect.TypeOf((*MockMachineProvisioner)(nil).WatchContainersCharmProfiles), arg0) 419 }