Documentation ¶
Index ¶
- type StoreUploader
- func (u *StoreUploader) DeleteAll(ctx context.Context, bucket, prefix string) error
- func (u *StoreUploader) DeleteOldBackups(ctx context.Context, bucket, prefix string, revisionsToKeep int) error
- func (u *StoreUploader) Store(ctx context.Context, file, bucket, prefix string, createBucket bool) error
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, accessKeyID, secretAccessKey string, logger *zap.SugaredLogger, rootCAs *x509.CertPool) (*StoreUploader, error)
New returns a new instance of the StoreUploader.
func (*StoreUploader) DeleteAll ¶
func (u *StoreUploader) DeleteAll(ctx context.Context, bucket, prefix string) error
DeleteAll deletes all revisions of all files matching the given prefix.
func (*StoreUploader) DeleteOldBackups ¶
func (u *StoreUploader) DeleteOldBackups(ctx context.Context, 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.