s3list

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetS3Region

func GetS3Region(sess *session.Session, s3Path string) (string, error)

func ListPath

func ListPath(ctx context.Context, input *Input) (err error)

ListPath given an s3path (e.g., s3://mybucket/myprefix) list files and send to notifyChan

Types

type Input

type Input struct {
	Logger   *zap.SugaredLogger
	S3Client s3iface.S3API
	S3Path   string
	Limit    uint64
	Loop     bool
	Write    func(*events.S3Event) // called on each event
	Done     func()                // called when complete
	Stats    *Stats
}

type Stats

type Stats struct {
	NumFiles uint64
	NumBytes uint64
}

Jump to

Keyboard shortcuts

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