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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: k8s.io/client-go/kubernetes/typed/networking/v1beta1 (interfaces: NetworkingV1beta1Interface,IngressInterface)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package mocks -destination mocks/networkingv1beta1_mock.go -mock_names=IngressInterface=MockIngressV1Beta1Interface k8s.io/client-go/kubernetes/typed/networking/v1beta1 NetworkingV1beta1Interface,IngressInterface
     7  //
     8  
     9  // Package mocks is a generated GoMock package.
    10  package mocks
    11  
    12  import (
    13  	context "context"
    14  	reflect "reflect"
    15  
    16  	gomock "go.uber.org/mock/gomock"
    17  	v1beta1 "k8s.io/api/networking/v1beta1"
    18  	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    19  	types "k8s.io/apimachinery/pkg/types"
    20  	watch "k8s.io/apimachinery/pkg/watch"
    21  	v1beta10 "k8s.io/client-go/applyconfigurations/networking/v1beta1"
    22  	v1beta11 "k8s.io/client-go/kubernetes/typed/networking/v1beta1"
    23  	rest "k8s.io/client-go/rest"
    24  )
    25  
    26  // MockNetworkingV1beta1Interface is a mock of NetworkingV1beta1Interface interface.
    27  type MockNetworkingV1beta1Interface struct {
    28  	ctrl     *gomock.Controller
    29  	recorder *MockNetworkingV1beta1InterfaceMockRecorder
    30  }
    31  
    32  // MockNetworkingV1beta1InterfaceMockRecorder is the mock recorder for MockNetworkingV1beta1Interface.
    33  type MockNetworkingV1beta1InterfaceMockRecorder struct {
    34  	mock *MockNetworkingV1beta1Interface
    35  }
    36  
    37  // NewMockNetworkingV1beta1Interface creates a new mock instance.
    38  func NewMockNetworkingV1beta1Interface(ctrl *gomock.Controller) *MockNetworkingV1beta1Interface {
    39  	mock := &MockNetworkingV1beta1Interface{ctrl: ctrl}
    40  	mock.recorder = &MockNetworkingV1beta1InterfaceMockRecorder{mock}
    41  	return mock
    42  }
    43  
    44  // EXPECT returns an object that allows the caller to indicate expected use.
    45  func (m *MockNetworkingV1beta1Interface) EXPECT() *MockNetworkingV1beta1InterfaceMockRecorder {
    46  	return m.recorder
    47  }
    48  
    49  // IngressClasses mocks base method.
    50  func (m *MockNetworkingV1beta1Interface) IngressClasses() v1beta11.IngressClassInterface {
    51  	m.ctrl.T.Helper()
    52  	ret := m.ctrl.Call(m, "IngressClasses")
    53  	ret0, _ := ret[0].(v1beta11.IngressClassInterface)
    54  	return ret0
    55  }
    56  
    57  // IngressClasses indicates an expected call of IngressClasses.
    58  func (mr *MockNetworkingV1beta1InterfaceMockRecorder) IngressClasses() *gomock.Call {
    59  	mr.mock.ctrl.T.Helper()
    60  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IngressClasses", reflect.TypeOf((*MockNetworkingV1beta1Interface)(nil).IngressClasses))
    61  }
    62  
    63  // Ingresses mocks base method.
    64  func (m *MockNetworkingV1beta1Interface) Ingresses(arg0 string) v1beta11.IngressInterface {
    65  	m.ctrl.T.Helper()
    66  	ret := m.ctrl.Call(m, "Ingresses", arg0)
    67  	ret0, _ := ret[0].(v1beta11.IngressInterface)
    68  	return ret0
    69  }
    70  
    71  // Ingresses indicates an expected call of Ingresses.
    72  func (mr *MockNetworkingV1beta1InterfaceMockRecorder) Ingresses(arg0 any) *gomock.Call {
    73  	mr.mock.ctrl.T.Helper()
    74  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ingresses", reflect.TypeOf((*MockNetworkingV1beta1Interface)(nil).Ingresses), arg0)
    75  }
    76  
    77  // RESTClient mocks base method.
    78  func (m *MockNetworkingV1beta1Interface) RESTClient() rest.Interface {
    79  	m.ctrl.T.Helper()
    80  	ret := m.ctrl.Call(m, "RESTClient")
    81  	ret0, _ := ret[0].(rest.Interface)
    82  	return ret0
    83  }
    84  
    85  // RESTClient indicates an expected call of RESTClient.
    86  func (mr *MockNetworkingV1beta1InterfaceMockRecorder) RESTClient() *gomock.Call {
    87  	mr.mock.ctrl.T.Helper()
    88  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockNetworkingV1beta1Interface)(nil).RESTClient))
    89  }
    90  
    91  // MockIngressV1Beta1Interface is a mock of IngressInterface interface.
    92  type MockIngressV1Beta1Interface struct {
    93  	ctrl     *gomock.Controller
    94  	recorder *MockIngressV1Beta1InterfaceMockRecorder
    95  }
    96  
    97  // MockIngressV1Beta1InterfaceMockRecorder is the mock recorder for MockIngressV1Beta1Interface.
    98  type MockIngressV1Beta1InterfaceMockRecorder struct {
    99  	mock *MockIngressV1Beta1Interface
   100  }
   101  
   102  // NewMockIngressV1Beta1Interface creates a new mock instance.
   103  func NewMockIngressV1Beta1Interface(ctrl *gomock.Controller) *MockIngressV1Beta1Interface {
   104  	mock := &MockIngressV1Beta1Interface{ctrl: ctrl}
   105  	mock.recorder = &MockIngressV1Beta1InterfaceMockRecorder{mock}
   106  	return mock
   107  }
   108  
   109  // EXPECT returns an object that allows the caller to indicate expected use.
   110  func (m *MockIngressV1Beta1Interface) EXPECT() *MockIngressV1Beta1InterfaceMockRecorder {
   111  	return m.recorder
   112  }
   113  
   114  // Apply mocks base method.
   115  func (m *MockIngressV1Beta1Interface) Apply(arg0 context.Context, arg1 *v1beta10.IngressApplyConfiguration, arg2 v1.ApplyOptions) (*v1beta1.Ingress, error) {
   116  	m.ctrl.T.Helper()
   117  	ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2)
   118  	ret0, _ := ret[0].(*v1beta1.Ingress)
   119  	ret1, _ := ret[1].(error)
   120  	return ret0, ret1
   121  }
   122  
   123  // Apply indicates an expected call of Apply.
   124  func (mr *MockIngressV1Beta1InterfaceMockRecorder) Apply(arg0, arg1, arg2 any) *gomock.Call {
   125  	mr.mock.ctrl.T.Helper()
   126  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockIngressV1Beta1Interface)(nil).Apply), arg0, arg1, arg2)
   127  }
   128  
   129  // ApplyStatus mocks base method.
   130  func (m *MockIngressV1Beta1Interface) ApplyStatus(arg0 context.Context, arg1 *v1beta10.IngressApplyConfiguration, arg2 v1.ApplyOptions) (*v1beta1.Ingress, error) {
   131  	m.ctrl.T.Helper()
   132  	ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2)
   133  	ret0, _ := ret[0].(*v1beta1.Ingress)
   134  	ret1, _ := ret[1].(error)
   135  	return ret0, ret1
   136  }
   137  
   138  // ApplyStatus indicates an expected call of ApplyStatus.
   139  func (mr *MockIngressV1Beta1InterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 any) *gomock.Call {
   140  	mr.mock.ctrl.T.Helper()
   141  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockIngressV1Beta1Interface)(nil).ApplyStatus), arg0, arg1, arg2)
   142  }
   143  
   144  // Create mocks base method.
   145  func (m *MockIngressV1Beta1Interface) Create(arg0 context.Context, arg1 *v1beta1.Ingress, arg2 v1.CreateOptions) (*v1beta1.Ingress, error) {
   146  	m.ctrl.T.Helper()
   147  	ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2)
   148  	ret0, _ := ret[0].(*v1beta1.Ingress)
   149  	ret1, _ := ret[1].(error)
   150  	return ret0, ret1
   151  }
   152  
   153  // Create indicates an expected call of Create.
   154  func (mr *MockIngressV1Beta1InterfaceMockRecorder) Create(arg0, arg1, arg2 any) *gomock.Call {
   155  	mr.mock.ctrl.T.Helper()
   156  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockIngressV1Beta1Interface)(nil).Create), arg0, arg1, arg2)
   157  }
   158  
   159  // Delete mocks base method.
   160  func (m *MockIngressV1Beta1Interface) Delete(arg0 context.Context, arg1 string, arg2 v1.DeleteOptions) error {
   161  	m.ctrl.T.Helper()
   162  	ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2)
   163  	ret0, _ := ret[0].(error)
   164  	return ret0
   165  }
   166  
   167  // Delete indicates an expected call of Delete.
   168  func (mr *MockIngressV1Beta1InterfaceMockRecorder) Delete(arg0, arg1, arg2 any) *gomock.Call {
   169  	mr.mock.ctrl.T.Helper()
   170  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockIngressV1Beta1Interface)(nil).Delete), arg0, arg1, arg2)
   171  }
   172  
   173  // DeleteCollection mocks base method.
   174  func (m *MockIngressV1Beta1Interface) DeleteCollection(arg0 context.Context, arg1 v1.DeleteOptions, arg2 v1.ListOptions) error {
   175  	m.ctrl.T.Helper()
   176  	ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2)
   177  	ret0, _ := ret[0].(error)
   178  	return ret0
   179  }
   180  
   181  // DeleteCollection indicates an expected call of DeleteCollection.
   182  func (mr *MockIngressV1Beta1InterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 any) *gomock.Call {
   183  	mr.mock.ctrl.T.Helper()
   184  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockIngressV1Beta1Interface)(nil).DeleteCollection), arg0, arg1, arg2)
   185  }
   186  
   187  // Get mocks base method.
   188  func (m *MockIngressV1Beta1Interface) Get(arg0 context.Context, arg1 string, arg2 v1.GetOptions) (*v1beta1.Ingress, error) {
   189  	m.ctrl.T.Helper()
   190  	ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2)
   191  	ret0, _ := ret[0].(*v1beta1.Ingress)
   192  	ret1, _ := ret[1].(error)
   193  	return ret0, ret1
   194  }
   195  
   196  // Get indicates an expected call of Get.
   197  func (mr *MockIngressV1Beta1InterfaceMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call {
   198  	mr.mock.ctrl.T.Helper()
   199  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockIngressV1Beta1Interface)(nil).Get), arg0, arg1, arg2)
   200  }
   201  
   202  // List mocks base method.
   203  func (m *MockIngressV1Beta1Interface) List(arg0 context.Context, arg1 v1.ListOptions) (*v1beta1.IngressList, error) {
   204  	m.ctrl.T.Helper()
   205  	ret := m.ctrl.Call(m, "List", arg0, arg1)
   206  	ret0, _ := ret[0].(*v1beta1.IngressList)
   207  	ret1, _ := ret[1].(error)
   208  	return ret0, ret1
   209  }
   210  
   211  // List indicates an expected call of List.
   212  func (mr *MockIngressV1Beta1InterfaceMockRecorder) List(arg0, arg1 any) *gomock.Call {
   213  	mr.mock.ctrl.T.Helper()
   214  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockIngressV1Beta1Interface)(nil).List), arg0, arg1)
   215  }
   216  
   217  // Patch mocks base method.
   218  func (m *MockIngressV1Beta1Interface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v1.PatchOptions, arg5 ...string) (*v1beta1.Ingress, error) {
   219  	m.ctrl.T.Helper()
   220  	varargs := []any{arg0, arg1, arg2, arg3, arg4}
   221  	for _, a := range arg5 {
   222  		varargs = append(varargs, a)
   223  	}
   224  	ret := m.ctrl.Call(m, "Patch", varargs...)
   225  	ret0, _ := ret[0].(*v1beta1.Ingress)
   226  	ret1, _ := ret[1].(error)
   227  	return ret0, ret1
   228  }
   229  
   230  // Patch indicates an expected call of Patch.
   231  func (mr *MockIngressV1Beta1InterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 any, arg5 ...any) *gomock.Call {
   232  	mr.mock.ctrl.T.Helper()
   233  	varargs := append([]any{arg0, arg1, arg2, arg3, arg4}, arg5...)
   234  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockIngressV1Beta1Interface)(nil).Patch), varargs...)
   235  }
   236  
   237  // Update mocks base method.
   238  func (m *MockIngressV1Beta1Interface) Update(arg0 context.Context, arg1 *v1beta1.Ingress, arg2 v1.UpdateOptions) (*v1beta1.Ingress, error) {
   239  	m.ctrl.T.Helper()
   240  	ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2)
   241  	ret0, _ := ret[0].(*v1beta1.Ingress)
   242  	ret1, _ := ret[1].(error)
   243  	return ret0, ret1
   244  }
   245  
   246  // Update indicates an expected call of Update.
   247  func (mr *MockIngressV1Beta1InterfaceMockRecorder) Update(arg0, arg1, arg2 any) *gomock.Call {
   248  	mr.mock.ctrl.T.Helper()
   249  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockIngressV1Beta1Interface)(nil).Update), arg0, arg1, arg2)
   250  }
   251  
   252  // UpdateStatus mocks base method.
   253  func (m *MockIngressV1Beta1Interface) UpdateStatus(arg0 context.Context, arg1 *v1beta1.Ingress, arg2 v1.UpdateOptions) (*v1beta1.Ingress, error) {
   254  	m.ctrl.T.Helper()
   255  	ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2)
   256  	ret0, _ := ret[0].(*v1beta1.Ingress)
   257  	ret1, _ := ret[1].(error)
   258  	return ret0, ret1
   259  }
   260  
   261  // UpdateStatus indicates an expected call of UpdateStatus.
   262  func (mr *MockIngressV1Beta1InterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 any) *gomock.Call {
   263  	mr.mock.ctrl.T.Helper()
   264  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockIngressV1Beta1Interface)(nil).UpdateStatus), arg0, arg1, arg2)
   265  }
   266  
   267  // Watch mocks base method.
   268  func (m *MockIngressV1Beta1Interface) Watch(arg0 context.Context, arg1 v1.ListOptions) (watch.Interface, error) {
   269  	m.ctrl.T.Helper()
   270  	ret := m.ctrl.Call(m, "Watch", arg0, arg1)
   271  	ret0, _ := ret[0].(watch.Interface)
   272  	ret1, _ := ret[1].(error)
   273  	return ret0, ret1
   274  }
   275  
   276  // Watch indicates an expected call of Watch.
   277  func (mr *MockIngressV1Beta1InterfaceMockRecorder) Watch(arg0, arg1 any) *gomock.Call {
   278  	mr.mock.ctrl.T.Helper()
   279  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockIngressV1Beta1Interface)(nil).Watch), arg0, arg1)
   280  }