Documentation ¶
Index ¶
- Variables
- func NewBloockAuthenticityRepository(ctx context.Context, logger zerolog.Logger) repository.AuthenticityRepository
- func NewBloockAvailabilityRepository(ctx context.Context, logger zerolog.Logger) repository.AvailabilityRepository
- func NewBloockEncryptionRepository(ctx context.Context, logger zerolog.Logger) repository.EncryptionRepository
- func NewBloockIntegrityRepository(ctx context.Context, logger zerolog.Logger) repository.IntegrityRepository
- func NewBloockKeyRepository(ctx context.Context, logger zerolog.Logger) repository.KeyRepository
- func NewBloockMetadataRepository(ctx context.Context, logger zerolog.Logger) repository.MetadataRepository
- func NewHttpNotificationRepository(ctx context.Context, logger zerolog.Logger) repository.NotificationRepository
- type BloockAuthenticityRepository
- func (b BloockAuthenticityRepository) SignWithLocalCertificate(ctx context.Context, data []byte, localCertificate key.LocalCertificate) (string, *record.Record, error)
- func (b BloockAuthenticityRepository) SignWithLocalKey(ctx context.Context, data []byte, localKey key.LocalKey) (string, *record.Record, error)
- func (b BloockAuthenticityRepository) SignWithManagedCertificate(ctx context.Context, data []byte, managedCertificate key.ManagedCertificate) (string, *record.Record, error)
- func (b BloockAuthenticityRepository) SignWithManagedKey(ctx context.Context, data []byte, managedKey key.ManagedKey) (string, *record.Record, error)
- type BloockAvailabilityRepository
- func (b BloockAvailabilityRepository) FindFile(ctx context.Context, id string) ([]byte, error)
- func (b BloockAvailabilityRepository) RetrieveTmp(ctx context.Context, filename string) ([]byte, error)
- func (b BloockAvailabilityRepository) UploadHosted(ctx context.Context, file *domain.File) (string, error)
- func (b BloockAvailabilityRepository) UploadIpfs(ctx context.Context, file *domain.File) (string, error)
- func (b BloockAvailabilityRepository) UploadLocal(ctx context.Context, file *domain.File) (string, error)
- func (b BloockAvailabilityRepository) UploadTmp(ctx context.Context, file *domain.File) (string, error)
- type BloockEncryptionRepository
- func (b BloockEncryptionRepository) EncryptWithLocalKey(ctx context.Context, data []byte, localKey key.LocalKey) (*record.Record, error)
- func (b BloockEncryptionRepository) EncryptWithManagedKey(ctx context.Context, data []byte, managedKey key.ManagedKey) (*record.Record, error)
- func (b BloockEncryptionRepository) LoadLocalCertificate(ctx context.Context, pkcs12 []byte, pkcs12Password string) (*key.LocalCertificate, error)
- func (b BloockEncryptionRepository) LoadLocalKey(ctx context.Context, kty key.KeyType, publicKey string, privateKey *string) (*key.LocalKey, error)
- func (b BloockEncryptionRepository) LoadManagedCertificate(ctx context.Context, kid string) (*key.ManagedCertificate, error)
- func (b BloockEncryptionRepository) LoadManagedKey(ctx context.Context, kid string) (*key.ManagedKey, error)
- type BloockIntegrityRepository
- type BloockKeyRepository
- type BloockMetadataRepository
- func (s BloockMetadataRepository) ExistCertificationByHash(ctx context.Context, hash string) (bool, error)
- func (s BloockMetadataRepository) GetCertificationsByAnchorID(ctx context.Context, anchorID int) ([]domain.Certification, error)
- func (f BloockMetadataRepository) GetFileHash(ctx context.Context, file []byte) (string, error)
- func (f BloockMetadataRepository) GetRecord(ctx context.Context, file []byte) (*record.Record, error)
- func (f BloockMetadataRepository) GetRecordDetails(ctx context.Context, file []byte) (*record.RecordDetails, error)
- func (s BloockMetadataRepository) SaveCertification(ctx context.Context, certification domain.Certification) error
- func (c BloockMetadataRepository) UpdateCertification(ctx context.Context, certification domain.Certification) error
- func (s BloockMetadataRepository) UpdateCertificationDataID(ctx context.Context, cert domain.Certification) error
- type HttpNotificationRepository
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotification = errors.New("notification couldn't send")
Functions ¶
func NewBloockAuthenticityRepository ¶
func NewBloockAuthenticityRepository(ctx context.Context, logger zerolog.Logger) repository.AuthenticityRepository
func NewBloockAvailabilityRepository ¶
func NewBloockAvailabilityRepository(ctx context.Context, logger zerolog.Logger) repository.AvailabilityRepository
func NewBloockEncryptionRepository ¶
func NewBloockEncryptionRepository(ctx context.Context, logger zerolog.Logger) repository.EncryptionRepository
func NewBloockIntegrityRepository ¶
func NewBloockIntegrityRepository(ctx context.Context, logger zerolog.Logger) repository.IntegrityRepository
func NewBloockKeyRepository ¶
func NewBloockKeyRepository(ctx context.Context, logger zerolog.Logger) repository.KeyRepository
func NewBloockMetadataRepository ¶
func NewBloockMetadataRepository(ctx context.Context, logger zerolog.Logger) repository.MetadataRepository
func NewHttpNotificationRepository ¶
func NewHttpNotificationRepository(ctx context.Context, logger zerolog.Logger) repository.NotificationRepository
Types ¶
type BloockAuthenticityRepository ¶
type BloockAuthenticityRepository struct {
// contains filtered or unexported fields
}
func (BloockAuthenticityRepository) SignWithLocalCertificate ¶
func (b BloockAuthenticityRepository) SignWithLocalCertificate(ctx context.Context, data []byte, localCertificate key.LocalCertificate) (string, *record.Record, error)
func (BloockAuthenticityRepository) SignWithLocalKey ¶
func (BloockAuthenticityRepository) SignWithManagedCertificate ¶
func (b BloockAuthenticityRepository) SignWithManagedCertificate(ctx context.Context, data []byte, managedCertificate key.ManagedCertificate) (string, *record.Record, error)
func (BloockAuthenticityRepository) SignWithManagedKey ¶
func (b BloockAuthenticityRepository) SignWithManagedKey(ctx context.Context, data []byte, managedKey key.ManagedKey) (string, *record.Record, error)
type BloockAvailabilityRepository ¶
type BloockAvailabilityRepository struct {
// contains filtered or unexported fields
}
func (BloockAvailabilityRepository) RetrieveTmp ¶
func (BloockAvailabilityRepository) UploadHosted ¶
func (BloockAvailabilityRepository) UploadIpfs ¶
func (BloockAvailabilityRepository) UploadLocal ¶
type BloockEncryptionRepository ¶
type BloockEncryptionRepository struct {
// contains filtered or unexported fields
}
func (BloockEncryptionRepository) EncryptWithLocalKey ¶
func (BloockEncryptionRepository) EncryptWithManagedKey ¶
func (b BloockEncryptionRepository) EncryptWithManagedKey(ctx context.Context, data []byte, managedKey key.ManagedKey) (*record.Record, error)
func (BloockEncryptionRepository) LoadLocalCertificate ¶
func (b BloockEncryptionRepository) LoadLocalCertificate(ctx context.Context, pkcs12 []byte, pkcs12Password string) (*key.LocalCertificate, error)
func (BloockEncryptionRepository) LoadLocalKey ¶
func (BloockEncryptionRepository) LoadManagedCertificate ¶
func (b BloockEncryptionRepository) LoadManagedCertificate(ctx context.Context, kid string) (*key.ManagedCertificate, error)
func (BloockEncryptionRepository) LoadManagedKey ¶
func (b BloockEncryptionRepository) LoadManagedKey(ctx context.Context, kid string) (*key.ManagedKey, error)
type BloockIntegrityRepository ¶
type BloockIntegrityRepository struct {
// contains filtered or unexported fields
}
func (BloockIntegrityRepository) Certify ¶
func (b BloockIntegrityRepository) Certify(ctx context.Context, file []byte) (domain.Certification, error)
type BloockKeyRepository ¶
type BloockKeyRepository struct {
// contains filtered or unexported fields
}
type BloockMetadataRepository ¶
type BloockMetadataRepository struct {
// contains filtered or unexported fields
}
func (BloockMetadataRepository) ExistCertificationByHash ¶
func (BloockMetadataRepository) GetCertificationsByAnchorID ¶
func (s BloockMetadataRepository) GetCertificationsByAnchorID(ctx context.Context, anchorID int) ([]domain.Certification, error)
func (BloockMetadataRepository) GetFileHash ¶
func (BloockMetadataRepository) GetRecordDetails ¶
func (f BloockMetadataRepository) GetRecordDetails(ctx context.Context, file []byte) (*record.RecordDetails, error)
func (BloockMetadataRepository) SaveCertification ¶
func (s BloockMetadataRepository) SaveCertification(ctx context.Context, certification domain.Certification) error
func (BloockMetadataRepository) UpdateCertification ¶
func (c BloockMetadataRepository) UpdateCertification(ctx context.Context, certification domain.Certification) error
func (BloockMetadataRepository) UpdateCertificationDataID ¶
func (s BloockMetadataRepository) UpdateCertificationDataID(ctx context.Context, cert domain.Certification) error
type HttpNotificationRepository ¶
type HttpNotificationRepository struct {
// contains filtered or unexported fields
}
func (HttpNotificationRepository) NotifyCertification ¶
func (h HttpNotificationRepository) NotifyCertification(hash string, file []byte) error
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
sql
|
|
connection/mocks
Package mock_connection is a generated GoMock package.
|
Package mock_connection is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.