Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockDatabase
- func (m *MockDatabase) ETHAccounts(storeID string) database.ETHAccounts
- func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
- func (m *MockDatabase) Keys(storeID string) database.Keys
- func (m *MockDatabase) Ping(ctx context.Context) error
- func (m *MockDatabase) Secrets(storeID string) database.Secrets
- type MockDatabaseMockRecorder
- func (mr *MockDatabaseMockRecorder) ETHAccounts(storeID interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Keys(storeID interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Ping(ctx interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Secrets(storeID interface{}) *gomock.Call
- type MockETHAccounts
- func (m *MockETHAccounts) Add(ctx context.Context, account *entities.ETHAccount) (*entities.ETHAccount, error)
- func (m *MockETHAccounts) Delete(ctx context.Context, addr string) error
- func (m *MockETHAccounts) EXPECT() *MockETHAccountsMockRecorder
- func (m *MockETHAccounts) Get(ctx context.Context, addr string) (*entities.ETHAccount, error)
- func (m *MockETHAccounts) GetAll(ctx context.Context) ([]*entities.ETHAccount, error)
- func (m *MockETHAccounts) GetAllDeleted(ctx context.Context) ([]*entities.ETHAccount, error)
- func (m *MockETHAccounts) GetDeleted(ctx context.Context, addr string) (*entities.ETHAccount, error)
- func (m *MockETHAccounts) Purge(ctx context.Context, addr string) error
- func (m *MockETHAccounts) Restore(ctx context.Context, addr string) error
- func (m *MockETHAccounts) RunInTransaction(ctx context.Context, persistFunc func(database.ETHAccounts) error) error
- func (m *MockETHAccounts) SearchAddresses(ctx context.Context, isDeleted bool, limit, offset uint64) ([]string, error)
- func (m *MockETHAccounts) Update(ctx context.Context, account *entities.ETHAccount) (*entities.ETHAccount, error)
- type MockETHAccountsMockRecorder
- func (mr *MockETHAccountsMockRecorder) Add(ctx, account interface{}) *gomock.Call
- func (mr *MockETHAccountsMockRecorder) Delete(ctx, addr interface{}) *gomock.Call
- func (mr *MockETHAccountsMockRecorder) Get(ctx, addr interface{}) *gomock.Call
- func (mr *MockETHAccountsMockRecorder) GetAll(ctx interface{}) *gomock.Call
- func (mr *MockETHAccountsMockRecorder) GetAllDeleted(ctx interface{}) *gomock.Call
- func (mr *MockETHAccountsMockRecorder) GetDeleted(ctx, addr interface{}) *gomock.Call
- func (mr *MockETHAccountsMockRecorder) Purge(ctx, addr interface{}) *gomock.Call
- func (mr *MockETHAccountsMockRecorder) Restore(ctx, addr interface{}) *gomock.Call
- func (mr *MockETHAccountsMockRecorder) RunInTransaction(ctx, persistFunc interface{}) *gomock.Call
- func (mr *MockETHAccountsMockRecorder) SearchAddresses(ctx, isDeleted, limit, offset interface{}) *gomock.Call
- func (mr *MockETHAccountsMockRecorder) Update(ctx, account interface{}) *gomock.Call
- type MockKeys
- func (m *MockKeys) Add(ctx context.Context, key *entities.Key) (*entities.Key, error)
- func (m *MockKeys) Delete(ctx context.Context, id string) error
- func (m *MockKeys) EXPECT() *MockKeysMockRecorder
- func (m *MockKeys) Get(ctx context.Context, id string) (*entities.Key, error)
- func (m *MockKeys) GetAll(ctx context.Context) ([]*entities.Key, error)
- func (m *MockKeys) GetAllDeleted(ctx context.Context) ([]*entities.Key, error)
- func (m *MockKeys) GetDeleted(ctx context.Context, id string) (*entities.Key, error)
- func (m *MockKeys) Purge(ctx context.Context, id string) error
- func (m *MockKeys) Restore(ctx context.Context, id string) error
- func (m *MockKeys) RunInTransaction(ctx context.Context, persistFunc func(database.Keys) error) error
- func (m *MockKeys) SearchIDs(ctx context.Context, isDeleted bool, limit, offset uint64) ([]string, error)
- func (m *MockKeys) Update(ctx context.Context, key *entities.Key) (*entities.Key, error)
- type MockKeysMockRecorder
- func (mr *MockKeysMockRecorder) Add(ctx, key interface{}) *gomock.Call
- func (mr *MockKeysMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockKeysMockRecorder) Get(ctx, id interface{}) *gomock.Call
- func (mr *MockKeysMockRecorder) GetAll(ctx interface{}) *gomock.Call
- func (mr *MockKeysMockRecorder) GetAllDeleted(ctx interface{}) *gomock.Call
- func (mr *MockKeysMockRecorder) GetDeleted(ctx, id interface{}) *gomock.Call
- func (mr *MockKeysMockRecorder) Purge(ctx, id interface{}) *gomock.Call
- func (mr *MockKeysMockRecorder) Restore(ctx, id interface{}) *gomock.Call
- func (mr *MockKeysMockRecorder) RunInTransaction(ctx, persistFunc interface{}) *gomock.Call
- func (mr *MockKeysMockRecorder) SearchIDs(ctx, isDeleted, limit, offset interface{}) *gomock.Call
- func (mr *MockKeysMockRecorder) Update(ctx, key interface{}) *gomock.Call
- type MockSecrets
- func (m *MockSecrets) Add(ctx context.Context, secret *entities.Secret) (*entities.Secret, error)
- func (m *MockSecrets) Delete(ctx context.Context, id string) error
- func (m *MockSecrets) EXPECT() *MockSecretsMockRecorder
- func (m *MockSecrets) Get(ctx context.Context, id, version string) (*entities.Secret, error)
- func (m *MockSecrets) GetAll(ctx context.Context) ([]*entities.Secret, error)
- func (m *MockSecrets) GetAllDeleted(ctx context.Context) ([]*entities.Secret, error)
- func (m *MockSecrets) GetDeleted(ctx context.Context, id string) (*entities.Secret, error)
- func (m *MockSecrets) GetLatestVersion(ctx context.Context, id string, isDeleted bool) (string, error)
- func (m *MockSecrets) ListVersions(ctx context.Context, id string, isDeleted bool) ([]string, error)
- func (m *MockSecrets) Purge(ctx context.Context, id string) error
- func (m *MockSecrets) Restore(ctx context.Context, id string) error
- func (m *MockSecrets) RunInTransaction(ctx context.Context, persistFunc func(database.Secrets) error) error
- func (m *MockSecrets) SearchIDs(ctx context.Context, isDeleted bool, limit, offset uint64) ([]string, error)
- func (m *MockSecrets) Update(ctx context.Context, secret *entities.Secret) (*entities.Secret, error)
- type MockSecretsMockRecorder
- func (mr *MockSecretsMockRecorder) Add(ctx, secret interface{}) *gomock.Call
- func (mr *MockSecretsMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockSecretsMockRecorder) Get(ctx, id, version interface{}) *gomock.Call
- func (mr *MockSecretsMockRecorder) GetAll(ctx interface{}) *gomock.Call
- func (mr *MockSecretsMockRecorder) GetAllDeleted(ctx interface{}) *gomock.Call
- func (mr *MockSecretsMockRecorder) GetDeleted(ctx, id interface{}) *gomock.Call
- func (mr *MockSecretsMockRecorder) GetLatestVersion(ctx, id, isDeleted interface{}) *gomock.Call
- func (mr *MockSecretsMockRecorder) ListVersions(ctx, id, isDeleted interface{}) *gomock.Call
- func (mr *MockSecretsMockRecorder) Purge(ctx, id interface{}) *gomock.Call
- func (mr *MockSecretsMockRecorder) Restore(ctx, id interface{}) *gomock.Call
- func (mr *MockSecretsMockRecorder) RunInTransaction(ctx, persistFunc interface{}) *gomock.Call
- func (mr *MockSecretsMockRecorder) SearchIDs(ctx, isDeleted, limit, offset interface{}) *gomock.Call
- func (mr *MockSecretsMockRecorder) Update(ctx, secret interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDatabase ¶
type MockDatabase struct {
// contains filtered or unexported fields
}
MockDatabase is a mock of Database interface
func NewMockDatabase ¶
func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase
NewMockDatabase creates a new mock instance
func (*MockDatabase) ETHAccounts ¶
func (m *MockDatabase) ETHAccounts(storeID string) database.ETHAccounts
ETHAccounts mocks base method
func (*MockDatabase) EXPECT ¶
func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDatabase) Keys ¶
func (m *MockDatabase) Keys(storeID string) database.Keys
Keys mocks base method
type MockDatabaseMockRecorder ¶
type MockDatabaseMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseMockRecorder is the mock recorder for MockDatabase
func (*MockDatabaseMockRecorder) ETHAccounts ¶
func (mr *MockDatabaseMockRecorder) ETHAccounts(storeID interface{}) *gomock.Call
ETHAccounts indicates an expected call of ETHAccounts
func (*MockDatabaseMockRecorder) Keys ¶
func (mr *MockDatabaseMockRecorder) Keys(storeID interface{}) *gomock.Call
Keys indicates an expected call of Keys
func (*MockDatabaseMockRecorder) Ping ¶
func (mr *MockDatabaseMockRecorder) Ping(ctx interface{}) *gomock.Call
Ping indicates an expected call of Ping
func (*MockDatabaseMockRecorder) Secrets ¶
func (mr *MockDatabaseMockRecorder) Secrets(storeID interface{}) *gomock.Call
Secrets indicates an expected call of Secrets
type MockETHAccounts ¶
type MockETHAccounts struct {
// contains filtered or unexported fields
}
MockETHAccounts is a mock of ETHAccounts interface
func NewMockETHAccounts ¶
func NewMockETHAccounts(ctrl *gomock.Controller) *MockETHAccounts
NewMockETHAccounts creates a new mock instance
func (*MockETHAccounts) Add ¶
func (m *MockETHAccounts) Add(ctx context.Context, account *entities.ETHAccount) (*entities.ETHAccount, error)
Add mocks base method
func (*MockETHAccounts) Delete ¶
func (m *MockETHAccounts) Delete(ctx context.Context, addr string) error
Delete mocks base method
func (*MockETHAccounts) EXPECT ¶
func (m *MockETHAccounts) EXPECT() *MockETHAccountsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockETHAccounts) Get ¶
func (m *MockETHAccounts) Get(ctx context.Context, addr string) (*entities.ETHAccount, error)
Get mocks base method
func (*MockETHAccounts) GetAll ¶
func (m *MockETHAccounts) GetAll(ctx context.Context) ([]*entities.ETHAccount, error)
GetAll mocks base method
func (*MockETHAccounts) GetAllDeleted ¶
func (m *MockETHAccounts) GetAllDeleted(ctx context.Context) ([]*entities.ETHAccount, error)
GetAllDeleted mocks base method
func (*MockETHAccounts) GetDeleted ¶
func (m *MockETHAccounts) GetDeleted(ctx context.Context, addr string) (*entities.ETHAccount, error)
GetDeleted mocks base method
func (*MockETHAccounts) Purge ¶
func (m *MockETHAccounts) Purge(ctx context.Context, addr string) error
Purge mocks base method
func (*MockETHAccounts) Restore ¶
func (m *MockETHAccounts) Restore(ctx context.Context, addr string) error
Restore mocks base method
func (*MockETHAccounts) RunInTransaction ¶
func (m *MockETHAccounts) RunInTransaction(ctx context.Context, persistFunc func(database.ETHAccounts) error) error
RunInTransaction mocks base method
func (*MockETHAccounts) SearchAddresses ¶
func (m *MockETHAccounts) SearchAddresses(ctx context.Context, isDeleted bool, limit, offset uint64) ([]string, error)
SearchAddresses mocks base method
func (*MockETHAccounts) Update ¶
func (m *MockETHAccounts) Update(ctx context.Context, account *entities.ETHAccount) (*entities.ETHAccount, error)
Update mocks base method
type MockETHAccountsMockRecorder ¶
type MockETHAccountsMockRecorder struct {
// contains filtered or unexported fields
}
MockETHAccountsMockRecorder is the mock recorder for MockETHAccounts
func (*MockETHAccountsMockRecorder) Add ¶
func (mr *MockETHAccountsMockRecorder) Add(ctx, account interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockETHAccountsMockRecorder) Delete ¶
func (mr *MockETHAccountsMockRecorder) Delete(ctx, addr interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockETHAccountsMockRecorder) Get ¶
func (mr *MockETHAccountsMockRecorder) Get(ctx, addr interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockETHAccountsMockRecorder) GetAll ¶
func (mr *MockETHAccountsMockRecorder) GetAll(ctx interface{}) *gomock.Call
GetAll indicates an expected call of GetAll
func (*MockETHAccountsMockRecorder) GetAllDeleted ¶
func (mr *MockETHAccountsMockRecorder) GetAllDeleted(ctx interface{}) *gomock.Call
GetAllDeleted indicates an expected call of GetAllDeleted
func (*MockETHAccountsMockRecorder) GetDeleted ¶
func (mr *MockETHAccountsMockRecorder) GetDeleted(ctx, addr interface{}) *gomock.Call
GetDeleted indicates an expected call of GetDeleted
func (*MockETHAccountsMockRecorder) Purge ¶
func (mr *MockETHAccountsMockRecorder) Purge(ctx, addr interface{}) *gomock.Call
Purge indicates an expected call of Purge
func (*MockETHAccountsMockRecorder) Restore ¶
func (mr *MockETHAccountsMockRecorder) Restore(ctx, addr interface{}) *gomock.Call
Restore indicates an expected call of Restore
func (*MockETHAccountsMockRecorder) RunInTransaction ¶
func (mr *MockETHAccountsMockRecorder) RunInTransaction(ctx, persistFunc interface{}) *gomock.Call
RunInTransaction indicates an expected call of RunInTransaction
func (*MockETHAccountsMockRecorder) SearchAddresses ¶
func (mr *MockETHAccountsMockRecorder) SearchAddresses(ctx, isDeleted, limit, offset interface{}) *gomock.Call
SearchAddresses indicates an expected call of SearchAddresses
func (*MockETHAccountsMockRecorder) Update ¶
func (mr *MockETHAccountsMockRecorder) Update(ctx, account interface{}) *gomock.Call
Update indicates an expected call of Update
type MockKeys ¶
type MockKeys struct {
// contains filtered or unexported fields
}
MockKeys is a mock of Keys interface
func NewMockKeys ¶
func NewMockKeys(ctrl *gomock.Controller) *MockKeys
NewMockKeys creates a new mock instance
func (*MockKeys) EXPECT ¶
func (m *MockKeys) EXPECT() *MockKeysMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockKeys) GetAllDeleted ¶
GetAllDeleted mocks base method
func (*MockKeys) GetDeleted ¶
GetDeleted mocks base method
func (*MockKeys) RunInTransaction ¶
func (m *MockKeys) RunInTransaction(ctx context.Context, persistFunc func(database.Keys) error) error
RunInTransaction mocks base method
type MockKeysMockRecorder ¶
type MockKeysMockRecorder struct {
// contains filtered or unexported fields
}
MockKeysMockRecorder is the mock recorder for MockKeys
func (*MockKeysMockRecorder) Add ¶
func (mr *MockKeysMockRecorder) Add(ctx, key interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockKeysMockRecorder) Delete ¶
func (mr *MockKeysMockRecorder) Delete(ctx, id interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockKeysMockRecorder) Get ¶
func (mr *MockKeysMockRecorder) Get(ctx, id interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockKeysMockRecorder) GetAll ¶
func (mr *MockKeysMockRecorder) GetAll(ctx interface{}) *gomock.Call
GetAll indicates an expected call of GetAll
func (*MockKeysMockRecorder) GetAllDeleted ¶
func (mr *MockKeysMockRecorder) GetAllDeleted(ctx interface{}) *gomock.Call
GetAllDeleted indicates an expected call of GetAllDeleted
func (*MockKeysMockRecorder) GetDeleted ¶
func (mr *MockKeysMockRecorder) GetDeleted(ctx, id interface{}) *gomock.Call
GetDeleted indicates an expected call of GetDeleted
func (*MockKeysMockRecorder) Purge ¶
func (mr *MockKeysMockRecorder) Purge(ctx, id interface{}) *gomock.Call
Purge indicates an expected call of Purge
func (*MockKeysMockRecorder) Restore ¶
func (mr *MockKeysMockRecorder) Restore(ctx, id interface{}) *gomock.Call
Restore indicates an expected call of Restore
func (*MockKeysMockRecorder) RunInTransaction ¶
func (mr *MockKeysMockRecorder) RunInTransaction(ctx, persistFunc interface{}) *gomock.Call
RunInTransaction indicates an expected call of RunInTransaction
func (*MockKeysMockRecorder) SearchIDs ¶
func (mr *MockKeysMockRecorder) SearchIDs(ctx, isDeleted, limit, offset interface{}) *gomock.Call
SearchIDs indicates an expected call of SearchIDs
func (*MockKeysMockRecorder) Update ¶
func (mr *MockKeysMockRecorder) Update(ctx, key interface{}) *gomock.Call
Update indicates an expected call of Update
type MockSecrets ¶
type MockSecrets struct {
// contains filtered or unexported fields
}
MockSecrets is a mock of Secrets interface
func NewMockSecrets ¶
func NewMockSecrets(ctrl *gomock.Controller) *MockSecrets
NewMockSecrets creates a new mock instance
func (*MockSecrets) Delete ¶
func (m *MockSecrets) Delete(ctx context.Context, id string) error
Delete mocks base method
func (*MockSecrets) EXPECT ¶
func (m *MockSecrets) EXPECT() *MockSecretsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSecrets) GetAllDeleted ¶
GetAllDeleted mocks base method
func (*MockSecrets) GetDeleted ¶
GetDeleted mocks base method
func (*MockSecrets) GetLatestVersion ¶
func (m *MockSecrets) GetLatestVersion(ctx context.Context, id string, isDeleted bool) (string, error)
GetLatestVersion mocks base method
func (*MockSecrets) ListVersions ¶
func (m *MockSecrets) ListVersions(ctx context.Context, id string, isDeleted bool) ([]string, error)
ListVersions mocks base method
func (*MockSecrets) Purge ¶
func (m *MockSecrets) Purge(ctx context.Context, id string) error
Purge mocks base method
func (*MockSecrets) Restore ¶
func (m *MockSecrets) Restore(ctx context.Context, id string) error
Restore mocks base method
func (*MockSecrets) RunInTransaction ¶
func (m *MockSecrets) RunInTransaction(ctx context.Context, persistFunc func(database.Secrets) error) error
RunInTransaction mocks base method
type MockSecretsMockRecorder ¶
type MockSecretsMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretsMockRecorder is the mock recorder for MockSecrets
func (*MockSecretsMockRecorder) Add ¶
func (mr *MockSecretsMockRecorder) Add(ctx, secret interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockSecretsMockRecorder) Delete ¶
func (mr *MockSecretsMockRecorder) Delete(ctx, id interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockSecretsMockRecorder) Get ¶
func (mr *MockSecretsMockRecorder) Get(ctx, id, version interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockSecretsMockRecorder) GetAll ¶
func (mr *MockSecretsMockRecorder) GetAll(ctx interface{}) *gomock.Call
GetAll indicates an expected call of GetAll
func (*MockSecretsMockRecorder) GetAllDeleted ¶
func (mr *MockSecretsMockRecorder) GetAllDeleted(ctx interface{}) *gomock.Call
GetAllDeleted indicates an expected call of GetAllDeleted
func (*MockSecretsMockRecorder) GetDeleted ¶
func (mr *MockSecretsMockRecorder) GetDeleted(ctx, id interface{}) *gomock.Call
GetDeleted indicates an expected call of GetDeleted
func (*MockSecretsMockRecorder) GetLatestVersion ¶
func (mr *MockSecretsMockRecorder) GetLatestVersion(ctx, id, isDeleted interface{}) *gomock.Call
GetLatestVersion indicates an expected call of GetLatestVersion
func (*MockSecretsMockRecorder) ListVersions ¶
func (mr *MockSecretsMockRecorder) ListVersions(ctx, id, isDeleted interface{}) *gomock.Call
ListVersions indicates an expected call of ListVersions
func (*MockSecretsMockRecorder) Purge ¶
func (mr *MockSecretsMockRecorder) Purge(ctx, id interface{}) *gomock.Call
Purge indicates an expected call of Purge
func (*MockSecretsMockRecorder) Restore ¶
func (mr *MockSecretsMockRecorder) Restore(ctx, id interface{}) *gomock.Call
Restore indicates an expected call of Restore
func (*MockSecretsMockRecorder) RunInTransaction ¶
func (mr *MockSecretsMockRecorder) RunInTransaction(ctx, persistFunc interface{}) *gomock.Call
RunInTransaction indicates an expected call of RunInTransaction
func (*MockSecretsMockRecorder) SearchIDs ¶
func (mr *MockSecretsMockRecorder) SearchIDs(ctx, isDeleted, limit, offset interface{}) *gomock.Call
SearchIDs indicates an expected call of SearchIDs
func (*MockSecretsMockRecorder) Update ¶
func (mr *MockSecretsMockRecorder) Update(ctx, secret interface{}) *gomock.Call
Update indicates an expected call of Update