github.com/hyperledger/aries-framework-go@v0.3.2/pkg/internal/gomocks/kms/mocks.gen.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/hyperledger/aries-framework-go/pkg/kms (interfaces: Provider,KeyManager) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 kms "github.com/hyperledger/aries-framework-go/spi/kms" 12 secretlock "github.com/hyperledger/aries-framework-go/spi/secretlock" 13 ) 14 15 // MockProvider is a mock of Provider interface. 16 type MockProvider struct { 17 ctrl *gomock.Controller 18 recorder *MockProviderMockRecorder 19 } 20 21 // MockProviderMockRecorder is the mock recorder for MockProvider. 22 type MockProviderMockRecorder struct { 23 mock *MockProvider 24 } 25 26 // NewMockProvider creates a new mock instance. 27 func NewMockProvider(ctrl *gomock.Controller) *MockProvider { 28 mock := &MockProvider{ctrl: ctrl} 29 mock.recorder = &MockProviderMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockProvider) EXPECT() *MockProviderMockRecorder { 35 return m.recorder 36 } 37 38 // SecretLock mocks base method. 39 func (m *MockProvider) SecretLock() secretlock.Service { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "SecretLock") 42 ret0, _ := ret[0].(secretlock.Service) 43 return ret0 44 } 45 46 // SecretLock indicates an expected call of SecretLock. 47 func (mr *MockProviderMockRecorder) SecretLock() *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SecretLock", reflect.TypeOf((*MockProvider)(nil).SecretLock)) 50 } 51 52 // StorageProvider mocks base method. 53 func (m *MockProvider) StorageProvider() kms.Store { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "StorageProvider") 56 ret0, _ := ret[0].(kms.Store) 57 return ret0 58 } 59 60 // StorageProvider indicates an expected call of StorageProvider. 61 func (mr *MockProviderMockRecorder) StorageProvider() *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StorageProvider", reflect.TypeOf((*MockProvider)(nil).StorageProvider)) 64 } 65 66 // MockKeyManager is a mock of KeyManager interface. 67 type MockKeyManager struct { 68 ctrl *gomock.Controller 69 recorder *MockKeyManagerMockRecorder 70 } 71 72 // MockKeyManagerMockRecorder is the mock recorder for MockKeyManager. 73 type MockKeyManagerMockRecorder struct { 74 mock *MockKeyManager 75 } 76 77 // NewMockKeyManager creates a new mock instance. 78 func NewMockKeyManager(ctrl *gomock.Controller) *MockKeyManager { 79 mock := &MockKeyManager{ctrl: ctrl} 80 mock.recorder = &MockKeyManagerMockRecorder{mock} 81 return mock 82 } 83 84 // EXPECT returns an object that allows the caller to indicate expected use. 85 func (m *MockKeyManager) EXPECT() *MockKeyManagerMockRecorder { 86 return m.recorder 87 } 88 89 // Create mocks base method. 90 func (m *MockKeyManager) Create(arg0 kms.KeyType, arg1 ...kms.KeyOpts) (string, interface{}, error) { 91 m.ctrl.T.Helper() 92 varargs := []interface{}{arg0} 93 for _, a := range arg1 { 94 varargs = append(varargs, a) 95 } 96 ret := m.ctrl.Call(m, "Create", varargs...) 97 ret0, _ := ret[0].(string) 98 ret1, _ := ret[1].(interface{}) 99 ret2, _ := ret[2].(error) 100 return ret0, ret1, ret2 101 } 102 103 // Create indicates an expected call of Create. 104 func (mr *MockKeyManagerMockRecorder) Create(arg0 interface{}, arg1 ...interface{}) *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 varargs := append([]interface{}{arg0}, arg1...) 107 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockKeyManager)(nil).Create), varargs...) 108 } 109 110 // CreateAndExportPubKeyBytes mocks base method. 111 func (m *MockKeyManager) CreateAndExportPubKeyBytes(arg0 kms.KeyType, arg1 ...kms.KeyOpts) (string, []byte, error) { 112 m.ctrl.T.Helper() 113 varargs := []interface{}{arg0} 114 for _, a := range arg1 { 115 varargs = append(varargs, a) 116 } 117 ret := m.ctrl.Call(m, "CreateAndExportPubKeyBytes", varargs...) 118 ret0, _ := ret[0].(string) 119 ret1, _ := ret[1].([]byte) 120 ret2, _ := ret[2].(error) 121 return ret0, ret1, ret2 122 } 123 124 // CreateAndExportPubKeyBytes indicates an expected call of CreateAndExportPubKeyBytes. 125 func (mr *MockKeyManagerMockRecorder) CreateAndExportPubKeyBytes(arg0 interface{}, arg1 ...interface{}) *gomock.Call { 126 mr.mock.ctrl.T.Helper() 127 varargs := append([]interface{}{arg0}, arg1...) 128 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAndExportPubKeyBytes", reflect.TypeOf((*MockKeyManager)(nil).CreateAndExportPubKeyBytes), varargs...) 129 } 130 131 // ExportPubKeyBytes mocks base method. 132 func (m *MockKeyManager) ExportPubKeyBytes(arg0 string) ([]byte, kms.KeyType, error) { 133 m.ctrl.T.Helper() 134 ret := m.ctrl.Call(m, "ExportPubKeyBytes", arg0) 135 ret0, _ := ret[0].([]byte) 136 ret1, _ := ret[1].(kms.KeyType) 137 ret2, _ := ret[2].(error) 138 return ret0, ret1, ret2 139 } 140 141 // ExportPubKeyBytes indicates an expected call of ExportPubKeyBytes. 142 func (mr *MockKeyManagerMockRecorder) ExportPubKeyBytes(arg0 interface{}) *gomock.Call { 143 mr.mock.ctrl.T.Helper() 144 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExportPubKeyBytes", reflect.TypeOf((*MockKeyManager)(nil).ExportPubKeyBytes), arg0) 145 } 146 147 // Get mocks base method. 148 func (m *MockKeyManager) Get(arg0 string) (interface{}, error) { 149 m.ctrl.T.Helper() 150 ret := m.ctrl.Call(m, "Get", arg0) 151 ret0, _ := ret[0].(interface{}) 152 ret1, _ := ret[1].(error) 153 return ret0, ret1 154 } 155 156 // Get indicates an expected call of Get. 157 func (mr *MockKeyManagerMockRecorder) Get(arg0 interface{}) *gomock.Call { 158 mr.mock.ctrl.T.Helper() 159 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockKeyManager)(nil).Get), arg0) 160 } 161 162 // ImportPrivateKey mocks base method. 163 func (m *MockKeyManager) ImportPrivateKey(arg0 interface{}, arg1 kms.KeyType, arg2 ...kms.PrivateKeyOpts) (string, interface{}, error) { 164 m.ctrl.T.Helper() 165 varargs := []interface{}{arg0, arg1} 166 for _, a := range arg2 { 167 varargs = append(varargs, a) 168 } 169 ret := m.ctrl.Call(m, "ImportPrivateKey", varargs...) 170 ret0, _ := ret[0].(string) 171 ret1, _ := ret[1].(interface{}) 172 ret2, _ := ret[2].(error) 173 return ret0, ret1, ret2 174 } 175 176 // ImportPrivateKey indicates an expected call of ImportPrivateKey. 177 func (mr *MockKeyManagerMockRecorder) ImportPrivateKey(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 178 mr.mock.ctrl.T.Helper() 179 varargs := append([]interface{}{arg0, arg1}, arg2...) 180 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportPrivateKey", reflect.TypeOf((*MockKeyManager)(nil).ImportPrivateKey), varargs...) 181 } 182 183 // PubKeyBytesToHandle mocks base method. 184 func (m *MockKeyManager) PubKeyBytesToHandle(arg0 []byte, arg1 kms.KeyType, arg2 ...kms.KeyOpts) (interface{}, error) { 185 m.ctrl.T.Helper() 186 varargs := []interface{}{arg0, arg1} 187 for _, a := range arg2 { 188 varargs = append(varargs, a) 189 } 190 ret := m.ctrl.Call(m, "PubKeyBytesToHandle", varargs...) 191 ret0, _ := ret[0].(interface{}) 192 ret1, _ := ret[1].(error) 193 return ret0, ret1 194 } 195 196 // PubKeyBytesToHandle indicates an expected call of PubKeyBytesToHandle. 197 func (mr *MockKeyManagerMockRecorder) PubKeyBytesToHandle(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 198 mr.mock.ctrl.T.Helper() 199 varargs := append([]interface{}{arg0, arg1}, arg2...) 200 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PubKeyBytesToHandle", reflect.TypeOf((*MockKeyManager)(nil).PubKeyBytesToHandle), varargs...) 201 } 202 203 // Rotate mocks base method. 204 func (m *MockKeyManager) Rotate(arg0 kms.KeyType, arg1 string, arg2 ...kms.KeyOpts) (string, interface{}, error) { 205 m.ctrl.T.Helper() 206 varargs := []interface{}{arg0, arg1} 207 for _, a := range arg2 { 208 varargs = append(varargs, a) 209 } 210 ret := m.ctrl.Call(m, "Rotate", varargs...) 211 ret0, _ := ret[0].(string) 212 ret1, _ := ret[1].(interface{}) 213 ret2, _ := ret[2].(error) 214 return ret0, ret1, ret2 215 } 216 217 // Rotate indicates an expected call of Rotate. 218 func (mr *MockKeyManagerMockRecorder) Rotate(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 219 mr.mock.ctrl.T.Helper() 220 varargs := append([]interface{}{arg0, arg1}, arg2...) 221 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rotate", reflect.TypeOf((*MockKeyManager)(nil).Rotate), varargs...) 222 }