mock_repository

package
v1.2.0-beta.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock_repository is a generated GoMock package.

Package mock_repository is a generated GoMock package.

Package mock_repository is a generated GoMock package.

Package mock_repository is a generated GoMock package.

Package mock_repository is a generated GoMock package.

Package mock_repository is a generated GoMock package.

Package mock_repository is a generated GoMock package.

Package mock_repository is a generated GoMock package.

Package mock_repository is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthenticityRepository

type MockAuthenticityRepository struct {
	// contains filtered or unexported fields
}

MockAuthenticityRepository is a mock of AuthenticityRepository interface.

func NewMockAuthenticityRepository

func NewMockAuthenticityRepository(ctrl *gomock.Controller) *MockAuthenticityRepository

NewMockAuthenticityRepository creates a new mock instance.

func (*MockAuthenticityRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAuthenticityRepository) SignECWithLocalKey

func (m *MockAuthenticityRepository) SignECWithLocalKey(ctx context.Context, data []byte, kty key.KeyType, publicKey string, privateKey *string) (string, *record.Record, error)

SignECWithLocalKey mocks base method.

func (*MockAuthenticityRepository) SignECWithLocalKeyEns

func (m *MockAuthenticityRepository) SignECWithLocalKeyEns(ctx context.Context, data []byte, kty key.KeyType, publicKey string, privateKey *string) (string, *record.Record, error)

SignECWithLocalKeyEns mocks base method.

func (*MockAuthenticityRepository) SignECWithManagedKey

func (m *MockAuthenticityRepository) SignECWithManagedKey(ctx context.Context, data []byte, kid string) (string, *record.Record, error)

SignECWithManagedKey mocks base method.

func (*MockAuthenticityRepository) SignECWithManagedKeyEns

func (m *MockAuthenticityRepository) SignECWithManagedKeyEns(ctx context.Context, data []byte, kid string) (string, *record.Record, error)

SignECWithManagedKeyEns mocks base method.

type MockAuthenticityRepositoryMockRecorder

type MockAuthenticityRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockAuthenticityRepositoryMockRecorder is the mock recorder for MockAuthenticityRepository.

func (*MockAuthenticityRepositoryMockRecorder) SignECWithLocalKey

func (mr *MockAuthenticityRepositoryMockRecorder) SignECWithLocalKey(ctx, data, kty, publicKey, privateKey interface{}) *gomock.Call

SignECWithLocalKey indicates an expected call of SignECWithLocalKey.

func (*MockAuthenticityRepositoryMockRecorder) SignECWithLocalKeyEns

func (mr *MockAuthenticityRepositoryMockRecorder) SignECWithLocalKeyEns(ctx, data, kty, publicKey, privateKey interface{}) *gomock.Call

SignECWithLocalKeyEns indicates an expected call of SignECWithLocalKeyEns.

func (*MockAuthenticityRepositoryMockRecorder) SignECWithManagedKey

func (mr *MockAuthenticityRepositoryMockRecorder) SignECWithManagedKey(ctx, data, kid interface{}) *gomock.Call

SignECWithManagedKey indicates an expected call of SignECWithManagedKey.

func (*MockAuthenticityRepositoryMockRecorder) SignECWithManagedKeyEns

func (mr *MockAuthenticityRepositoryMockRecorder) SignECWithManagedKeyEns(ctx, data, kid interface{}) *gomock.Call

SignECWithManagedKeyEns indicates an expected call of SignECWithManagedKeyEns.

type MockAvailabilityRepository

type MockAvailabilityRepository struct {
	// contains filtered or unexported fields
}

MockAvailabilityRepository is a mock of AvailabilityRepository interface.

func NewMockAvailabilityRepository

func NewMockAvailabilityRepository(ctrl *gomock.Controller) *MockAvailabilityRepository

NewMockAvailabilityRepository creates a new mock instance.

func (*MockAvailabilityRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAvailabilityRepository) FindFile

func (m *MockAvailabilityRepository) FindFile(ctx context.Context, dataID string) ([]byte, error)

FindFile mocks base method.

func (*MockAvailabilityRepository) RetrieveTmp

func (m *MockAvailabilityRepository) RetrieveTmp(ctx context.Context, filename string) ([]byte, error)

RetrieveTmp mocks base method.

func (*MockAvailabilityRepository) UploadHosted

func (m *MockAvailabilityRepository) UploadHosted(ctx context.Context, record *record.Record) (string, error)

UploadHosted mocks base method.

func (*MockAvailabilityRepository) UploadIpfs

func (m *MockAvailabilityRepository) UploadIpfs(ctx context.Context, record *record.Record) (string, error)

UploadIpfs mocks base method.

func (*MockAvailabilityRepository) UploadLocal

func (m *MockAvailabilityRepository) UploadLocal(ctx context.Context, filename string, record *record.Record) (string, error)

UploadLocal mocks base method.

func (*MockAvailabilityRepository) UploadTmp

func (m *MockAvailabilityRepository) UploadTmp(ctx context.Context, record *record.Record) (string, error)

UploadTmp mocks base method.

type MockAvailabilityRepositoryMockRecorder

type MockAvailabilityRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockAvailabilityRepositoryMockRecorder is the mock recorder for MockAvailabilityRepository.

func (*MockAvailabilityRepositoryMockRecorder) FindFile

func (mr *MockAvailabilityRepositoryMockRecorder) FindFile(ctx, dataID interface{}) *gomock.Call

FindFile indicates an expected call of FindFile.

func (*MockAvailabilityRepositoryMockRecorder) RetrieveTmp

func (mr *MockAvailabilityRepositoryMockRecorder) RetrieveTmp(ctx, filename interface{}) *gomock.Call

RetrieveTmp indicates an expected call of RetrieveTmp.

func (*MockAvailabilityRepositoryMockRecorder) UploadHosted

func (mr *MockAvailabilityRepositoryMockRecorder) UploadHosted(ctx, record interface{}) *gomock.Call

UploadHosted indicates an expected call of UploadHosted.

func (*MockAvailabilityRepositoryMockRecorder) UploadIpfs

func (mr *MockAvailabilityRepositoryMockRecorder) UploadIpfs(ctx, record interface{}) *gomock.Call

UploadIpfs indicates an expected call of UploadIpfs.

func (*MockAvailabilityRepositoryMockRecorder) UploadLocal

func (mr *MockAvailabilityRepositoryMockRecorder) UploadLocal(ctx, filename, record interface{}) *gomock.Call

UploadLocal indicates an expected call of UploadLocal.

func (*MockAvailabilityRepositoryMockRecorder) UploadTmp

func (mr *MockAvailabilityRepositoryMockRecorder) UploadTmp(ctx, record interface{}) *gomock.Call

UploadTmp indicates an expected call of UploadTmp.

type MockCertificationRepository

type MockCertificationRepository struct {
	// contains filtered or unexported fields
}

MockCertificationRepository is a mock of CertificationRepository interface.

func NewMockCertificationRepository

func NewMockCertificationRepository(ctrl *gomock.Controller) *MockCertificationRepository

NewMockCertificationRepository creates a new mock instance.

func (*MockCertificationRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCertificationRepository) ExistCertificationByHash

func (m *MockCertificationRepository) ExistCertificationByHash(ctx context.Context, hash string) (bool, error)

ExistCertificationByHash mocks base method.

func (*MockCertificationRepository) GetCertificationsByAnchorID

func (m *MockCertificationRepository) GetCertificationsByAnchorID(ctx context.Context, anchor int) ([]domain.Certification, error)

GetCertificationsByAnchorID mocks base method.

func (*MockCertificationRepository) SaveCertification

func (m *MockCertificationRepository) SaveCertification(ctx context.Context, certification domain.Certification) error

SaveCertification mocks base method.

func (*MockCertificationRepository) UpdateCertificationDataID

func (m *MockCertificationRepository) UpdateCertificationDataID(ctx context.Context, certification domain.Certification) error

UpdateCertificationDataID mocks base method.

type MockCertificationRepositoryMockRecorder

type MockCertificationRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockCertificationRepositoryMockRecorder is the mock recorder for MockCertificationRepository.

func (*MockCertificationRepositoryMockRecorder) ExistCertificationByHash

func (mr *MockCertificationRepositoryMockRecorder) ExistCertificationByHash(ctx, hash interface{}) *gomock.Call

ExistCertificationByHash indicates an expected call of ExistCertificationByHash.

func (*MockCertificationRepositoryMockRecorder) GetCertificationsByAnchorID

func (mr *MockCertificationRepositoryMockRecorder) GetCertificationsByAnchorID(ctx, anchor interface{}) *gomock.Call

GetCertificationsByAnchorID indicates an expected call of GetCertificationsByAnchorID.

func (*MockCertificationRepositoryMockRecorder) SaveCertification

func (mr *MockCertificationRepositoryMockRecorder) SaveCertification(ctx, certification interface{}) *gomock.Call

SaveCertification indicates an expected call of SaveCertification.

func (*MockCertificationRepositoryMockRecorder) UpdateCertificationDataID

func (mr *MockCertificationRepositoryMockRecorder) UpdateCertificationDataID(ctx, certification interface{}) *gomock.Call

UpdateCertificationDataID indicates an expected call of UpdateCertificationDataID.

type MockEncryptionRepository

type MockEncryptionRepository struct {
	// contains filtered or unexported fields
}

MockEncryptionRepository is a mock of EncryptionRepository interface.

func NewMockEncryptionRepository

func NewMockEncryptionRepository(ctrl *gomock.Controller) *MockEncryptionRepository

NewMockEncryptionRepository creates a new mock instance.

func (*MockEncryptionRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEncryptionRepository) EncryptAESWithLocalKey

func (m *MockEncryptionRepository) EncryptAESWithLocalKey(ctx context.Context, data []byte, kty key.KeyType, key string) (*record.Record, error)

EncryptAESWithLocalKey mocks base method.

func (*MockEncryptionRepository) EncryptAESWithManagedKey

func (m *MockEncryptionRepository) EncryptAESWithManagedKey(ctx context.Context, data []byte, kid string) (*record.Record, error)

EncryptAESWithManagedKey mocks base method.

func (*MockEncryptionRepository) EncryptRSAWithLocalKey

func (m *MockEncryptionRepository) EncryptRSAWithLocalKey(ctx context.Context, data []byte, kty key.KeyType, publicKey string, privateKey *string) (*record.Record, error)

EncryptRSAWithLocalKey mocks base method.

func (*MockEncryptionRepository) EncryptRSAWithManagedKey

func (m *MockEncryptionRepository) EncryptRSAWithManagedKey(ctx context.Context, data []byte, kid string) (*record.Record, error)

EncryptRSAWithManagedKey mocks base method.

type MockEncryptionRepositoryMockRecorder

type MockEncryptionRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockEncryptionRepositoryMockRecorder is the mock recorder for MockEncryptionRepository.

func (*MockEncryptionRepositoryMockRecorder) EncryptAESWithLocalKey

func (mr *MockEncryptionRepositoryMockRecorder) EncryptAESWithLocalKey(ctx, data, kty, key interface{}) *gomock.Call

EncryptAESWithLocalKey indicates an expected call of EncryptAESWithLocalKey.

func (*MockEncryptionRepositoryMockRecorder) EncryptAESWithManagedKey

func (mr *MockEncryptionRepositoryMockRecorder) EncryptAESWithManagedKey(ctx, data, kid interface{}) *gomock.Call

EncryptAESWithManagedKey indicates an expected call of EncryptAESWithManagedKey.

func (*MockEncryptionRepositoryMockRecorder) EncryptRSAWithLocalKey

func (mr *MockEncryptionRepositoryMockRecorder) EncryptRSAWithLocalKey(ctx, data, kty, publicKey, privateKey interface{}) *gomock.Call

EncryptRSAWithLocalKey indicates an expected call of EncryptRSAWithLocalKey.

func (*MockEncryptionRepositoryMockRecorder) EncryptRSAWithManagedKey

func (mr *MockEncryptionRepositoryMockRecorder) EncryptRSAWithManagedKey(ctx, data, kid interface{}) *gomock.Call

EncryptRSAWithManagedKey indicates an expected call of EncryptRSAWithManagedKey.

type MockIntegrityRepository

type MockIntegrityRepository struct {
	// contains filtered or unexported fields
}

MockIntegrityRepository is a mock of IntegrityRepository interface.

func NewMockIntegrityRepository

func NewMockIntegrityRepository(ctrl *gomock.Controller) *MockIntegrityRepository

NewMockIntegrityRepository creates a new mock instance.

func (*MockIntegrityRepository) Certify

Certify mocks base method.

func (*MockIntegrityRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockIntegrityRepositoryMockRecorder

type MockIntegrityRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockIntegrityRepositoryMockRecorder is the mock recorder for MockIntegrityRepository.

func (*MockIntegrityRepositoryMockRecorder) Certify

func (mr *MockIntegrityRepositoryMockRecorder) Certify(ctx, file interface{}) *gomock.Call

Certify indicates an expected call of Certify.

type MockLocalKeysRepository

type MockLocalKeysRepository struct {
	// contains filtered or unexported fields
}

MockLocalKeysRepository is a mock of LocalKeysRepository interface.

func NewMockLocalKeysRepository

func NewMockLocalKeysRepository(ctrl *gomock.Controller) *MockLocalKeysRepository

NewMockLocalKeysRepository creates a new mock instance.

func (*MockLocalKeysRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLocalKeysRepository) FindKeyByID

func (m *MockLocalKeysRepository) FindKeyByID(ctx context.Context, id uuid.UUID) (*domain.LocalKey, error)

FindKeyByID mocks base method.

func (*MockLocalKeysRepository) FindKeys

FindKeys mocks base method.

func (*MockLocalKeysRepository) SaveKey

func (m *MockLocalKeysRepository) SaveKey(ctx context.Context, localKey domain.LocalKey) error

SaveKey mocks base method.

type MockLocalKeysRepositoryMockRecorder

type MockLocalKeysRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockLocalKeysRepositoryMockRecorder is the mock recorder for MockLocalKeysRepository.

func (*MockLocalKeysRepositoryMockRecorder) FindKeyByID

func (mr *MockLocalKeysRepositoryMockRecorder) FindKeyByID(ctx, id interface{}) *gomock.Call

FindKeyByID indicates an expected call of FindKeyByID.

func (*MockLocalKeysRepositoryMockRecorder) FindKeys

func (mr *MockLocalKeysRepositoryMockRecorder) FindKeys(ctx interface{}) *gomock.Call

FindKeys indicates an expected call of FindKeys.

func (*MockLocalKeysRepositoryMockRecorder) SaveKey

func (mr *MockLocalKeysRepositoryMockRecorder) SaveKey(ctx, localKey interface{}) *gomock.Call

SaveKey indicates an expected call of SaveKey.

type MockLocalStorageRepository

type MockLocalStorageRepository struct {
	// contains filtered or unexported fields
}

MockLocalStorageRepository is a mock of LocalStorageRepository interface.

func NewMockLocalStorageRepository

func NewMockLocalStorageRepository(ctrl *gomock.Controller) *MockLocalStorageRepository

NewMockLocalStorageRepository creates a new mock instance.

func (*MockLocalStorageRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLocalStorageRepository) Retrieve

func (m *MockLocalStorageRepository) Retrieve(ctx context.Context, directory, filename string) ([]byte, error)

Retrieve mocks base method.

func (*MockLocalStorageRepository) Save

func (m *MockLocalStorageRepository) Save(ctx context.Context, data []byte, filename string) error

Save mocks base method.

type MockLocalStorageRepositoryMockRecorder

type MockLocalStorageRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockLocalStorageRepositoryMockRecorder is the mock recorder for MockLocalStorageRepository.

func (*MockLocalStorageRepositoryMockRecorder) Retrieve

func (mr *MockLocalStorageRepositoryMockRecorder) Retrieve(ctx, directory, filename interface{}) *gomock.Call

Retrieve indicates an expected call of Retrieve.

func (*MockLocalStorageRepositoryMockRecorder) Save

func (mr *MockLocalStorageRepositoryMockRecorder) Save(ctx, data, filename interface{}) *gomock.Call

Save indicates an expected call of Save.

type MockMetadataRepository

type MockMetadataRepository struct {
	// contains filtered or unexported fields
}

MockMetadataRepository is a mock of MetadataRepository interface.

func NewMockMetadataRepository

func NewMockMetadataRepository(ctrl *gomock.Controller) *MockMetadataRepository

NewMockMetadataRepository creates a new mock instance.

func (*MockMetadataRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMetadataRepository) ExistCertificationByHash

func (m *MockMetadataRepository) ExistCertificationByHash(ctx context.Context, hash string) (bool, error)

ExistCertificationByHash mocks base method.

func (*MockMetadataRepository) GetCertificationsByAnchorID

func (m *MockMetadataRepository) GetCertificationsByAnchorID(ctx context.Context, anchor int) ([]domain.Certification, error)

GetCertificationsByAnchorID mocks base method.

func (*MockMetadataRepository) GetFileHash

func (m *MockMetadataRepository) GetFileHash(ctx context.Context, file []byte) (string, error)

GetFileHash mocks base method.

func (*MockMetadataRepository) GetRecord

func (m *MockMetadataRepository) GetRecord(ctx context.Context, file []byte) (*record.Record, error)

GetRecord mocks base method.

func (*MockMetadataRepository) SaveCertification

func (m *MockMetadataRepository) SaveCertification(ctx context.Context, certification domain.Certification) error

SaveCertification mocks base method.

func (*MockMetadataRepository) UpdateCertification

func (m *MockMetadataRepository) UpdateCertification(ctx context.Context, certification domain.Certification) error

UpdateCertification mocks base method.

func (*MockMetadataRepository) UpdateCertificationDataID

func (m *MockMetadataRepository) UpdateCertificationDataID(ctx context.Context, certification domain.Certification) error

UpdateCertificationDataID mocks base method.

type MockMetadataRepositoryMockRecorder

type MockMetadataRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockMetadataRepositoryMockRecorder is the mock recorder for MockMetadataRepository.

func (*MockMetadataRepositoryMockRecorder) ExistCertificationByHash

func (mr *MockMetadataRepositoryMockRecorder) ExistCertificationByHash(ctx, hash interface{}) *gomock.Call

ExistCertificationByHash indicates an expected call of ExistCertificationByHash.

func (*MockMetadataRepositoryMockRecorder) GetCertificationsByAnchorID

func (mr *MockMetadataRepositoryMockRecorder) GetCertificationsByAnchorID(ctx, anchor interface{}) *gomock.Call

GetCertificationsByAnchorID indicates an expected call of GetCertificationsByAnchorID.

func (*MockMetadataRepositoryMockRecorder) GetFileHash

func (mr *MockMetadataRepositoryMockRecorder) GetFileHash(ctx, file interface{}) *gomock.Call

GetFileHash indicates an expected call of GetFileHash.

func (*MockMetadataRepositoryMockRecorder) GetRecord

func (mr *MockMetadataRepositoryMockRecorder) GetRecord(ctx, file interface{}) *gomock.Call

GetRecord indicates an expected call of GetRecord.

func (*MockMetadataRepositoryMockRecorder) SaveCertification

func (mr *MockMetadataRepositoryMockRecorder) SaveCertification(ctx, certification interface{}) *gomock.Call

SaveCertification indicates an expected call of SaveCertification.

func (*MockMetadataRepositoryMockRecorder) UpdateCertification

func (mr *MockMetadataRepositoryMockRecorder) UpdateCertification(ctx, certification interface{}) *gomock.Call

UpdateCertification indicates an expected call of UpdateCertification.

func (*MockMetadataRepositoryMockRecorder) UpdateCertificationDataID

func (mr *MockMetadataRepositoryMockRecorder) UpdateCertificationDataID(ctx, certification interface{}) *gomock.Call

UpdateCertificationDataID indicates an expected call of UpdateCertificationDataID.

type MockNotificationRepository

type MockNotificationRepository struct {
	// contains filtered or unexported fields
}

MockNotificationRepository is a mock of NotificationRepository interface.

func NewMockNotificationRepository

func NewMockNotificationRepository(ctrl *gomock.Controller) *MockNotificationRepository

NewMockNotificationRepository creates a new mock instance.

func (*MockNotificationRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNotificationRepository) NotifyCertification

func (m *MockNotificationRepository) NotifyCertification(hash string, file []byte) error

NotifyCertification mocks base method.

type MockNotificationRepositoryMockRecorder

type MockNotificationRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockNotificationRepositoryMockRecorder is the mock recorder for MockNotificationRepository.

func (*MockNotificationRepositoryMockRecorder) NotifyCertification

func (mr *MockNotificationRepositoryMockRecorder) NotifyCertification(hash, file interface{}) *gomock.Call

NotifyCertification indicates an expected call of NotifyCertification.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL