Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewS3BackupHandler ¶
func NewS3BackupHandler(conf *S3Config, store es.EventStore, retention int) backup.BackupHandler
Types ¶
type S3BackupHandler ¶
type S3BackupHandler struct {
// contains filtered or unexported fields
}
func (*S3BackupHandler) RunBackup ¶
func (b *S3BackupHandler) RunBackup(ctx context.Context) (*backup.BackupResult, error)
func (*S3BackupHandler) RunPurge ¶
func (b *S3BackupHandler) RunPurge(ctx context.Context) (*backup.PurgeResult, error)
func (*S3BackupHandler) RunRestore ¶
func (b *S3BackupHandler) RunRestore(ctx context.Context, identifier string) (*backup.RestoreResult, error)
type S3Config ¶
type S3Config struct { Endpoint string `yaml:"endpoint"` Bucket string `yaml:"bucket"` Region string `yaml:"region"` DisableSSL bool `yaml:"disableSSL"` }
func NewS3ConfigFromFile ¶
NewS3ConfigFromFile creates a new S3 config from a given yaml file
Click to show internal directories.
Click to hide internal directories.