github.com/verrazzano/verrazzano@v1.7.0/application-operator/mocks/controller_client_mock.go (about)

     1  // Copyright (c) 2021, 2023, Oracle and/or its affiliates.
     2  // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  //
     4  
     5  // Code generated by MockGen. DO NOT EDIT.
     6  // Source: sigs.k8s.io/controller-runtime/pkg/client (interfaces: Client,StatusWriter)
     7  
     8  // Package mocks is a generated GoMock package.
     9  package mocks
    10  
    11  import (
    12  	context "context"
    13  	reflect "reflect"
    14  
    15  	gomock "github.com/golang/mock/gomock"
    16  	meta "k8s.io/apimachinery/pkg/api/meta"
    17  	runtime "k8s.io/apimachinery/pkg/runtime"
    18  	types "k8s.io/apimachinery/pkg/types"
    19  	client "sigs.k8s.io/controller-runtime/pkg/client"
    20  )
    21  
    22  // MockClient is a mock of Client interface.
    23  type MockClient struct {
    24  	ctrl     *gomock.Controller
    25  	recorder *MockClientMockRecorder
    26  }
    27  
    28  // MockClientMockRecorder is the mock recorder for MockClient.
    29  type MockClientMockRecorder struct {
    30  	mock *MockClient
    31  }
    32  
    33  // NewMockClient creates a new mock instance.
    34  func NewMockClient(ctrl *gomock.Controller) *MockClient {
    35  	mock := &MockClient{ctrl: ctrl}
    36  	mock.recorder = &MockClientMockRecorder{mock}
    37  	return mock
    38  }
    39  
    40  // EXPECT returns an object that allows the caller to indicate expected use.
    41  func (m *MockClient) EXPECT() *MockClientMockRecorder {
    42  	return m.recorder
    43  }
    44  
    45  // Create mocks base method.
    46  func (m *MockClient) Create(arg0 context.Context, arg1 client.Object, arg2 ...client.CreateOption) error {
    47  	m.ctrl.T.Helper()
    48  	varargs := []interface{}{arg0, arg1}
    49  	for _, a := range arg2 {
    50  		varargs = append(varargs, a)
    51  	}
    52  	ret := m.ctrl.Call(m, "Create", varargs...)
    53  	ret0, _ := ret[0].(error)
    54  	return ret0
    55  }
    56  
    57  // Create indicates an expected call of Create.
    58  func (mr *MockClientMockRecorder) Create(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
    59  	mr.mock.ctrl.T.Helper()
    60  	varargs := append([]interface{}{arg0, arg1}, arg2...)
    61  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockClient)(nil).Create), varargs...)
    62  }
    63  
    64  // Delete mocks base method.
    65  func (m *MockClient) Delete(arg0 context.Context, arg1 client.Object, arg2 ...client.DeleteOption) error {
    66  	m.ctrl.T.Helper()
    67  	varargs := []interface{}{arg0, arg1}
    68  	for _, a := range arg2 {
    69  		varargs = append(varargs, a)
    70  	}
    71  	ret := m.ctrl.Call(m, "Delete", varargs...)
    72  	ret0, _ := ret[0].(error)
    73  	return ret0
    74  }
    75  
    76  // Delete indicates an expected call of Delete.
    77  func (mr *MockClientMockRecorder) Delete(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
    78  	mr.mock.ctrl.T.Helper()
    79  	varargs := append([]interface{}{arg0, arg1}, arg2...)
    80  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockClient)(nil).Delete), varargs...)
    81  }
    82  
    83  // DeleteAllOf mocks base method.
    84  func (m *MockClient) DeleteAllOf(arg0 context.Context, arg1 client.Object, arg2 ...client.DeleteAllOfOption) error {
    85  	m.ctrl.T.Helper()
    86  	varargs := []interface{}{arg0, arg1}
    87  	for _, a := range arg2 {
    88  		varargs = append(varargs, a)
    89  	}
    90  	ret := m.ctrl.Call(m, "DeleteAllOf", varargs...)
    91  	ret0, _ := ret[0].(error)
    92  	return ret0
    93  }
    94  
    95  // DeleteAllOf indicates an expected call of DeleteAllOf.
    96  func (mr *MockClientMockRecorder) DeleteAllOf(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
    97  	mr.mock.ctrl.T.Helper()
    98  	varargs := append([]interface{}{arg0, arg1}, arg2...)
    99  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAllOf", reflect.TypeOf((*MockClient)(nil).DeleteAllOf), varargs...)
   100  }
   101  
   102  // Get mocks base method.
   103  func (m *MockClient) Get(arg0 context.Context, arg1 types.NamespacedName, arg2 client.Object, arg3 ...client.GetOption) error {
   104  	m.ctrl.T.Helper()
   105  	varargs := []interface{}{arg0, arg1, arg2}
   106  	for _, a := range arg3 {
   107  		varargs = append(varargs, a)
   108  	}
   109  	ret := m.ctrl.Call(m, "Get", varargs...)
   110  	ret0, _ := ret[0].(error)
   111  	return ret0
   112  }
   113  
   114  // Get indicates an expected call of Get.
   115  func (mr *MockClientMockRecorder) Get(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
   116  	mr.mock.ctrl.T.Helper()
   117  	varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
   118  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClient)(nil).Get), varargs...)
   119  }
   120  
   121  // List mocks base method.
   122  func (m *MockClient) List(arg0 context.Context, arg1 client.ObjectList, arg2 ...client.ListOption) error {
   123  	m.ctrl.T.Helper()
   124  	varargs := []interface{}{arg0, arg1}
   125  	for _, a := range arg2 {
   126  		varargs = append(varargs, a)
   127  	}
   128  	ret := m.ctrl.Call(m, "List", varargs...)
   129  	ret0, _ := ret[0].(error)
   130  	return ret0
   131  }
   132  
   133  // List indicates an expected call of List.
   134  func (mr *MockClientMockRecorder) List(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
   135  	mr.mock.ctrl.T.Helper()
   136  	varargs := append([]interface{}{arg0, arg1}, arg2...)
   137  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockClient)(nil).List), varargs...)
   138  }
   139  
   140  // Patch mocks base method.
   141  func (m *MockClient) Patch(arg0 context.Context, arg1 client.Object, arg2 client.Patch, arg3 ...client.PatchOption) error {
   142  	m.ctrl.T.Helper()
   143  	varargs := []interface{}{arg0, arg1, arg2}
   144  	for _, a := range arg3 {
   145  		varargs = append(varargs, a)
   146  	}
   147  	ret := m.ctrl.Call(m, "Patch", varargs...)
   148  	ret0, _ := ret[0].(error)
   149  	return ret0
   150  }
   151  
   152  // Patch indicates an expected call of Patch.
   153  func (mr *MockClientMockRecorder) Patch(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
   154  	mr.mock.ctrl.T.Helper()
   155  	varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
   156  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockClient)(nil).Patch), varargs...)
   157  }
   158  
   159  // RESTMapper mocks base method.
   160  func (m *MockClient) RESTMapper() meta.RESTMapper {
   161  	m.ctrl.T.Helper()
   162  	ret := m.ctrl.Call(m, "RESTMapper")
   163  	ret0, _ := ret[0].(meta.RESTMapper)
   164  	return ret0
   165  }
   166  
   167  // RESTMapper indicates an expected call of RESTMapper.
   168  func (mr *MockClientMockRecorder) RESTMapper() *gomock.Call {
   169  	mr.mock.ctrl.T.Helper()
   170  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTMapper", reflect.TypeOf((*MockClient)(nil).RESTMapper))
   171  }
   172  
   173  // Scheme mocks base method.
   174  func (m *MockClient) Scheme() *runtime.Scheme {
   175  	m.ctrl.T.Helper()
   176  	ret := m.ctrl.Call(m, "Scheme")
   177  	ret0, _ := ret[0].(*runtime.Scheme)
   178  	return ret0
   179  }
   180  
   181  // Scheme indicates an expected call of Scheme.
   182  func (mr *MockClientMockRecorder) Scheme() *gomock.Call {
   183  	mr.mock.ctrl.T.Helper()
   184  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Scheme", reflect.TypeOf((*MockClient)(nil).Scheme))
   185  }
   186  
   187  // Status mocks base method.
   188  func (m *MockClient) Status() client.StatusWriter {
   189  	m.ctrl.T.Helper()
   190  	ret := m.ctrl.Call(m, "Status")
   191  	ret0, _ := ret[0].(client.StatusWriter)
   192  	return ret0
   193  }
   194  
   195  // Status indicates an expected call of Status.
   196  func (mr *MockClientMockRecorder) Status() *gomock.Call {
   197  	mr.mock.ctrl.T.Helper()
   198  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockClient)(nil).Status))
   199  }
   200  
   201  // Update mocks base method.
   202  func (m *MockClient) Update(arg0 context.Context, arg1 client.Object, arg2 ...client.UpdateOption) error {
   203  	m.ctrl.T.Helper()
   204  	varargs := []interface{}{arg0, arg1}
   205  	for _, a := range arg2 {
   206  		varargs = append(varargs, a)
   207  	}
   208  	ret := m.ctrl.Call(m, "Update", varargs...)
   209  	ret0, _ := ret[0].(error)
   210  	return ret0
   211  }
   212  
   213  // Update indicates an expected call of Update.
   214  func (mr *MockClientMockRecorder) Update(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
   215  	mr.mock.ctrl.T.Helper()
   216  	varargs := append([]interface{}{arg0, arg1}, arg2...)
   217  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockClient)(nil).Update), varargs...)
   218  }
   219  
   220  // MockStatusWriter is a mock of StatusWriter interface.
   221  type MockStatusWriter struct {
   222  	ctrl     *gomock.Controller
   223  	recorder *MockStatusWriterMockRecorder
   224  }
   225  
   226  // MockStatusWriterMockRecorder is the mock recorder for MockStatusWriter.
   227  type MockStatusWriterMockRecorder struct {
   228  	mock *MockStatusWriter
   229  }
   230  
   231  // NewMockStatusWriter creates a new mock instance.
   232  func NewMockStatusWriter(ctrl *gomock.Controller) *MockStatusWriter {
   233  	mock := &MockStatusWriter{ctrl: ctrl}
   234  	mock.recorder = &MockStatusWriterMockRecorder{mock}
   235  	return mock
   236  }
   237  
   238  // EXPECT returns an object that allows the caller to indicate expected use.
   239  func (m *MockStatusWriter) EXPECT() *MockStatusWriterMockRecorder {
   240  	return m.recorder
   241  }
   242  
   243  // Patch mocks base method.
   244  func (m *MockStatusWriter) Patch(arg0 context.Context, arg1 client.Object, arg2 client.Patch, arg3 ...client.PatchOption) error {
   245  	m.ctrl.T.Helper()
   246  	varargs := []interface{}{arg0, arg1, arg2}
   247  	for _, a := range arg3 {
   248  		varargs = append(varargs, a)
   249  	}
   250  	ret := m.ctrl.Call(m, "Patch", varargs...)
   251  	ret0, _ := ret[0].(error)
   252  	return ret0
   253  }
   254  
   255  // Patch indicates an expected call of Patch.
   256  func (mr *MockStatusWriterMockRecorder) Patch(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
   257  	mr.mock.ctrl.T.Helper()
   258  	varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
   259  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockStatusWriter)(nil).Patch), varargs...)
   260  }
   261  
   262  // Update mocks base method.
   263  func (m *MockStatusWriter) Update(arg0 context.Context, arg1 client.Object, arg2 ...client.UpdateOption) error {
   264  	m.ctrl.T.Helper()
   265  	varargs := []interface{}{arg0, arg1}
   266  	for _, a := range arg2 {
   267  		varargs = append(varargs, a)
   268  	}
   269  	ret := m.ctrl.Call(m, "Update", varargs...)
   270  	ret0, _ := ret[0].(error)
   271  	return ret0
   272  }
   273  
   274  // Update indicates an expected call of Update.
   275  func (mr *MockStatusWriterMockRecorder) Update(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
   276  	mr.mock.ctrl.T.Helper()
   277  	varargs := append([]interface{}{arg0, arg1}, arg2...)
   278  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockStatusWriter)(nil).Update), varargs...)
   279  }