-
Notifications
You must be signed in to change notification settings - Fork 0
/
mockmsp.gen.go
275 lines (234 loc) · 9.47 KB
/
mockmsp.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/jxu86/fabric-sdk-go-gm/pkg/common/providers/msp (interfaces: IdentityConfig,IdentityManager,Providers)
// Package mockmsp is a generated GoMock package.
package mockmsp
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
msp "github.com/jxu86/fabric-sdk-go-gm/pkg/common/providers/msp"
tls "github.com/jxu86/fabric-sdk-go-gm/pkg/core/config/comm/tls"
)
// MockIdentityConfig is a mock of IdentityConfig interface
type MockIdentityConfig struct {
ctrl *gomock.Controller
recorder *MockIdentityConfigMockRecorder
}
// MockIdentityConfigMockRecorder is the mock recorder for MockIdentityConfig
type MockIdentityConfigMockRecorder struct {
mock *MockIdentityConfig
}
// NewMockIdentityConfig creates a new mock instance
func NewMockIdentityConfig(ctrl *gomock.Controller) *MockIdentityConfig {
mock := &MockIdentityConfig{ctrl: ctrl}
mock.recorder = &MockIdentityConfigMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockIdentityConfig) EXPECT() *MockIdentityConfigMockRecorder {
return m.recorder
}
// CAClientCert mocks base method
func (m *MockIdentityConfig) CAClientCert(arg0 string) ([]byte, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CAClientCert", arg0)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// CAClientCert indicates an expected call of CAClientCert
func (mr *MockIdentityConfigMockRecorder) CAClientCert(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CAClientCert", reflect.TypeOf((*MockIdentityConfig)(nil).CAClientCert), arg0)
}
// CAClientKey mocks base method
func (m *MockIdentityConfig) CAClientKey(arg0 string) ([]byte, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CAClientKey", arg0)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// CAClientKey indicates an expected call of CAClientKey
func (mr *MockIdentityConfigMockRecorder) CAClientKey(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CAClientKey", reflect.TypeOf((*MockIdentityConfig)(nil).CAClientKey), arg0)
}
// CAConfig mocks base method
func (m *MockIdentityConfig) CAConfig(arg0 string) (*msp.CAConfig, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CAConfig", arg0)
ret0, _ := ret[0].(*msp.CAConfig)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// CAConfig indicates an expected call of CAConfig
func (mr *MockIdentityConfigMockRecorder) CAConfig(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CAConfig", reflect.TypeOf((*MockIdentityConfig)(nil).CAConfig), arg0)
}
// CAKeyStorePath mocks base method
func (m *MockIdentityConfig) CAKeyStorePath() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CAKeyStorePath")
ret0, _ := ret[0].(string)
return ret0
}
// CAKeyStorePath indicates an expected call of CAKeyStorePath
func (mr *MockIdentityConfigMockRecorder) CAKeyStorePath() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CAKeyStorePath", reflect.TypeOf((*MockIdentityConfig)(nil).CAKeyStorePath))
}
// CAServerCerts mocks base method
func (m *MockIdentityConfig) CAServerCerts(arg0 string) ([][]byte, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CAServerCerts", arg0)
ret0, _ := ret[0].([][]byte)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// CAServerCerts indicates an expected call of CAServerCerts
func (mr *MockIdentityConfigMockRecorder) CAServerCerts(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CAServerCerts", reflect.TypeOf((*MockIdentityConfig)(nil).CAServerCerts), arg0)
}
// Client mocks base method
func (m *MockIdentityConfig) Client() *msp.ClientConfig {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Client")
ret0, _ := ret[0].(*msp.ClientConfig)
return ret0
}
// Client indicates an expected call of Client
func (mr *MockIdentityConfigMockRecorder) Client() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Client", reflect.TypeOf((*MockIdentityConfig)(nil).Client))
}
// CredentialStorePath mocks base method
func (m *MockIdentityConfig) CredentialStorePath() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CredentialStorePath")
ret0, _ := ret[0].(string)
return ret0
}
// CredentialStorePath indicates an expected call of CredentialStorePath
func (mr *MockIdentityConfigMockRecorder) CredentialStorePath() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CredentialStorePath", reflect.TypeOf((*MockIdentityConfig)(nil).CredentialStorePath))
}
// TLSCACertPool mocks base method
func (m *MockIdentityConfig) TLSCACertPool() tls.CertPool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "TLSCACertPool")
ret0, _ := ret[0].(tls.CertPool)
return ret0
}
// TLSCACertPool indicates an expected call of TLSCACertPool
func (mr *MockIdentityConfigMockRecorder) TLSCACertPool() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TLSCACertPool", reflect.TypeOf((*MockIdentityConfig)(nil).TLSCACertPool))
}
// MockIdentityManager is a mock of IdentityManager interface
type MockIdentityManager struct {
ctrl *gomock.Controller
recorder *MockIdentityManagerMockRecorder
}
// MockIdentityManagerMockRecorder is the mock recorder for MockIdentityManager
type MockIdentityManagerMockRecorder struct {
mock *MockIdentityManager
}
// NewMockIdentityManager creates a new mock instance
func NewMockIdentityManager(ctrl *gomock.Controller) *MockIdentityManager {
mock := &MockIdentityManager{ctrl: ctrl}
mock.recorder = &MockIdentityManagerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockIdentityManager) EXPECT() *MockIdentityManagerMockRecorder {
return m.recorder
}
// CreateSigningIdentity mocks base method
func (m *MockIdentityManager) CreateSigningIdentity(arg0 ...msp.SigningIdentityOption) (msp.SigningIdentity, error) {
m.ctrl.T.Helper()
varargs := []interface{}{}
for _, a := range arg0 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "CreateSigningIdentity", varargs...)
ret0, _ := ret[0].(msp.SigningIdentity)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateSigningIdentity indicates an expected call of CreateSigningIdentity
func (mr *MockIdentityManagerMockRecorder) CreateSigningIdentity(arg0 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSigningIdentity", reflect.TypeOf((*MockIdentityManager)(nil).CreateSigningIdentity), arg0...)
}
// GetSigningIdentity mocks base method
func (m *MockIdentityManager) GetSigningIdentity(arg0 string) (msp.SigningIdentity, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSigningIdentity", arg0)
ret0, _ := ret[0].(msp.SigningIdentity)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetSigningIdentity indicates an expected call of GetSigningIdentity
func (mr *MockIdentityManagerMockRecorder) GetSigningIdentity(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSigningIdentity", reflect.TypeOf((*MockIdentityManager)(nil).GetSigningIdentity), arg0)
}
// MockProviders is a mock of Providers interface
type MockProviders struct {
ctrl *gomock.Controller
recorder *MockProvidersMockRecorder
}
// MockProvidersMockRecorder is the mock recorder for MockProviders
type MockProvidersMockRecorder struct {
mock *MockProviders
}
// NewMockProviders creates a new mock instance
func NewMockProviders(ctrl *gomock.Controller) *MockProviders {
mock := &MockProviders{ctrl: ctrl}
mock.recorder = &MockProvidersMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockProviders) EXPECT() *MockProvidersMockRecorder {
return m.recorder
}
// IdentityConfig mocks base method
func (m *MockProviders) IdentityConfig() msp.IdentityConfig {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IdentityConfig")
ret0, _ := ret[0].(msp.IdentityConfig)
return ret0
}
// IdentityConfig indicates an expected call of IdentityConfig
func (mr *MockProvidersMockRecorder) IdentityConfig() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdentityConfig", reflect.TypeOf((*MockProviders)(nil).IdentityConfig))
}
// IdentityManager mocks base method
func (m *MockProviders) IdentityManager(arg0 string) (msp.IdentityManager, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IdentityManager", arg0)
ret0, _ := ret[0].(msp.IdentityManager)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// IdentityManager indicates an expected call of IdentityManager
func (mr *MockProvidersMockRecorder) IdentityManager(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdentityManager", reflect.TypeOf((*MockProviders)(nil).IdentityManager), arg0)
}
// UserStore mocks base method
func (m *MockProviders) UserStore() msp.UserStore {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UserStore")
ret0, _ := ret[0].(msp.UserStore)
return ret0
}
// UserStore indicates an expected call of UserStore
func (mr *MockProvidersMockRecorder) UserStore() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserStore", reflect.TypeOf((*MockProviders)(nil).UserStore))
}