Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(store BackupStore) *jetup
Types ¶
type BackupPackage ¶
BackupPackage combines multiple messages into single package.
type BackupStore ¶
type BackupStore interface { // Creates a new backup. Careful creation can be delayed until first packages is committed. // A new backup should only create after commit a package to previously created backup. NewBackup(ctx context.Context) (BackupStoreEntry, error) }
BackupStore allows storage of multiple backups in backup target, e.g. filesystem, s3 or other.
type BackupStoreEntry ¶
type BackupStoreEntry interface { // Creates a new package, that can be committed afterwards to the backup. NewPackage(ctx context.Context) (BackupPackage, error) // Commit a package. Actually writes data to the backup target. CommitPackage(ctx context.Context, pkg BackupPackage) error }
Click to show internal directories.
Click to hide internal directories.