github.com/kubeshop/testkube@v1.17.23/pkg/secret/mock_client.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/kubeshop/testkube/pkg/secret (interfaces: Interface)
     3  
     4  // Package secret is a generated GoMock package.
     5  package secret
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	v1 "k8s.io/api/core/v1"
    12  )
    13  
    14  // MockInterface is a mock of Interface interface.
    15  type MockInterface struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockInterfaceMockRecorder
    18  }
    19  
    20  // MockInterfaceMockRecorder is the mock recorder for MockInterface.
    21  type MockInterfaceMockRecorder struct {
    22  	mock *MockInterface
    23  }
    24  
    25  // NewMockInterface creates a new mock instance.
    26  func NewMockInterface(ctrl *gomock.Controller) *MockInterface {
    27  	mock := &MockInterface{ctrl: ctrl}
    28  	mock.recorder = &MockInterfaceMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // Apply mocks base method.
    38  func (m *MockInterface) Apply(arg0 string, arg1, arg2 map[string]string) error {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2)
    41  	ret0, _ := ret[0].(error)
    42  	return ret0
    43  }
    44  
    45  // Apply indicates an expected call of Apply.
    46  func (mr *MockInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockInterface)(nil).Apply), arg0, arg1, arg2)
    49  }
    50  
    51  // Create mocks base method.
    52  func (m *MockInterface) Create(arg0 string, arg1, arg2 map[string]string, arg3 ...string) error {
    53  	m.ctrl.T.Helper()
    54  	varargs := []interface{}{arg0, arg1, arg2}
    55  	for _, a := range arg3 {
    56  		varargs = append(varargs, a)
    57  	}
    58  	ret := m.ctrl.Call(m, "Create", varargs...)
    59  	ret0, _ := ret[0].(error)
    60  	return ret0
    61  }
    62  
    63  // Create indicates an expected call of Create.
    64  func (mr *MockInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
    65  	mr.mock.ctrl.T.Helper()
    66  	varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
    67  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockInterface)(nil).Create), varargs...)
    68  }
    69  
    70  // Delete mocks base method.
    71  func (m *MockInterface) Delete(arg0 string) error {
    72  	m.ctrl.T.Helper()
    73  	ret := m.ctrl.Call(m, "Delete", arg0)
    74  	ret0, _ := ret[0].(error)
    75  	return ret0
    76  }
    77  
    78  // Delete indicates an expected call of Delete.
    79  func (mr *MockInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call {
    80  	mr.mock.ctrl.T.Helper()
    81  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockInterface)(nil).Delete), arg0)
    82  }
    83  
    84  // DeleteAll mocks base method.
    85  func (m *MockInterface) DeleteAll(arg0 string) error {
    86  	m.ctrl.T.Helper()
    87  	ret := m.ctrl.Call(m, "DeleteAll", arg0)
    88  	ret0, _ := ret[0].(error)
    89  	return ret0
    90  }
    91  
    92  // DeleteAll indicates an expected call of DeleteAll.
    93  func (mr *MockInterfaceMockRecorder) DeleteAll(arg0 interface{}) *gomock.Call {
    94  	mr.mock.ctrl.T.Helper()
    95  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAll", reflect.TypeOf((*MockInterface)(nil).DeleteAll), arg0)
    96  }
    97  
    98  // Get mocks base method.
    99  func (m *MockInterface) Get(arg0 string, arg1 ...string) (map[string]string, error) {
   100  	m.ctrl.T.Helper()
   101  	varargs := []interface{}{arg0}
   102  	for _, a := range arg1 {
   103  		varargs = append(varargs, a)
   104  	}
   105  	ret := m.ctrl.Call(m, "Get", varargs...)
   106  	ret0, _ := ret[0].(map[string]string)
   107  	ret1, _ := ret[1].(error)
   108  	return ret0, ret1
   109  }
   110  
   111  // Get indicates an expected call of Get.
   112  func (mr *MockInterfaceMockRecorder) Get(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
   113  	mr.mock.ctrl.T.Helper()
   114  	varargs := append([]interface{}{arg0}, arg1...)
   115  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockInterface)(nil).Get), varargs...)
   116  }
   117  
   118  // GetObject mocks base method.
   119  func (m *MockInterface) GetObject(arg0 string) (*v1.Secret, error) {
   120  	m.ctrl.T.Helper()
   121  	ret := m.ctrl.Call(m, "GetObject", arg0)
   122  	ret0, _ := ret[0].(*v1.Secret)
   123  	ret1, _ := ret[1].(error)
   124  	return ret0, ret1
   125  }
   126  
   127  // GetObject indicates an expected call of GetObject.
   128  func (mr *MockInterfaceMockRecorder) GetObject(arg0 interface{}) *gomock.Call {
   129  	mr.mock.ctrl.T.Helper()
   130  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetObject", reflect.TypeOf((*MockInterface)(nil).GetObject), arg0)
   131  }
   132  
   133  // List mocks base method.
   134  func (m *MockInterface) List(arg0 bool, arg1 string) (map[string]map[string]string, error) {
   135  	m.ctrl.T.Helper()
   136  	ret := m.ctrl.Call(m, "List", arg0, arg1)
   137  	ret0, _ := ret[0].(map[string]map[string]string)
   138  	ret1, _ := ret[1].(error)
   139  	return ret0, ret1
   140  }
   141  
   142  // List indicates an expected call of List.
   143  func (mr *MockInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call {
   144  	mr.mock.ctrl.T.Helper()
   145  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockInterface)(nil).List), arg0, arg1)
   146  }
   147  
   148  // Update mocks base method.
   149  func (m *MockInterface) Update(arg0 string, arg1, arg2 map[string]string) error {
   150  	m.ctrl.T.Helper()
   151  	ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2)
   152  	ret0, _ := ret[0].(error)
   153  	return ret0
   154  }
   155  
   156  // Update indicates an expected call of Update.
   157  func (mr *MockInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call {
   158  	mr.mock.ctrl.T.Helper()
   159  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockInterface)(nil).Update), arg0, arg1, arg2)
   160  }