github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/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  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	schema "k8s.io/apimachinery/pkg/runtime/schema"
    12  	types "k8s.io/apimachinery/pkg/types"
    13  	rest "k8s.io/client-go/rest"
    14  	flowcontrol "k8s.io/client-go/util/flowcontrol"
    15  )
    16  
    17  // MockRestClientInterface is a mock of Interface interface
    18  type MockRestClientInterface struct {
    19  	ctrl     *gomock.Controller
    20  	recorder *MockRestClientInterfaceMockRecorder
    21  }
    22  
    23  // MockRestClientInterfaceMockRecorder is the mock recorder for MockRestClientInterface
    24  type MockRestClientInterfaceMockRecorder struct {
    25  	mock *MockRestClientInterface
    26  }
    27  
    28  // NewMockRestClientInterface creates a new mock instance
    29  func NewMockRestClientInterface(ctrl *gomock.Controller) *MockRestClientInterface {
    30  	mock := &MockRestClientInterface{ctrl: ctrl}
    31  	mock.recorder = &MockRestClientInterfaceMockRecorder{mock}
    32  	return mock
    33  }
    34  
    35  // EXPECT returns an object that allows the caller to indicate expected use
    36  func (m *MockRestClientInterface) EXPECT() *MockRestClientInterfaceMockRecorder {
    37  	return m.recorder
    38  }
    39  
    40  // APIVersion mocks base method
    41  func (m *MockRestClientInterface) APIVersion() schema.GroupVersion {
    42  	ret := m.ctrl.Call(m, "APIVersion")
    43  	ret0, _ := ret[0].(schema.GroupVersion)
    44  	return ret0
    45  }
    46  
    47  // APIVersion indicates an expected call of APIVersion
    48  func (mr *MockRestClientInterfaceMockRecorder) APIVersion() *gomock.Call {
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APIVersion", reflect.TypeOf((*MockRestClientInterface)(nil).APIVersion))
    50  }
    51  
    52  // Delete mocks base method
    53  func (m *MockRestClientInterface) Delete() *rest.Request {
    54  	ret := m.ctrl.Call(m, "Delete")
    55  	ret0, _ := ret[0].(*rest.Request)
    56  	return ret0
    57  }
    58  
    59  // Delete indicates an expected call of Delete
    60  func (mr *MockRestClientInterfaceMockRecorder) Delete() *gomock.Call {
    61  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRestClientInterface)(nil).Delete))
    62  }
    63  
    64  // Get mocks base method
    65  func (m *MockRestClientInterface) Get() *rest.Request {
    66  	ret := m.ctrl.Call(m, "Get")
    67  	ret0, _ := ret[0].(*rest.Request)
    68  	return ret0
    69  }
    70  
    71  // Get indicates an expected call of Get
    72  func (mr *MockRestClientInterfaceMockRecorder) Get() *gomock.Call {
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockRestClientInterface)(nil).Get))
    74  }
    75  
    76  // GetRateLimiter mocks base method
    77  func (m *MockRestClientInterface) GetRateLimiter() flowcontrol.RateLimiter {
    78  	ret := m.ctrl.Call(m, "GetRateLimiter")
    79  	ret0, _ := ret[0].(flowcontrol.RateLimiter)
    80  	return ret0
    81  }
    82  
    83  // GetRateLimiter indicates an expected call of GetRateLimiter
    84  func (mr *MockRestClientInterfaceMockRecorder) GetRateLimiter() *gomock.Call {
    85  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRateLimiter", reflect.TypeOf((*MockRestClientInterface)(nil).GetRateLimiter))
    86  }
    87  
    88  // Patch mocks base method
    89  func (m *MockRestClientInterface) Patch(arg0 types.PatchType) *rest.Request {
    90  	ret := m.ctrl.Call(m, "Patch", arg0)
    91  	ret0, _ := ret[0].(*rest.Request)
    92  	return ret0
    93  }
    94  
    95  // Patch indicates an expected call of Patch
    96  func (mr *MockRestClientInterfaceMockRecorder) Patch(arg0 interface{}) *gomock.Call {
    97  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockRestClientInterface)(nil).Patch), arg0)
    98  }
    99  
   100  // Post mocks base method
   101  func (m *MockRestClientInterface) Post() *rest.Request {
   102  	ret := m.ctrl.Call(m, "Post")
   103  	ret0, _ := ret[0].(*rest.Request)
   104  	return ret0
   105  }
   106  
   107  // Post indicates an expected call of Post
   108  func (mr *MockRestClientInterfaceMockRecorder) Post() *gomock.Call {
   109  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Post", reflect.TypeOf((*MockRestClientInterface)(nil).Post))
   110  }
   111  
   112  // Put mocks base method
   113  func (m *MockRestClientInterface) Put() *rest.Request {
   114  	ret := m.ctrl.Call(m, "Put")
   115  	ret0, _ := ret[0].(*rest.Request)
   116  	return ret0
   117  }
   118  
   119  // Put indicates an expected call of Put
   120  func (mr *MockRestClientInterfaceMockRecorder) Put() *gomock.Call {
   121  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockRestClientInterface)(nil).Put))
   122  }
   123  
   124  // Verb mocks base method
   125  func (m *MockRestClientInterface) Verb(arg0 string) *rest.Request {
   126  	ret := m.ctrl.Call(m, "Verb", arg0)
   127  	ret0, _ := ret[0].(*rest.Request)
   128  	return ret0
   129  }
   130  
   131  // Verb indicates an expected call of Verb
   132  func (mr *MockRestClientInterfaceMockRecorder) Verb(arg0 interface{}) *gomock.Call {
   133  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verb", reflect.TypeOf((*MockRestClientInterface)(nil).Verb), arg0)
   134  }