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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: ServiceAccountInterface)
     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/authentication/v1"
    10  	v10 "k8s.io/api/core/v1"
    11  	v11 "k8s.io/apimachinery/pkg/apis/meta/v1"
    12  	types "k8s.io/apimachinery/pkg/types"
    13  	watch "k8s.io/apimachinery/pkg/watch"
    14  	reflect "reflect"
    15  )
    16  
    17  // MockServiceAccountInterface is a mock of ServiceAccountInterface interface
    18  type MockServiceAccountInterface struct {
    19  	ctrl     *gomock.Controller
    20  	recorder *MockServiceAccountInterfaceMockRecorder
    21  }
    22  
    23  // MockServiceAccountInterfaceMockRecorder is the mock recorder for MockServiceAccountInterface
    24  type MockServiceAccountInterfaceMockRecorder struct {
    25  	mock *MockServiceAccountInterface
    26  }
    27  
    28  // NewMockServiceAccountInterface creates a new mock instance
    29  func NewMockServiceAccountInterface(ctrl *gomock.Controller) *MockServiceAccountInterface {
    30  	mock := &MockServiceAccountInterface{ctrl: ctrl}
    31  	mock.recorder = &MockServiceAccountInterfaceMockRecorder{mock}
    32  	return mock
    33  }
    34  
    35  // EXPECT returns an object that allows the caller to indicate expected use
    36  func (m *MockServiceAccountInterface) EXPECT() *MockServiceAccountInterfaceMockRecorder {
    37  	return m.recorder
    38  }
    39  
    40  // Create mocks base method
    41  func (m *MockServiceAccountInterface) Create(arg0 *v10.ServiceAccount) (*v10.ServiceAccount, error) {
    42  	ret := m.ctrl.Call(m, "Create", arg0)
    43  	ret0, _ := ret[0].(*v10.ServiceAccount)
    44  	ret1, _ := ret[1].(error)
    45  	return ret0, ret1
    46  }
    47  
    48  // Create indicates an expected call of Create
    49  func (mr *MockServiceAccountInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call {
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockServiceAccountInterface)(nil).Create), arg0)
    51  }
    52  
    53  // CreateToken mocks base method
    54  func (m *MockServiceAccountInterface) CreateToken(arg0 string, arg1 *v1.TokenRequest) (*v1.TokenRequest, error) {
    55  	ret := m.ctrl.Call(m, "CreateToken", arg0, arg1)
    56  	ret0, _ := ret[0].(*v1.TokenRequest)
    57  	ret1, _ := ret[1].(error)
    58  	return ret0, ret1
    59  }
    60  
    61  // CreateToken indicates an expected call of CreateToken
    62  func (mr *MockServiceAccountInterfaceMockRecorder) CreateToken(arg0, arg1 interface{}) *gomock.Call {
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateToken", reflect.TypeOf((*MockServiceAccountInterface)(nil).CreateToken), arg0, arg1)
    64  }
    65  
    66  // Delete mocks base method
    67  func (m *MockServiceAccountInterface) Delete(arg0 string, arg1 *v11.DeleteOptions) error {
    68  	ret := m.ctrl.Call(m, "Delete", arg0, arg1)
    69  	ret0, _ := ret[0].(error)
    70  	return ret0
    71  }
    72  
    73  // Delete indicates an expected call of Delete
    74  func (mr *MockServiceAccountInterfaceMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
    75  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockServiceAccountInterface)(nil).Delete), arg0, arg1)
    76  }
    77  
    78  // DeleteCollection mocks base method
    79  func (m *MockServiceAccountInterface) DeleteCollection(arg0 *v11.DeleteOptions, arg1 v11.ListOptions) error {
    80  	ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1)
    81  	ret0, _ := ret[0].(error)
    82  	return ret0
    83  }
    84  
    85  // DeleteCollection indicates an expected call of DeleteCollection
    86  func (mr *MockServiceAccountInterfaceMockRecorder) DeleteCollection(arg0, arg1 interface{}) *gomock.Call {
    87  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockServiceAccountInterface)(nil).DeleteCollection), arg0, arg1)
    88  }
    89  
    90  // Get mocks base method
    91  func (m *MockServiceAccountInterface) Get(arg0 string, arg1 v11.GetOptions) (*v10.ServiceAccount, error) {
    92  	ret := m.ctrl.Call(m, "Get", arg0, arg1)
    93  	ret0, _ := ret[0].(*v10.ServiceAccount)
    94  	ret1, _ := ret[1].(error)
    95  	return ret0, ret1
    96  }
    97  
    98  // Get indicates an expected call of Get
    99  func (mr *MockServiceAccountInterfaceMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call {
   100  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockServiceAccountInterface)(nil).Get), arg0, arg1)
   101  }
   102  
   103  // List mocks base method
   104  func (m *MockServiceAccountInterface) List(arg0 v11.ListOptions) (*v10.ServiceAccountList, error) {
   105  	ret := m.ctrl.Call(m, "List", arg0)
   106  	ret0, _ := ret[0].(*v10.ServiceAccountList)
   107  	ret1, _ := ret[1].(error)
   108  	return ret0, ret1
   109  }
   110  
   111  // List indicates an expected call of List
   112  func (mr *MockServiceAccountInterfaceMockRecorder) List(arg0 interface{}) *gomock.Call {
   113  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockServiceAccountInterface)(nil).List), arg0)
   114  }
   115  
   116  // Patch mocks base method
   117  func (m *MockServiceAccountInterface) Patch(arg0 string, arg1 types.PatchType, arg2 []byte, arg3 ...string) (*v10.ServiceAccount, error) {
   118  	varargs := []interface{}{arg0, arg1, arg2}
   119  	for _, a := range arg3 {
   120  		varargs = append(varargs, a)
   121  	}
   122  	ret := m.ctrl.Call(m, "Patch", varargs...)
   123  	ret0, _ := ret[0].(*v10.ServiceAccount)
   124  	ret1, _ := ret[1].(error)
   125  	return ret0, ret1
   126  }
   127  
   128  // Patch indicates an expected call of Patch
   129  func (mr *MockServiceAccountInterfaceMockRecorder) Patch(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
   130  	varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
   131  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockServiceAccountInterface)(nil).Patch), varargs...)
   132  }
   133  
   134  // Update mocks base method
   135  func (m *MockServiceAccountInterface) Update(arg0 *v10.ServiceAccount) (*v10.ServiceAccount, error) {
   136  	ret := m.ctrl.Call(m, "Update", arg0)
   137  	ret0, _ := ret[0].(*v10.ServiceAccount)
   138  	ret1, _ := ret[1].(error)
   139  	return ret0, ret1
   140  }
   141  
   142  // Update indicates an expected call of Update
   143  func (mr *MockServiceAccountInterfaceMockRecorder) Update(arg0 interface{}) *gomock.Call {
   144  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockServiceAccountInterface)(nil).Update), arg0)
   145  }
   146  
   147  // Watch mocks base method
   148  func (m *MockServiceAccountInterface) Watch(arg0 v11.ListOptions) (watch.Interface, error) {
   149  	ret := m.ctrl.Call(m, "Watch", arg0)
   150  	ret0, _ := ret[0].(watch.Interface)
   151  	ret1, _ := ret[1].(error)
   152  	return ret0, ret1
   153  }
   154  
   155  // Watch indicates an expected call of Watch
   156  func (mr *MockServiceAccountInterfaceMockRecorder) Watch(arg0 interface{}) *gomock.Call {
   157  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockServiceAccountInterface)(nil).Watch), arg0)
   158  }