snapshot

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SnapshotContext

type SnapshotContext struct {
	TempArchiveDir string
	BackupFile     string
	IncludeDB      bool
	IncludeS3      bool
	Labels         map[string]string
}

type SnapshotService

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

SnapshotService handles backup operations

func NewSnapshotService

func NewSnapshotService(cfg *config.SnapshotConfig) *SnapshotService

NewSnapshotService creates a new snapshot service

func (*SnapshotService) CreateArchive

func (s *SnapshotService) CreateArchive(ctx context.Context, cfg *config.SnapshotConfig, snapshotCtx *SnapshotContext) error

func (*SnapshotService) CreateBackup

func (s *SnapshotService) CreateBackup(
	ctx context.Context, cfg *config.SnapshotConfig, snapshotCtx *SnapshotContext,
) error

func (*SnapshotService) ExtractArchive

func (s *SnapshotService) ExtractArchive(ctx context.Context, cfg *config.SnapshotConfig, snapshotCtx *SnapshotContext) error

func (*SnapshotService) RestoreBackup

func (s *SnapshotService) RestoreBackup(
	ctx context.Context, cfg *config.SnapshotConfig, snapshotCtx *SnapshotContext,
) error

type TarEntry

type TarEntry struct {
	Name       string
	Size       int64
	ReadCloser io.ReadCloser
}

Jump to

Keyboard shortcuts

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