Documentation
¶
Index ¶
- type LocalProvider
- func (p *LocalProvider) CreateBackup(ctx context.Context, name string, data io.Reader, opts *types.BackupOptions) (*types.BackupMetadata, error)
- func (p *LocalProvider) DeleteBackup(ctx context.Context, backupID string) error
- func (p *LocalProvider) GetBackup(ctx context.Context, backupID string) (*types.BackupMetadata, error)
- func (p *LocalProvider) HealthCheck(ctx context.Context) error
- func (p *LocalProvider) ListBackups(ctx context.Context) ([]*types.BackupMetadata, error)
- func (p *LocalProvider) RestoreBackup(ctx context.Context, backupID string, writer io.Writer, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalProvider ¶
type LocalProvider struct {
// contains filtered or unexported fields
}
LocalProvider implements backup operations using local file system
func NewLocalProvider ¶
func NewLocalProvider(basePath string) *LocalProvider
NewLocalProvider creates a new local file backup provider
func (*LocalProvider) CreateBackup ¶
func (p *LocalProvider) CreateBackup(ctx context.Context, name string, data io.Reader, opts *types.BackupOptions) (*types.BackupMetadata, error)
CreateBackup creates a backup in local file system
func (*LocalProvider) DeleteBackup ¶
func (p *LocalProvider) DeleteBackup(ctx context.Context, backupID string) error
DeleteBackup removes a backup from local file system
func (*LocalProvider) GetBackup ¶
func (p *LocalProvider) GetBackup(ctx context.Context, backupID string) (*types.BackupMetadata, error)
GetBackup retrieves backup metadata
func (*LocalProvider) HealthCheck ¶
func (p *LocalProvider) HealthCheck(ctx context.Context) error
HealthCheck checks if local file system is accessible
func (*LocalProvider) ListBackups ¶
func (p *LocalProvider) ListBackups(ctx context.Context) ([]*types.BackupMetadata, error)
ListBackups lists all available backups
func (*LocalProvider) RestoreBackup ¶
func (p *LocalProvider) RestoreBackup(ctx context.Context, backupID string, writer io.Writer, opts *types.RestoreOptions) error
RestoreBackup restores a backup from local file system
Click to show internal directories.
Click to hide internal directories.