s3undelete

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package s3undelete provides a single function for undeleting files in S3

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Undelete

func Undelete(bucket string, maxkeys int64, maxage time.Duration) error

Undelete looks for delete markers in a S3 bucket that are no older than maxage. Paged calls to ListObjectVersions are made requesting maxkeys per page. Matching delete markers are deleted which causes the most recent version of the corresponding key to be "undeleted". This has no effect on a bucket without versioning and returns error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL