Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupMetadata ¶
type BackupStatus ¶
type BackupStatus string
const ( StatusPending BackupStatus = "pending" StatusComplete BackupStatus = "complete" StatusVerified BackupStatus = "verified" StatusCorrupted BackupStatus = "corrupted" )
type KeyBackupManager ¶
type KeyBackupManager struct {
// contains filtered or unexported fields
}
func NewKeyBackupManager ¶
func NewKeyBackupManager( keyStore *keystore.HSMKeyStore, metrics *metrics.QuantumStorageMetrics, tracer tracing.Tracer, ) (*KeyBackupManager, error)
func (*KeyBackupManager) RestoreKey ¶
type QuantumBackup ¶
type QuantumBackupManager ¶
type QuantumBackupManager struct {
// contains filtered or unexported fields
}
func NewQuantumBackupManager ¶
func NewQuantumBackupManager( keyExchange *quantum.KeyExchange, metrics *metrics.QuantumStorageMetrics, tracer tracing.Tracer, ) *QuantumBackupManager
func (*QuantumBackupManager) CreateBackup ¶
func (qb *QuantumBackupManager) CreateBackup(ctx context.Context, keyID string, data []byte, metadata map[string]interface{}) (*QuantumBackup, error)
func (*QuantumBackupManager) VerifyBackup ¶
func (qb *QuantumBackupManager) VerifyBackup(ctx context.Context, backupID string) error
Click to show internal directories.
Click to hide internal directories.