rotation

package
v0.0.0-...-b180f38 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupRotationManager

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

func NewBackupRotationManager

func NewBackupRotationManager(
	backupMgr *backup.QuantumBackupManager,
	metrics *metrics.QuantumStorageMetrics,
	tracer tracing.Tracer,
) *BackupRotationManager

type PolicyStatus

type PolicyStatus string
const (
	PolicyStatusActive    PolicyStatus = "active"
	PolicyStatusInactive  PolicyStatus = "inactive"
	PolicyStatusExecuting PolicyStatus = "executing"
)

type RotationPolicy

type RotationPolicy struct {
	ID              string
	Name            string
	RetentionPeriod time.Duration
	MaxBackups      int
	BackupInterval  time.Duration
	LastRotation    time.Time
	Status          PolicyStatus
	Metadata        map[string]interface{}
}

Jump to

Keyboard shortcuts

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