Documentation ¶
Index ¶
- func Backup(source io.Reader, s3Conf config.S3ClientConfig, cypherKey []byte) error
- func Prune(s3Conf config.S3ClientConfig, expiry time.Duration, minCount int64) error
- func PruneBackupEntry(cli *minio.Client, bucket string, namingConv NamingConvention, ...) error
- func Restore(s3Conf config.S3ClientConfig, timestamp string) (io.Reader, []byte, error)
- func RotateKey(s3Conf config.S3ClientConfig, conv ConvertKeyFn) error
- type BackupEntries
- type BackupEntry
- type ConvertKeyFn
- type NamingConvention
- type ObjectInfo
- type ObjectType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PruneBackupEntry ¶
func PruneBackupEntry(cli *minio.Client, bucket string, namingConv NamingConvention, entry BackupEntry) error
func RotateKey ¶
func RotateKey(s3Conf config.S3ClientConfig, conv ConvertKeyFn) error
Types ¶
type BackupEntries ¶
type BackupEntries struct { Entries map[time.Time]BackupEntry LastEntry *BackupEntry }
func ListBackups ¶
func ListBackups(cli *minio.Client, bucket string, nameConv NamingConvention) (BackupEntries, error)
func (*BackupEntries) GetDeletable ¶
func (entries *BackupEntries) GetDeletable(cutoff time.Time, minCount int64) []BackupEntry
type ConvertKeyFn ¶
type NamingConvention ¶
type NamingConvention struct { Prefix string // contains filtered or unexported fields }
func NewNamingConvention ¶
func NewNamingConvention(prefix string) NamingConvention
func (*NamingConvention) GetObjectInfo ¶
func (conv *NamingConvention) GetObjectInfo(objName string) (ObjectInfo, error)
func (*NamingConvention) GetObjectNames ¶
func (conv *NamingConvention) GetObjectNames(timestamp time.Time) (string, string)
type ObjectInfo ¶
type ObjectInfo struct { Timestamp time.Time Type ObjectType }
Click to show internal directories.
Click to hide internal directories.