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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: k8s.io/client-go/rest (interfaces: Interface)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package mocks -destination mocks/restclient_mock.go -mock_names=Interface=MockRestClientInterface k8s.io/client-go/rest Interface
     7  //
     8  
     9  // Package mocks is a generated GoMock package.
    10  package mocks
    11  
    12  import (
    13  	reflect "reflect"
    14  
    15  	gomock "go.uber.org/mock/gomock"
    16  	schema "k8s.io/apimachinery/pkg/runtime/schema"
    17  	types "k8s.io/apimachinery/pkg/types"
    18  	rest "k8s.io/client-go/rest"
    19  	flowcontrol "k8s.io/client-go/util/flowcontrol"
    20  )
    21  
    22  // MockRestClientInterface is a mock of Interface interface.
    23  type MockRestClientInterface struct {
    24  	ctrl     *gomock.Controller
    25  	recorder *MockRestClientInterfaceMockRecorder
    26  }
    27  
    28  // MockRestClientInterfaceMockRecorder is the mock recorder for MockRestClientInterface.
    29  type MockRestClientInterfaceMockRecorder struct {
    30  	mock *MockRestClientInterface
    31  }
    32  
    33  // NewMockRestClientInterface creates a new mock instance.
    34  func NewMockRestClientInterface(ctrl *gomock.Controller) *MockRestClientInterface {
    35  	mock := &MockRestClientInterface{ctrl: ctrl}
    36  	mock.recorder = &MockRestClientInterfaceMockRecorder{mock}
    37  	return mock
    38  }
    39  
    40  // EXPECT returns an object that allows the caller to indicate expected use.
    41  func (m *MockRestClientInterface) EXPECT() *MockRestClientInterfaceMockRecorder {
    42  	return m.recorder
    43  }
    44  
    45  // APIVersion mocks base method.
    46  func (m *MockRestClientInterface) APIVersion() schema.GroupVersion {
    47  	m.ctrl.T.Helper()
    48  	ret := m.ctrl.Call(m, "APIVersion")
    49  	ret0, _ := ret[0].(schema.GroupVersion)
    50  	return ret0
    51  }
    52  
    53  // APIVersion indicates an expected call of APIVersion.
    54  func (mr *MockRestClientInterfaceMockRecorder) APIVersion() *gomock.Call {
    55  	mr.mock.ctrl.T.Helper()
    56  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIVersion", reflect.TypeOf((*MockRestClientInterface)(nil).APIVersion))
    57  }
    58  
    59  // Delete mocks base method.
    60  func (m *MockRestClientInterface) Delete() *rest.Request {
    61  	m.ctrl.T.Helper()
    62  	ret := m.ctrl.Call(m, "Delete")
    63  	ret0, _ := ret[0].(*rest.Request)
    64  	return ret0
    65  }
    66  
    67  // Delete indicates an expected call of Delete.
    68  func (mr *MockRestClientInterfaceMockRecorder) Delete() *gomock.Call {
    69  	mr.mock.ctrl.T.Helper()
    70  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRestClientInterface)(nil).Delete))
    71  }
    72  
    73  // Get mocks base method.
    74  func (m *MockRestClientInterface) Get() *rest.Request {
    75  	m.ctrl.T.Helper()
    76  	ret := m.ctrl.Call(m, "Get")
    77  	ret0, _ := ret[0].(*rest.Request)
    78  	return ret0
    79  }
    80  
    81  // Get indicates an expected call of Get.
    82  func (mr *MockRestClientInterfaceMockRecorder) Get() *gomock.Call {
    83  	mr.mock.ctrl.T.Helper()
    84  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockRestClientInterface)(nil).Get))
    85  }
    86  
    87  // GetRateLimiter mocks base method.
    88  func (m *MockRestClientInterface) GetRateLimiter() flowcontrol.RateLimiter {
    89  	m.ctrl.T.Helper()
    90  	ret := m.ctrl.Call(m, "GetRateLimiter")
    91  	ret0, _ := ret[0].(flowcontrol.RateLimiter)
    92  	return ret0
    93  }
    94  
    95  // GetRateLimiter indicates an expected call of GetRateLimiter.
    96  func (mr *MockRestClientInterfaceMockRecorder) GetRateLimiter() *gomock.Call {
    97  	mr.mock.ctrl.T.Helper()
    98  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRateLimiter", reflect.TypeOf((*MockRestClientInterface)(nil).GetRateLimiter))
    99  }
   100  
   101  // Patch mocks base method.
   102  func (m *MockRestClientInterface) Patch(arg0 types.PatchType) *rest.Request {
   103  	m.ctrl.T.Helper()
   104  	ret := m.ctrl.Call(m, "Patch", arg0)
   105  	ret0, _ := ret[0].(*rest.Request)
   106  	return ret0
   107  }
   108  
   109  // Patch indicates an expected call of Patch.
   110  func (mr *MockRestClientInterfaceMockRecorder) Patch(arg0 any) *gomock.Call {
   111  	mr.mock.ctrl.T.Helper()
   112  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockRestClientInterface)(nil).Patch), arg0)
   113  }
   114  
   115  // Post mocks base method.
   116  func (m *MockRestClientInterface) Post() *rest.Request {
   117  	m.ctrl.T.Helper()
   118  	ret := m.ctrl.Call(m, "Post")
   119  	ret0, _ := ret[0].(*rest.Request)
   120  	return ret0
   121  }
   122  
   123  // Post indicates an expected call of Post.
   124  func (mr *MockRestClientInterfaceMockRecorder) Post() *gomock.Call {
   125  	mr.mock.ctrl.T.Helper()
   126  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Post", reflect.TypeOf((*MockRestClientInterface)(nil).Post))
   127  }
   128  
   129  // Put mocks base method.
   130  func (m *MockRestClientInterface) Put() *rest.Request {
   131  	m.ctrl.T.Helper()
   132  	ret := m.ctrl.Call(m, "Put")
   133  	ret0, _ := ret[0].(*rest.Request)
   134  	return ret0
   135  }
   136  
   137  // Put indicates an expected call of Put.
   138  func (mr *MockRestClientInterfaceMockRecorder) Put() *gomock.Call {
   139  	mr.mock.ctrl.T.Helper()
   140  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockRestClientInterface)(nil).Put))
   141  }
   142  
   143  // Verb mocks base method.
   144  func (m *MockRestClientInterface) Verb(arg0 string) *rest.Request {
   145  	m.ctrl.T.Helper()
   146  	ret := m.ctrl.Call(m, "Verb", arg0)
   147  	ret0, _ := ret[0].(*rest.Request)
   148  	return ret0
   149  }
   150  
   151  // Verb indicates an expected call of Verb.
   152  func (mr *MockRestClientInterfaceMockRecorder) Verb(arg0 any) *gomock.Call {
   153  	mr.mock.ctrl.T.Helper()
   154  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verb", reflect.TypeOf((*MockRestClientInterface)(nil).Verb), arg0)
   155  }