github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/worker/provisioner/mocks/provisioner.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/worker/provisioner (interfaces: ContainerMachine,ContainerMachineGetter,TaskAPI)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package mocks -destination mocks/provisioner.go github.com/juju/juju/worker/provisioner ContainerMachine,ContainerMachineGetter,TaskAPI
     7  //
     8  
     9  // Package mocks is a generated GoMock package.
    10  package mocks
    11  
    12  import (
    13  	reflect "reflect"
    14  
    15  	provisioner "github.com/juju/juju/api/agent/provisioner"
    16  	instance "github.com/juju/juju/core/instance"
    17  	life "github.com/juju/juju/core/life"
    18  	watcher "github.com/juju/juju/core/watcher"
    19  	params "github.com/juju/juju/rpc/params"
    20  	provisioner0 "github.com/juju/juju/worker/provisioner"
    21  	names "github.com/juju/names/v5"
    22  	gomock "go.uber.org/mock/gomock"
    23  )
    24  
    25  // MockContainerMachine is a mock of ContainerMachine interface.
    26  type MockContainerMachine struct {
    27  	ctrl     *gomock.Controller
    28  	recorder *MockContainerMachineMockRecorder
    29  }
    30  
    31  // MockContainerMachineMockRecorder is the mock recorder for MockContainerMachine.
    32  type MockContainerMachineMockRecorder struct {
    33  	mock *MockContainerMachine
    34  }
    35  
    36  // NewMockContainerMachine creates a new mock instance.
    37  func NewMockContainerMachine(ctrl *gomock.Controller) *MockContainerMachine {
    38  	mock := &MockContainerMachine{ctrl: ctrl}
    39  	mock.recorder = &MockContainerMachineMockRecorder{mock}
    40  	return mock
    41  }
    42  
    43  // EXPECT returns an object that allows the caller to indicate expected use.
    44  func (m *MockContainerMachine) EXPECT() *MockContainerMachineMockRecorder {
    45  	return m.recorder
    46  }
    47  
    48  // AvailabilityZone mocks base method.
    49  func (m *MockContainerMachine) 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 *MockContainerMachineMockRecorder) AvailabilityZone() *gomock.Call {
    59  	mr.mock.ctrl.T.Helper()
    60  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AvailabilityZone", reflect.TypeOf((*MockContainerMachine)(nil).AvailabilityZone))
    61  }
    62  
    63  // Life mocks base method.
    64  func (m *MockContainerMachine) Life() life.Value {
    65  	m.ctrl.T.Helper()
    66  	ret := m.ctrl.Call(m, "Life")
    67  	ret0, _ := ret[0].(life.Value)
    68  	return ret0
    69  }
    70  
    71  // Life indicates an expected call of Life.
    72  func (mr *MockContainerMachineMockRecorder) Life() *gomock.Call {
    73  	mr.mock.ctrl.T.Helper()
    74  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Life", reflect.TypeOf((*MockContainerMachine)(nil).Life))
    75  }
    76  
    77  // SupportedContainers mocks base method.
    78  func (m *MockContainerMachine) SupportedContainers() ([]instance.ContainerType, bool, error) {
    79  	m.ctrl.T.Helper()
    80  	ret := m.ctrl.Call(m, "SupportedContainers")
    81  	ret0, _ := ret[0].([]instance.ContainerType)
    82  	ret1, _ := ret[1].(bool)
    83  	ret2, _ := ret[2].(error)
    84  	return ret0, ret1, ret2
    85  }
    86  
    87  // SupportedContainers indicates an expected call of SupportedContainers.
    88  func (mr *MockContainerMachineMockRecorder) SupportedContainers() *gomock.Call {
    89  	mr.mock.ctrl.T.Helper()
    90  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SupportedContainers", reflect.TypeOf((*MockContainerMachine)(nil).SupportedContainers))
    91  }
    92  
    93  // WatchContainers mocks base method.
    94  func (m *MockContainerMachine) WatchContainers(arg0 instance.ContainerType) (watcher.StringsWatcher, error) {
    95  	m.ctrl.T.Helper()
    96  	ret := m.ctrl.Call(m, "WatchContainers", arg0)
    97  	ret0, _ := ret[0].(watcher.StringsWatcher)
    98  	ret1, _ := ret[1].(error)
    99  	return ret0, ret1
   100  }
   101  
   102  // WatchContainers indicates an expected call of WatchContainers.
   103  func (mr *MockContainerMachineMockRecorder) WatchContainers(arg0 any) *gomock.Call {
   104  	mr.mock.ctrl.T.Helper()
   105  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchContainers", reflect.TypeOf((*MockContainerMachine)(nil).WatchContainers), arg0)
   106  }
   107  
   108  // MockContainerMachineGetter is a mock of ContainerMachineGetter interface.
   109  type MockContainerMachineGetter struct {
   110  	ctrl     *gomock.Controller
   111  	recorder *MockContainerMachineGetterMockRecorder
   112  }
   113  
   114  // MockContainerMachineGetterMockRecorder is the mock recorder for MockContainerMachineGetter.
   115  type MockContainerMachineGetterMockRecorder struct {
   116  	mock *MockContainerMachineGetter
   117  }
   118  
   119  // NewMockContainerMachineGetter creates a new mock instance.
   120  func NewMockContainerMachineGetter(ctrl *gomock.Controller) *MockContainerMachineGetter {
   121  	mock := &MockContainerMachineGetter{ctrl: ctrl}
   122  	mock.recorder = &MockContainerMachineGetterMockRecorder{mock}
   123  	return mock
   124  }
   125  
   126  // EXPECT returns an object that allows the caller to indicate expected use.
   127  func (m *MockContainerMachineGetter) EXPECT() *MockContainerMachineGetterMockRecorder {
   128  	return m.recorder
   129  }
   130  
   131  // Machines mocks base method.
   132  func (m *MockContainerMachineGetter) Machines(arg0 ...names.MachineTag) ([]provisioner0.ContainerMachineResult, error) {
   133  	m.ctrl.T.Helper()
   134  	varargs := []any{}
   135  	for _, a := range arg0 {
   136  		varargs = append(varargs, a)
   137  	}
   138  	ret := m.ctrl.Call(m, "Machines", varargs...)
   139  	ret0, _ := ret[0].([]provisioner0.ContainerMachineResult)
   140  	ret1, _ := ret[1].(error)
   141  	return ret0, ret1
   142  }
   143  
   144  // Machines indicates an expected call of Machines.
   145  func (mr *MockContainerMachineGetterMockRecorder) Machines(arg0 ...any) *gomock.Call {
   146  	mr.mock.ctrl.T.Helper()
   147  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Machines", reflect.TypeOf((*MockContainerMachineGetter)(nil).Machines), arg0...)
   148  }
   149  
   150  // MockTaskAPI is a mock of TaskAPI interface.
   151  type MockTaskAPI struct {
   152  	ctrl     *gomock.Controller
   153  	recorder *MockTaskAPIMockRecorder
   154  }
   155  
   156  // MockTaskAPIMockRecorder is the mock recorder for MockTaskAPI.
   157  type MockTaskAPIMockRecorder struct {
   158  	mock *MockTaskAPI
   159  }
   160  
   161  // NewMockTaskAPI creates a new mock instance.
   162  func NewMockTaskAPI(ctrl *gomock.Controller) *MockTaskAPI {
   163  	mock := &MockTaskAPI{ctrl: ctrl}
   164  	mock.recorder = &MockTaskAPIMockRecorder{mock}
   165  	return mock
   166  }
   167  
   168  // EXPECT returns an object that allows the caller to indicate expected use.
   169  func (m *MockTaskAPI) EXPECT() *MockTaskAPIMockRecorder {
   170  	return m.recorder
   171  }
   172  
   173  // Machines mocks base method.
   174  func (m *MockTaskAPI) Machines(arg0 ...names.MachineTag) ([]provisioner.MachineResult, error) {
   175  	m.ctrl.T.Helper()
   176  	varargs := []any{}
   177  	for _, a := range arg0 {
   178  		varargs = append(varargs, a)
   179  	}
   180  	ret := m.ctrl.Call(m, "Machines", varargs...)
   181  	ret0, _ := ret[0].([]provisioner.MachineResult)
   182  	ret1, _ := ret[1].(error)
   183  	return ret0, ret1
   184  }
   185  
   186  // Machines indicates an expected call of Machines.
   187  func (mr *MockTaskAPIMockRecorder) Machines(arg0 ...any) *gomock.Call {
   188  	mr.mock.ctrl.T.Helper()
   189  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Machines", reflect.TypeOf((*MockTaskAPI)(nil).Machines), arg0...)
   190  }
   191  
   192  // MachinesWithTransientErrors mocks base method.
   193  func (m *MockTaskAPI) MachinesWithTransientErrors() ([]provisioner.MachineStatusResult, error) {
   194  	m.ctrl.T.Helper()
   195  	ret := m.ctrl.Call(m, "MachinesWithTransientErrors")
   196  	ret0, _ := ret[0].([]provisioner.MachineStatusResult)
   197  	ret1, _ := ret[1].(error)
   198  	return ret0, ret1
   199  }
   200  
   201  // MachinesWithTransientErrors indicates an expected call of MachinesWithTransientErrors.
   202  func (mr *MockTaskAPIMockRecorder) MachinesWithTransientErrors() *gomock.Call {
   203  	mr.mock.ctrl.T.Helper()
   204  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MachinesWithTransientErrors", reflect.TypeOf((*MockTaskAPI)(nil).MachinesWithTransientErrors))
   205  }
   206  
   207  // ProvisioningInfo mocks base method.
   208  func (m *MockTaskAPI) ProvisioningInfo(arg0 []names.MachineTag) (params.ProvisioningInfoResults, error) {
   209  	m.ctrl.T.Helper()
   210  	ret := m.ctrl.Call(m, "ProvisioningInfo", arg0)
   211  	ret0, _ := ret[0].(params.ProvisioningInfoResults)
   212  	ret1, _ := ret[1].(error)
   213  	return ret0, ret1
   214  }
   215  
   216  // ProvisioningInfo indicates an expected call of ProvisioningInfo.
   217  func (mr *MockTaskAPIMockRecorder) ProvisioningInfo(arg0 any) *gomock.Call {
   218  	mr.mock.ctrl.T.Helper()
   219  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProvisioningInfo", reflect.TypeOf((*MockTaskAPI)(nil).ProvisioningInfo), arg0)
   220  }