github.com/juju/juju@v0.0.0-20240327075706-a90865de2538/worker/containerbroker/mocks/machine_mock.go (about)

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