github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/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  // Generated by this command:
     5  //
     6  //	mockgen -package mocks -destination mocks/serviceaccount_mock.go k8s.io/client-go/kubernetes/typed/core/v1 ServiceAccountInterface
     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  	v1 "k8s.io/api/authentication/v1"
    18  	v10 "k8s.io/api/core/v1"
    19  	v11 "k8s.io/apimachinery/pkg/apis/meta/v1"
    20  	types "k8s.io/apimachinery/pkg/types"
    21  	watch "k8s.io/apimachinery/pkg/watch"
    22  	v12 "k8s.io/client-go/applyconfigurations/core/v1"
    23  )
    24  
    25  // MockServiceAccountInterface is a mock of ServiceAccountInterface interface.
    26  type MockServiceAccountInterface struct {
    27  	ctrl     *gomock.Controller
    28  	recorder *MockServiceAccountInterfaceMockRecorder
    29  }
    30  
    31  // MockServiceAccountInterfaceMockRecorder is the mock recorder for MockServiceAccountInterface.
    32  type MockServiceAccountInterfaceMockRecorder struct {
    33  	mock *MockServiceAccountInterface
    34  }
    35  
    36  // NewMockServiceAccountInterface creates a new mock instance.
    37  func NewMockServiceAccountInterface(ctrl *gomock.Controller) *MockServiceAccountInterface {
    38  	mock := &MockServiceAccountInterface{ctrl: ctrl}
    39  	mock.recorder = &MockServiceAccountInterfaceMockRecorder{mock}
    40  	return mock
    41  }
    42  
    43  // EXPECT returns an object that allows the caller to indicate expected use.
    44  func (m *MockServiceAccountInterface) EXPECT() *MockServiceAccountInterfaceMockRecorder {
    45  	return m.recorder
    46  }
    47  
    48  // Apply mocks base method.
    49  func (m *MockServiceAccountInterface) Apply(arg0 context.Context, arg1 *v12.ServiceAccountApplyConfiguration, arg2 v11.ApplyOptions) (*v10.ServiceAccount, error) {
    50  	m.ctrl.T.Helper()
    51  	ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2)
    52  	ret0, _ := ret[0].(*v10.ServiceAccount)
    53  	ret1, _ := ret[1].(error)
    54  	return ret0, ret1
    55  }
    56  
    57  // Apply indicates an expected call of Apply.
    58  func (mr *MockServiceAccountInterfaceMockRecorder) Apply(arg0, arg1, arg2 any) *gomock.Call {
    59  	mr.mock.ctrl.T.Helper()
    60  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockServiceAccountInterface)(nil).Apply), arg0, arg1, arg2)
    61  }
    62  
    63  // Create mocks base method.
    64  func (m *MockServiceAccountInterface) Create(arg0 context.Context, arg1 *v10.ServiceAccount, arg2 v11.CreateOptions) (*v10.ServiceAccount, error) {
    65  	m.ctrl.T.Helper()
    66  	ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2)
    67  	ret0, _ := ret[0].(*v10.ServiceAccount)
    68  	ret1, _ := ret[1].(error)
    69  	return ret0, ret1
    70  }
    71  
    72  // Create indicates an expected call of Create.
    73  func (mr *MockServiceAccountInterfaceMockRecorder) Create(arg0, arg1, arg2 any) *gomock.Call {
    74  	mr.mock.ctrl.T.Helper()
    75  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockServiceAccountInterface)(nil).Create), arg0, arg1, arg2)
    76  }
    77  
    78  // CreateToken mocks base method.
    79  func (m *MockServiceAccountInterface) CreateToken(arg0 context.Context, arg1 string, arg2 *v1.TokenRequest, arg3 v11.CreateOptions) (*v1.TokenRequest, error) {
    80  	m.ctrl.T.Helper()
    81  	ret := m.ctrl.Call(m, "CreateToken", arg0, arg1, arg2, arg3)
    82  	ret0, _ := ret[0].(*v1.TokenRequest)
    83  	ret1, _ := ret[1].(error)
    84  	return ret0, ret1
    85  }
    86  
    87  // CreateToken indicates an expected call of CreateToken.
    88  func (mr *MockServiceAccountInterfaceMockRecorder) CreateToken(arg0, arg1, arg2, arg3 any) *gomock.Call {
    89  	mr.mock.ctrl.T.Helper()
    90  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateToken", reflect.TypeOf((*MockServiceAccountInterface)(nil).CreateToken), arg0, arg1, arg2, arg3)
    91  }
    92  
    93  // Delete mocks base method.
    94  func (m *MockServiceAccountInterface) Delete(arg0 context.Context, arg1 string, arg2 v11.DeleteOptions) error {
    95  	m.ctrl.T.Helper()
    96  	ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2)
    97  	ret0, _ := ret[0].(error)
    98  	return ret0
    99  }
   100  
   101  // Delete indicates an expected call of Delete.
   102  func (mr *MockServiceAccountInterfaceMockRecorder) Delete(arg0, arg1, arg2 any) *gomock.Call {
   103  	mr.mock.ctrl.T.Helper()
   104  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockServiceAccountInterface)(nil).Delete), arg0, arg1, arg2)
   105  }
   106  
   107  // DeleteCollection mocks base method.
   108  func (m *MockServiceAccountInterface) DeleteCollection(arg0 context.Context, arg1 v11.DeleteOptions, arg2 v11.ListOptions) error {
   109  	m.ctrl.T.Helper()
   110  	ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2)
   111  	ret0, _ := ret[0].(error)
   112  	return ret0
   113  }
   114  
   115  // DeleteCollection indicates an expected call of DeleteCollection.
   116  func (mr *MockServiceAccountInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 any) *gomock.Call {
   117  	mr.mock.ctrl.T.Helper()
   118  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockServiceAccountInterface)(nil).DeleteCollection), arg0, arg1, arg2)
   119  }
   120  
   121  // Get mocks base method.
   122  func (m *MockServiceAccountInterface) Get(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v10.ServiceAccount, error) {
   123  	m.ctrl.T.Helper()
   124  	ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2)
   125  	ret0, _ := ret[0].(*v10.ServiceAccount)
   126  	ret1, _ := ret[1].(error)
   127  	return ret0, ret1
   128  }
   129  
   130  // Get indicates an expected call of Get.
   131  func (mr *MockServiceAccountInterfaceMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call {
   132  	mr.mock.ctrl.T.Helper()
   133  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockServiceAccountInterface)(nil).Get), arg0, arg1, arg2)
   134  }
   135  
   136  // List mocks base method.
   137  func (m *MockServiceAccountInterface) List(arg0 context.Context, arg1 v11.ListOptions) (*v10.ServiceAccountList, error) {
   138  	m.ctrl.T.Helper()
   139  	ret := m.ctrl.Call(m, "List", arg0, arg1)
   140  	ret0, _ := ret[0].(*v10.ServiceAccountList)
   141  	ret1, _ := ret[1].(error)
   142  	return ret0, ret1
   143  }
   144  
   145  // List indicates an expected call of List.
   146  func (mr *MockServiceAccountInterfaceMockRecorder) List(arg0, arg1 any) *gomock.Call {
   147  	mr.mock.ctrl.T.Helper()
   148  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockServiceAccountInterface)(nil).List), arg0, arg1)
   149  }
   150  
   151  // Patch mocks base method.
   152  func (m *MockServiceAccountInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v11.PatchOptions, arg5 ...string) (*v10.ServiceAccount, error) {
   153  	m.ctrl.T.Helper()
   154  	varargs := []any{arg0, arg1, arg2, arg3, arg4}
   155  	for _, a := range arg5 {
   156  		varargs = append(varargs, a)
   157  	}
   158  	ret := m.ctrl.Call(m, "Patch", varargs...)
   159  	ret0, _ := ret[0].(*v10.ServiceAccount)
   160  	ret1, _ := ret[1].(error)
   161  	return ret0, ret1
   162  }
   163  
   164  // Patch indicates an expected call of Patch.
   165  func (mr *MockServiceAccountInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 any, arg5 ...any) *gomock.Call {
   166  	mr.mock.ctrl.T.Helper()
   167  	varargs := append([]any{arg0, arg1, arg2, arg3, arg4}, arg5...)
   168  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockServiceAccountInterface)(nil).Patch), varargs...)
   169  }
   170  
   171  // Update mocks base method.
   172  func (m *MockServiceAccountInterface) Update(arg0 context.Context, arg1 *v10.ServiceAccount, arg2 v11.UpdateOptions) (*v10.ServiceAccount, error) {
   173  	m.ctrl.T.Helper()
   174  	ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2)
   175  	ret0, _ := ret[0].(*v10.ServiceAccount)
   176  	ret1, _ := ret[1].(error)
   177  	return ret0, ret1
   178  }
   179  
   180  // Update indicates an expected call of Update.
   181  func (mr *MockServiceAccountInterfaceMockRecorder) Update(arg0, arg1, arg2 any) *gomock.Call {
   182  	mr.mock.ctrl.T.Helper()
   183  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockServiceAccountInterface)(nil).Update), arg0, arg1, arg2)
   184  }
   185  
   186  // Watch mocks base method.
   187  func (m *MockServiceAccountInterface) Watch(arg0 context.Context, arg1 v11.ListOptions) (watch.Interface, error) {
   188  	m.ctrl.T.Helper()
   189  	ret := m.ctrl.Call(m, "Watch", arg0, arg1)
   190  	ret0, _ := ret[0].(watch.Interface)
   191  	ret1, _ := ret[1].(error)
   192  	return ret0, ret1
   193  }
   194  
   195  // Watch indicates an expected call of Watch.
   196  func (mr *MockServiceAccountInterfaceMockRecorder) Watch(arg0, arg1 any) *gomock.Call {
   197  	mr.mock.ctrl.T.Helper()
   198  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockServiceAccountInterface)(nil).Watch), arg0, arg1)
   199  }