local

package module
v0.0.0-...-9e38f01 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: MIT Imports: 9 Imported by: 1

Documentation

Index

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

Jump to

Keyboard shortcuts

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