github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/caas/kubernetes/provider/resources/mocks/resources_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/caas/kubernetes/provider/resources (interfaces: Resource,Applier)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package mocks -destination mocks/resources_mock.go github.com/juju/juju/caas/kubernetes/provider/resources Resource,Applier
     7  //
     8  
     9  // Package mocks is a generated GoMock package.
    10  package mocks
    11  
    12  import (
    13  	context "context"
    14  	reflect "reflect"
    15  	time "time"
    16  
    17  	resources "github.com/juju/juju/caas/kubernetes/provider/resources"
    18  	status "github.com/juju/juju/core/status"
    19  	gomock "go.uber.org/mock/gomock"
    20  	v1 "k8s.io/api/core/v1"
    21  	v10 "k8s.io/apimachinery/pkg/apis/meta/v1"
    22  	kubernetes "k8s.io/client-go/kubernetes"
    23  )
    24  
    25  // MockResource is a mock of Resource interface.
    26  type MockResource struct {
    27  	ctrl     *gomock.Controller
    28  	recorder *MockResourceMockRecorder
    29  }
    30  
    31  // MockResourceMockRecorder is the mock recorder for MockResource.
    32  type MockResourceMockRecorder struct {
    33  	mock *MockResource
    34  }
    35  
    36  // NewMockResource creates a new mock instance.
    37  func NewMockResource(ctrl *gomock.Controller) *MockResource {
    38  	mock := &MockResource{ctrl: ctrl}
    39  	mock.recorder = &MockResourceMockRecorder{mock}
    40  	return mock
    41  }
    42  
    43  // EXPECT returns an object that allows the caller to indicate expected use.
    44  func (m *MockResource) EXPECT() *MockResourceMockRecorder {
    45  	return m.recorder
    46  }
    47  
    48  // Apply mocks base method.
    49  func (m *MockResource) Apply(arg0 context.Context, arg1 kubernetes.Interface) error {
    50  	m.ctrl.T.Helper()
    51  	ret := m.ctrl.Call(m, "Apply", arg0, arg1)
    52  	ret0, _ := ret[0].(error)
    53  	return ret0
    54  }
    55  
    56  // Apply indicates an expected call of Apply.
    57  func (mr *MockResourceMockRecorder) Apply(arg0, arg1 any) *gomock.Call {
    58  	mr.mock.ctrl.T.Helper()
    59  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockResource)(nil).Apply), arg0, arg1)
    60  }
    61  
    62  // Clone mocks base method.
    63  func (m *MockResource) Clone() resources.Resource {
    64  	m.ctrl.T.Helper()
    65  	ret := m.ctrl.Call(m, "Clone")
    66  	ret0, _ := ret[0].(resources.Resource)
    67  	return ret0
    68  }
    69  
    70  // Clone indicates an expected call of Clone.
    71  func (mr *MockResourceMockRecorder) Clone() *gomock.Call {
    72  	mr.mock.ctrl.T.Helper()
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clone", reflect.TypeOf((*MockResource)(nil).Clone))
    74  }
    75  
    76  // ComputeStatus mocks base method.
    77  func (m *MockResource) ComputeStatus(arg0 context.Context, arg1 kubernetes.Interface, arg2 time.Time) (string, status.Status, time.Time, error) {
    78  	m.ctrl.T.Helper()
    79  	ret := m.ctrl.Call(m, "ComputeStatus", arg0, arg1, arg2)
    80  	ret0, _ := ret[0].(string)
    81  	ret1, _ := ret[1].(status.Status)
    82  	ret2, _ := ret[2].(time.Time)
    83  	ret3, _ := ret[3].(error)
    84  	return ret0, ret1, ret2, ret3
    85  }
    86  
    87  // ComputeStatus indicates an expected call of ComputeStatus.
    88  func (mr *MockResourceMockRecorder) ComputeStatus(arg0, arg1, arg2 any) *gomock.Call {
    89  	mr.mock.ctrl.T.Helper()
    90  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ComputeStatus", reflect.TypeOf((*MockResource)(nil).ComputeStatus), arg0, arg1, arg2)
    91  }
    92  
    93  // Delete mocks base method.
    94  func (m *MockResource) Delete(arg0 context.Context, arg1 kubernetes.Interface) error {
    95  	m.ctrl.T.Helper()
    96  	ret := m.ctrl.Call(m, "Delete", arg0, arg1)
    97  	ret0, _ := ret[0].(error)
    98  	return ret0
    99  }
   100  
   101  // Delete indicates an expected call of Delete.
   102  func (mr *MockResourceMockRecorder) Delete(arg0, arg1 any) *gomock.Call {
   103  	mr.mock.ctrl.T.Helper()
   104  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockResource)(nil).Delete), arg0, arg1)
   105  }
   106  
   107  // Events mocks base method.
   108  func (m *MockResource) Events(arg0 context.Context, arg1 kubernetes.Interface) ([]v1.Event, error) {
   109  	m.ctrl.T.Helper()
   110  	ret := m.ctrl.Call(m, "Events", arg0, arg1)
   111  	ret0, _ := ret[0].([]v1.Event)
   112  	ret1, _ := ret[1].(error)
   113  	return ret0, ret1
   114  }
   115  
   116  // Events indicates an expected call of Events.
   117  func (mr *MockResourceMockRecorder) Events(arg0, arg1 any) *gomock.Call {
   118  	mr.mock.ctrl.T.Helper()
   119  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Events", reflect.TypeOf((*MockResource)(nil).Events), arg0, arg1)
   120  }
   121  
   122  // Get mocks base method.
   123  func (m *MockResource) Get(arg0 context.Context, arg1 kubernetes.Interface) error {
   124  	m.ctrl.T.Helper()
   125  	ret := m.ctrl.Call(m, "Get", arg0, arg1)
   126  	ret0, _ := ret[0].(error)
   127  	return ret0
   128  }
   129  
   130  // Get indicates an expected call of Get.
   131  func (mr *MockResourceMockRecorder) Get(arg0, arg1 any) *gomock.Call {
   132  	mr.mock.ctrl.T.Helper()
   133  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockResource)(nil).Get), arg0, arg1)
   134  }
   135  
   136  // GetObjectMeta mocks base method.
   137  func (m *MockResource) GetObjectMeta() v10.Object {
   138  	m.ctrl.T.Helper()
   139  	ret := m.ctrl.Call(m, "GetObjectMeta")
   140  	ret0, _ := ret[0].(v10.Object)
   141  	return ret0
   142  }
   143  
   144  // GetObjectMeta indicates an expected call of GetObjectMeta.
   145  func (mr *MockResourceMockRecorder) GetObjectMeta() *gomock.Call {
   146  	mr.mock.ctrl.T.Helper()
   147  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetObjectMeta", reflect.TypeOf((*MockResource)(nil).GetObjectMeta))
   148  }
   149  
   150  // ID mocks base method.
   151  func (m *MockResource) ID() resources.ID {
   152  	m.ctrl.T.Helper()
   153  	ret := m.ctrl.Call(m, "ID")
   154  	ret0, _ := ret[0].(resources.ID)
   155  	return ret0
   156  }
   157  
   158  // ID indicates an expected call of ID.
   159  func (mr *MockResourceMockRecorder) ID() *gomock.Call {
   160  	mr.mock.ctrl.T.Helper()
   161  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockResource)(nil).ID))
   162  }
   163  
   164  // String mocks base method.
   165  func (m *MockResource) String() string {
   166  	m.ctrl.T.Helper()
   167  	ret := m.ctrl.Call(m, "String")
   168  	ret0, _ := ret[0].(string)
   169  	return ret0
   170  }
   171  
   172  // String indicates an expected call of String.
   173  func (mr *MockResourceMockRecorder) String() *gomock.Call {
   174  	mr.mock.ctrl.T.Helper()
   175  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockResource)(nil).String))
   176  }
   177  
   178  // MockApplier is a mock of Applier interface.
   179  type MockApplier struct {
   180  	ctrl     *gomock.Controller
   181  	recorder *MockApplierMockRecorder
   182  }
   183  
   184  // MockApplierMockRecorder is the mock recorder for MockApplier.
   185  type MockApplierMockRecorder struct {
   186  	mock *MockApplier
   187  }
   188  
   189  // NewMockApplier creates a new mock instance.
   190  func NewMockApplier(ctrl *gomock.Controller) *MockApplier {
   191  	mock := &MockApplier{ctrl: ctrl}
   192  	mock.recorder = &MockApplierMockRecorder{mock}
   193  	return mock
   194  }
   195  
   196  // EXPECT returns an object that allows the caller to indicate expected use.
   197  func (m *MockApplier) EXPECT() *MockApplierMockRecorder {
   198  	return m.recorder
   199  }
   200  
   201  // Apply mocks base method.
   202  func (m *MockApplier) Apply(arg0 ...resources.Resource) {
   203  	m.ctrl.T.Helper()
   204  	varargs := []any{}
   205  	for _, a := range arg0 {
   206  		varargs = append(varargs, a)
   207  	}
   208  	m.ctrl.Call(m, "Apply", varargs...)
   209  }
   210  
   211  // Apply indicates an expected call of Apply.
   212  func (mr *MockApplierMockRecorder) Apply(arg0 ...any) *gomock.Call {
   213  	mr.mock.ctrl.T.Helper()
   214  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockApplier)(nil).Apply), arg0...)
   215  }
   216  
   217  // ApplySet mocks base method.
   218  func (m *MockApplier) ApplySet(arg0, arg1 []resources.Resource) {
   219  	m.ctrl.T.Helper()
   220  	m.ctrl.Call(m, "ApplySet", arg0, arg1)
   221  }
   222  
   223  // ApplySet indicates an expected call of ApplySet.
   224  func (mr *MockApplierMockRecorder) ApplySet(arg0, arg1 any) *gomock.Call {
   225  	mr.mock.ctrl.T.Helper()
   226  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplySet", reflect.TypeOf((*MockApplier)(nil).ApplySet), arg0, arg1)
   227  }
   228  
   229  // Delete mocks base method.
   230  func (m *MockApplier) Delete(arg0 ...resources.Resource) {
   231  	m.ctrl.T.Helper()
   232  	varargs := []any{}
   233  	for _, a := range arg0 {
   234  		varargs = append(varargs, a)
   235  	}
   236  	m.ctrl.Call(m, "Delete", varargs...)
   237  }
   238  
   239  // Delete indicates an expected call of Delete.
   240  func (mr *MockApplierMockRecorder) Delete(arg0 ...any) *gomock.Call {
   241  	mr.mock.ctrl.T.Helper()
   242  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockApplier)(nil).Delete), arg0...)
   243  }
   244  
   245  // Run mocks base method.
   246  func (m *MockApplier) Run(arg0 context.Context, arg1 kubernetes.Interface, arg2 bool) error {
   247  	m.ctrl.T.Helper()
   248  	ret := m.ctrl.Call(m, "Run", arg0, arg1, arg2)
   249  	ret0, _ := ret[0].(error)
   250  	return ret0
   251  }
   252  
   253  // Run indicates an expected call of Run.
   254  func (mr *MockApplierMockRecorder) Run(arg0, arg1, arg2 any) *gomock.Call {
   255  	mr.mock.ctrl.T.Helper()
   256  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockApplier)(nil).Run), arg0, arg1, arg2)
   257  }