Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StoreUploader ¶
type StoreUploader struct {
// contains filtered or unexported fields
}
StoreUploader is the configuration for the StoreUploader
func New ¶
func New(endpoint string, secure bool, accessKeyID, secretAccessKey string, logger *zap.SugaredLogger) (*StoreUploader, error)
New returns a new instance of the StoreUploader
func (*StoreUploader) DeleteAll ¶
func (u *StoreUploader) DeleteAll(bucket, prefix string) error
DeleteAll deletes all revisions of all files matching the given prefix
func (*StoreUploader) DeleteOldBackups ¶
func (u *StoreUploader) DeleteOldBackups(bucket, prefix string, revisionsToKeep int) error
DeleteOldBackups deletes revisions of all files of the given prefix which are older than max-revisions
Click to show internal directories.
Click to hide internal directories.