github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/caas/kubernetes/provider/mocks/rbacv1_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: k8s.io/client-go/kubernetes/typed/rbac/v1 (interfaces: RbacV1Interface,ClusterRoleBindingInterface,ClusterRoleInterface)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	gomock "github.com/golang/mock/gomock"
     9  	v1 "k8s.io/api/rbac/v1"
    10  	v10 "k8s.io/apimachinery/pkg/apis/meta/v1"
    11  	types "k8s.io/apimachinery/pkg/types"
    12  	watch "k8s.io/apimachinery/pkg/watch"
    13  	v11 "k8s.io/client-go/kubernetes/typed/rbac/v1"
    14  	rest "k8s.io/client-go/rest"
    15  	reflect "reflect"
    16  )
    17  
    18  // MockRbacV1Interface is a mock of RbacV1Interface interface
    19  type MockRbacV1Interface struct {
    20  	ctrl     *gomock.Controller
    21  	recorder *MockRbacV1InterfaceMockRecorder
    22  }
    23  
    24  // MockRbacV1InterfaceMockRecorder is the mock recorder for MockRbacV1Interface
    25  type MockRbacV1InterfaceMockRecorder struct {
    26  	mock *MockRbacV1Interface
    27  }
    28  
    29  // NewMockRbacV1Interface creates a new mock instance
    30  func NewMockRbacV1Interface(ctrl *gomock.Controller) *MockRbacV1Interface {
    31  	mock := &MockRbacV1Interface{ctrl: ctrl}
    32  	mock.recorder = &MockRbacV1InterfaceMockRecorder{mock}
    33  	return mock
    34  }
    35  
    36  // EXPECT returns an object that allows the caller to indicate expected use
    37  func (m *MockRbacV1Interface) EXPECT() *MockRbacV1InterfaceMockRecorder {
    38  	return m.recorder
    39  }
    40  
    41  // ClusterRoleBindings mocks base method
    42  func (m *MockRbacV1Interface) ClusterRoleBindings() v11.ClusterRoleBindingInterface {
    43  	ret := m.ctrl.Call(m, "ClusterRoleBindings")
    44  	ret0, _ := ret[0].(v11.ClusterRoleBindingInterface)
    45  	return ret0
    46  }
    47  
    48  // ClusterRoleBindings indicates an expected call of ClusterRoleBindings
    49  func (mr *MockRbacV1InterfaceMockRecorder) ClusterRoleBindings() *gomock.Call {
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterRoleBindings", reflect.TypeOf((*MockRbacV1Interface)(nil).ClusterRoleBindings))
    51  }
    52  
    53  // ClusterRoles mocks base method
    54  func (m *MockRbacV1Interface) ClusterRoles() v11.ClusterRoleInterface {
    55  	ret := m.ctrl.Call(m, "ClusterRoles")
    56  	ret0, _ := ret[0].(v11.ClusterRoleInterface)
    57  	return ret0
    58  }
    59  
    60  // ClusterRoles indicates an expected call of ClusterRoles
    61  func (mr *MockRbacV1InterfaceMockRecorder) ClusterRoles() *gomock.Call {
    62  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterRoles", reflect.TypeOf((*MockRbacV1Interface)(nil).ClusterRoles))
    63  }
    64  
    65  // RESTClient mocks base method
    66  func (m *MockRbacV1Interface) RESTClient() rest.Interface {
    67  	ret := m.ctrl.Call(m, "RESTClient")
    68  	ret0, _ := ret[0].(rest.Interface)
    69  	return ret0
    70  }
    71  
    72  // RESTClient indicates an expected call of RESTClient
    73  func (mr *MockRbacV1InterfaceMockRecorder) RESTClient() *gomock.Call {
    74  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockRbacV1Interface)(nil).RESTClient))
    75  }
    76  
    77  // RoleBindings mocks base method
    78  func (m *MockRbacV1Interface) RoleBindings(arg0 string) v11.RoleBindingInterface {
    79  	ret := m.ctrl.Call(m, "RoleBindings", arg0)
    80  	ret0, _ := ret[0].(v11.RoleBindingInterface)
    81  	return ret0
    82  }
    83  
    84  // RoleBindings indicates an expected call of RoleBindings
    85  func (mr *MockRbacV1InterfaceMockRecorder) RoleBindings(arg0 interface{}) *gomock.Call {
    86  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RoleBindings", reflect.TypeOf((*MockRbacV1Interface)(nil).RoleBindings), arg0)
    87  }
    88  
    89  // Roles mocks base method
    90  func (m *MockRbacV1Interface) Roles(arg0 string) v11.RoleInterface {
    91  	ret := m.ctrl.Call(m, "Roles", arg0)
    92  	ret0, _ := ret[0].(v11.RoleInterface)
    93  	return ret0
    94  }
    95  
    96  // Roles indicates an expected call of Roles
    97  func (mr *MockRbacV1InterfaceMockRecorder) Roles(arg0 interface{}) *gomock.Call {
    98  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Roles", reflect.TypeOf((*MockRbacV1Interface)(nil).Roles), arg0)
    99  }
   100  
   101  // MockClusterRoleBindingInterface is a mock of ClusterRoleBindingInterface interface
   102  type MockClusterRoleBindingInterface struct {
   103  	ctrl     *gomock.Controller
   104  	recorder *MockClusterRoleBindingInterfaceMockRecorder
   105  }
   106  
   107  // MockClusterRoleBindingInterfaceMockRecorder is the mock recorder for MockClusterRoleBindingInterface
   108  type MockClusterRoleBindingInterfaceMockRecorder struct {
   109  	mock *MockClusterRoleBindingInterface
   110  }
   111  
   112  // NewMockClusterRoleBindingInterface creates a new mock instance
   113  func NewMockClusterRoleBindingInterface(ctrl *gomock.Controller) *MockClusterRoleBindingInterface {
   114  	mock := &MockClusterRoleBindingInterface{ctrl: ctrl}
   115  	mock.recorder = &MockClusterRoleBindingInterfaceMockRecorder{mock}
   116  	return mock
   117  }
   118  
   119  // EXPECT returns an object that allows the caller to indicate expected use
   120  func (m *MockClusterRoleBindingInterface) EXPECT() *MockClusterRoleBindingInterfaceMockRecorder {
   121  	return m.recorder
   122  }
   123  
   124  // Create mocks base method
   125  func (m *MockClusterRoleBindingInterface) Create(arg0 *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error) {
   126  	ret := m.ctrl.Call(m, "Create", arg0)
   127  	ret0, _ := ret[0].(*v1.ClusterRoleBinding)
   128  	ret1, _ := ret[1].(error)
   129  	return ret0, ret1
   130  }
   131  
   132  // Create indicates an expected call of Create
   133  func (mr *MockClusterRoleBindingInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call {
   134  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).Create), arg0)
   135  }
   136  
   137  // Delete mocks base method
   138  func (m *MockClusterRoleBindingInterface) Delete(arg0 string, arg1 *v10.DeleteOptions) error {
   139  	ret := m.ctrl.Call(m, "Delete", arg0, arg1)
   140  	ret0, _ := ret[0].(error)
   141  	return ret0
   142  }
   143  
   144  // Delete indicates an expected call of Delete
   145  func (mr *MockClusterRoleBindingInterfaceMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
   146  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).Delete), arg0, arg1)
   147  }
   148  
   149  // DeleteCollection mocks base method
   150  func (m *MockClusterRoleBindingInterface) DeleteCollection(arg0 *v10.DeleteOptions, arg1 v10.ListOptions) error {
   151  	ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1)
   152  	ret0, _ := ret[0].(error)
   153  	return ret0
   154  }
   155  
   156  // DeleteCollection indicates an expected call of DeleteCollection
   157  func (mr *MockClusterRoleBindingInterfaceMockRecorder) DeleteCollection(arg0, arg1 interface{}) *gomock.Call {
   158  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).DeleteCollection), arg0, arg1)
   159  }
   160  
   161  // Get mocks base method
   162  func (m *MockClusterRoleBindingInterface) Get(arg0 string, arg1 v10.GetOptions) (*v1.ClusterRoleBinding, error) {
   163  	ret := m.ctrl.Call(m, "Get", arg0, arg1)
   164  	ret0, _ := ret[0].(*v1.ClusterRoleBinding)
   165  	ret1, _ := ret[1].(error)
   166  	return ret0, ret1
   167  }
   168  
   169  // Get indicates an expected call of Get
   170  func (mr *MockClusterRoleBindingInterfaceMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call {
   171  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).Get), arg0, arg1)
   172  }
   173  
   174  // List mocks base method
   175  func (m *MockClusterRoleBindingInterface) List(arg0 v10.ListOptions) (*v1.ClusterRoleBindingList, error) {
   176  	ret := m.ctrl.Call(m, "List", arg0)
   177  	ret0, _ := ret[0].(*v1.ClusterRoleBindingList)
   178  	ret1, _ := ret[1].(error)
   179  	return ret0, ret1
   180  }
   181  
   182  // List indicates an expected call of List
   183  func (mr *MockClusterRoleBindingInterfaceMockRecorder) List(arg0 interface{}) *gomock.Call {
   184  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).List), arg0)
   185  }
   186  
   187  // Patch mocks base method
   188  func (m *MockClusterRoleBindingInterface) Patch(arg0 string, arg1 types.PatchType, arg2 []byte, arg3 ...string) (*v1.ClusterRoleBinding, error) {
   189  	varargs := []interface{}{arg0, arg1, arg2}
   190  	for _, a := range arg3 {
   191  		varargs = append(varargs, a)
   192  	}
   193  	ret := m.ctrl.Call(m, "Patch", varargs...)
   194  	ret0, _ := ret[0].(*v1.ClusterRoleBinding)
   195  	ret1, _ := ret[1].(error)
   196  	return ret0, ret1
   197  }
   198  
   199  // Patch indicates an expected call of Patch
   200  func (mr *MockClusterRoleBindingInterfaceMockRecorder) Patch(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
   201  	varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
   202  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).Patch), varargs...)
   203  }
   204  
   205  // Update mocks base method
   206  func (m *MockClusterRoleBindingInterface) Update(arg0 *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error) {
   207  	ret := m.ctrl.Call(m, "Update", arg0)
   208  	ret0, _ := ret[0].(*v1.ClusterRoleBinding)
   209  	ret1, _ := ret[1].(error)
   210  	return ret0, ret1
   211  }
   212  
   213  // Update indicates an expected call of Update
   214  func (mr *MockClusterRoleBindingInterfaceMockRecorder) Update(arg0 interface{}) *gomock.Call {
   215  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).Update), arg0)
   216  }
   217  
   218  // Watch mocks base method
   219  func (m *MockClusterRoleBindingInterface) Watch(arg0 v10.ListOptions) (watch.Interface, error) {
   220  	ret := m.ctrl.Call(m, "Watch", arg0)
   221  	ret0, _ := ret[0].(watch.Interface)
   222  	ret1, _ := ret[1].(error)
   223  	return ret0, ret1
   224  }
   225  
   226  // Watch indicates an expected call of Watch
   227  func (mr *MockClusterRoleBindingInterfaceMockRecorder) Watch(arg0 interface{}) *gomock.Call {
   228  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).Watch), arg0)
   229  }
   230  
   231  // MockClusterRoleInterface is a mock of ClusterRoleInterface interface
   232  type MockClusterRoleInterface struct {
   233  	ctrl     *gomock.Controller
   234  	recorder *MockClusterRoleInterfaceMockRecorder
   235  }
   236  
   237  // MockClusterRoleInterfaceMockRecorder is the mock recorder for MockClusterRoleInterface
   238  type MockClusterRoleInterfaceMockRecorder struct {
   239  	mock *MockClusterRoleInterface
   240  }
   241  
   242  // NewMockClusterRoleInterface creates a new mock instance
   243  func NewMockClusterRoleInterface(ctrl *gomock.Controller) *MockClusterRoleInterface {
   244  	mock := &MockClusterRoleInterface{ctrl: ctrl}
   245  	mock.recorder = &MockClusterRoleInterfaceMockRecorder{mock}
   246  	return mock
   247  }
   248  
   249  // EXPECT returns an object that allows the caller to indicate expected use
   250  func (m *MockClusterRoleInterface) EXPECT() *MockClusterRoleInterfaceMockRecorder {
   251  	return m.recorder
   252  }
   253  
   254  // Create mocks base method
   255  func (m *MockClusterRoleInterface) Create(arg0 *v1.ClusterRole) (*v1.ClusterRole, error) {
   256  	ret := m.ctrl.Call(m, "Create", arg0)
   257  	ret0, _ := ret[0].(*v1.ClusterRole)
   258  	ret1, _ := ret[1].(error)
   259  	return ret0, ret1
   260  }
   261  
   262  // Create indicates an expected call of Create
   263  func (mr *MockClusterRoleInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call {
   264  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockClusterRoleInterface)(nil).Create), arg0)
   265  }
   266  
   267  // Delete mocks base method
   268  func (m *MockClusterRoleInterface) Delete(arg0 string, arg1 *v10.DeleteOptions) error {
   269  	ret := m.ctrl.Call(m, "Delete", arg0, arg1)
   270  	ret0, _ := ret[0].(error)
   271  	return ret0
   272  }
   273  
   274  // Delete indicates an expected call of Delete
   275  func (mr *MockClusterRoleInterfaceMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
   276  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockClusterRoleInterface)(nil).Delete), arg0, arg1)
   277  }
   278  
   279  // DeleteCollection mocks base method
   280  func (m *MockClusterRoleInterface) DeleteCollection(arg0 *v10.DeleteOptions, arg1 v10.ListOptions) error {
   281  	ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1)
   282  	ret0, _ := ret[0].(error)
   283  	return ret0
   284  }
   285  
   286  // DeleteCollection indicates an expected call of DeleteCollection
   287  func (mr *MockClusterRoleInterfaceMockRecorder) DeleteCollection(arg0, arg1 interface{}) *gomock.Call {
   288  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockClusterRoleInterface)(nil).DeleteCollection), arg0, arg1)
   289  }
   290  
   291  // Get mocks base method
   292  func (m *MockClusterRoleInterface) Get(arg0 string, arg1 v10.GetOptions) (*v1.ClusterRole, error) {
   293  	ret := m.ctrl.Call(m, "Get", arg0, arg1)
   294  	ret0, _ := ret[0].(*v1.ClusterRole)
   295  	ret1, _ := ret[1].(error)
   296  	return ret0, ret1
   297  }
   298  
   299  // Get indicates an expected call of Get
   300  func (mr *MockClusterRoleInterfaceMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call {
   301  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClusterRoleInterface)(nil).Get), arg0, arg1)
   302  }
   303  
   304  // List mocks base method
   305  func (m *MockClusterRoleInterface) List(arg0 v10.ListOptions) (*v1.ClusterRoleList, error) {
   306  	ret := m.ctrl.Call(m, "List", arg0)
   307  	ret0, _ := ret[0].(*v1.ClusterRoleList)
   308  	ret1, _ := ret[1].(error)
   309  	return ret0, ret1
   310  }
   311  
   312  // List indicates an expected call of List
   313  func (mr *MockClusterRoleInterfaceMockRecorder) List(arg0 interface{}) *gomock.Call {
   314  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockClusterRoleInterface)(nil).List), arg0)
   315  }
   316  
   317  // Patch mocks base method
   318  func (m *MockClusterRoleInterface) Patch(arg0 string, arg1 types.PatchType, arg2 []byte, arg3 ...string) (*v1.ClusterRole, error) {
   319  	varargs := []interface{}{arg0, arg1, arg2}
   320  	for _, a := range arg3 {
   321  		varargs = append(varargs, a)
   322  	}
   323  	ret := m.ctrl.Call(m, "Patch", varargs...)
   324  	ret0, _ := ret[0].(*v1.ClusterRole)
   325  	ret1, _ := ret[1].(error)
   326  	return ret0, ret1
   327  }
   328  
   329  // Patch indicates an expected call of Patch
   330  func (mr *MockClusterRoleInterfaceMockRecorder) Patch(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
   331  	varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
   332  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockClusterRoleInterface)(nil).Patch), varargs...)
   333  }
   334  
   335  // Update mocks base method
   336  func (m *MockClusterRoleInterface) Update(arg0 *v1.ClusterRole) (*v1.ClusterRole, error) {
   337  	ret := m.ctrl.Call(m, "Update", arg0)
   338  	ret0, _ := ret[0].(*v1.ClusterRole)
   339  	ret1, _ := ret[1].(error)
   340  	return ret0, ret1
   341  }
   342  
   343  // Update indicates an expected call of Update
   344  func (mr *MockClusterRoleInterfaceMockRecorder) Update(arg0 interface{}) *gomock.Call {
   345  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockClusterRoleInterface)(nil).Update), arg0)
   346  }
   347  
   348  // Watch mocks base method
   349  func (m *MockClusterRoleInterface) Watch(arg0 v10.ListOptions) (watch.Interface, error) {
   350  	ret := m.ctrl.Call(m, "Watch", arg0)
   351  	ret0, _ := ret[0].(watch.Interface)
   352  	ret1, _ := ret[1].(error)
   353  	return ret0, ret1
   354  }
   355  
   356  // Watch indicates an expected call of Watch
   357  func (mr *MockClusterRoleInterfaceMockRecorder) Watch(arg0 interface{}) *gomock.Call {
   358  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockClusterRoleInterface)(nil).Watch), arg0)
   359  }