Documentation ¶
Index ¶
- type QuantumRecovery
- type QuantumRecoveryManager
- func (qr *QuantumRecoveryManager) ExecuteRecovery(ctx context.Context, recoveryID string) error
- func (qr *QuantumRecoveryManager) GetRecoveryStatus(ctx context.Context, recoveryID string) (*QuantumRecovery, error)
- func (qr *QuantumRecoveryManager) InitiateRecovery(ctx context.Context, backupID string, metadata map[string]interface{}) (*QuantumRecovery, error)
- type RecoveryLog
- type RecoveryManager
- func (rm *RecoveryManager) ApproveRecovery(ctx context.Context, recoveryID string, approverID string) error
- func (rm *RecoveryManager) ExecuteRecovery(ctx context.Context, recoveryID string) error
- func (rm *RecoveryManager) InitiateRecovery(ctx context.Context, keyID string, recoveryType string, requiredVotes int) (*RecoveryLog, error)
- type RecoveryStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QuantumRecovery ¶
type QuantumRecoveryManager ¶
type QuantumRecoveryManager struct {
// contains filtered or unexported fields
}
func NewQuantumRecoveryManager ¶
func NewQuantumRecoveryManager( backupMgr *backup.QuantumBackupManager, keyExchange *quantum.KeyExchange, metrics *metrics.QuantumStorageMetrics, tracer tracing.Tracer, ) *QuantumRecoveryManager
func (*QuantumRecoveryManager) ExecuteRecovery ¶
func (qr *QuantumRecoveryManager) ExecuteRecovery(ctx context.Context, recoveryID string) error
func (*QuantumRecoveryManager) GetRecoveryStatus ¶
func (qr *QuantumRecoveryManager) GetRecoveryStatus(ctx context.Context, recoveryID string) (*QuantumRecovery, error)
func (*QuantumRecoveryManager) InitiateRecovery ¶
func (qr *QuantumRecoveryManager) InitiateRecovery(ctx context.Context, backupID string, metadata map[string]interface{}) (*QuantumRecovery, error)
type RecoveryLog ¶
type RecoveryManager ¶
type RecoveryManager struct {
// contains filtered or unexported fields
}
func NewRecoveryManager ¶
func NewRecoveryManager( keyStore *keystore.HSMKeyStore, backupMgr *backup.KeyBackupManager, metrics *metrics.QuantumStorageMetrics, tracer tracing.Tracer, ) *RecoveryManager
func (*RecoveryManager) ApproveRecovery ¶
func (*RecoveryManager) ExecuteRecovery ¶
func (rm *RecoveryManager) ExecuteRecovery(ctx context.Context, recoveryID string) error
func (*RecoveryManager) InitiateRecovery ¶
func (rm *RecoveryManager) InitiateRecovery(ctx context.Context, keyID string, recoveryType string, requiredVotes int) (*RecoveryLog, error)
type RecoveryStatus ¶
type RecoveryStatus string
const ( RecoveryStatusPending RecoveryStatus = "pending" RecoveryStatusApproved RecoveryStatus = "approved" RecoveryStatusComplete RecoveryStatus = "complete" RecoveryStatusFailed RecoveryStatus = "failed" )
const ( RecoveryStatusInitiated RecoveryStatus = "initiated" RecoveryStatusVerifying RecoveryStatus = "verifying" RecoveryStatusRestoring RecoveryStatus = "restoring" RecoveryStatusComplete RecoveryStatus = "complete" RecoveryStatusFailed RecoveryStatus = "failed" )
Click to show internal directories.
Click to hide internal directories.