s3

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBucketNotFound = errors.New("No such Bucket")

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	Bucket *s3.Bucket
}

type S3Client

type S3Client struct {
	S3Client *s3.S3
}

func NewS3Client

func NewS3Client(session *session.Session) *S3Client

func (*S3Client) LoadAllBuckets

func (c *S3Client) LoadAllBuckets() (buckets *s3.ListBucketsOutput, err error)

func (*S3Client) LoadAllObjectsFromBucket

func (c *S3Client) LoadAllObjectsFromBucket(bucket, prefix string) (objects *s3.ListObjectsV2Output, err error)

func (*S3Client) LoadBucketByName

func (c *S3Client) LoadBucketByName(name string) (bucket *s3.Bucket, err error)

type V2Output

type V2Output struct {
	V2Output *s3.ListObjectsV2Output
}

func (*V2Output) CalculateBucketSize

func (v *V2Output) CalculateBucketSize() (size int64)

func (*V2Output) GetBucketOutput

func (v *V2Output) GetBucketOutput(size int64, status int) (output string)

func (*V2Output) GetObjectOutput

func (v *V2Output) GetObjectOutput(size int64, status int, path string) (output string)

Jump to

Keyboard shortcuts

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