Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMatchingPathsFromBucket ¶ added in v1.2.0
func GetMatchingPathsFromBucket(client s3resource.S3Client, bucketName string, regex string) ([]string, error)
GetMatchingPathsFromBucket gets all the paths in the S3 bucket `bucketName` which match all the sections of `regex`
`regex` is a forward-slash (`/`) delimited list of regular expressions that must match each corresponding sub-directories and file name for the path to be retained.
The function walks the file tree stored in the S3 bucket `bucketName` and collects the full paths that matches `regex` along the way. It takes care of following only the branches (prefix in S3 terms) that matches with the corresponding section of `regex`.
Types ¶
type Extraction ¶
type Extractions ¶
type Extractions []Extraction
func GetBucketFileVersions ¶
func GetBucketFileVersions(client s3resource.S3Client, source s3resource.Source) Extractions
func (Extractions) Len ¶
func (e Extractions) Len() int
func (Extractions) Swap ¶
func (e Extractions) Swap(i int, j int)
Click to show internal directories.
Click to hide internal directories.