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