Documentation
¶
Index ¶
- type SnapshotContext
- type SnapshotService
- func (s *SnapshotService) CreateArchive(ctx context.Context, cfg *config.SnapshotConfig, snapshotCtx *SnapshotContext) error
- func (s *SnapshotService) CreateBackup(ctx context.Context, cfg *config.SnapshotConfig, snapshotCtx *SnapshotContext) error
- func (s *SnapshotService) ExtractArchive(ctx context.Context, cfg *config.SnapshotConfig, snapshotCtx *SnapshotContext) error
- func (s *SnapshotService) RestoreBackup(ctx context.Context, cfg *config.SnapshotConfig, snapshotCtx *SnapshotContext) error
- type TarEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SnapshotContext ¶
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
Click to show internal directories.
Click to hide internal directories.