s3

package
v0.0.0-...-a14176f Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3

type S3 struct {
	// contains filtered or unexported fields
}

func NewS3

func NewS3(cfg config.AWS) (*S3, error)

func (*S3) Delete

func (s *S3) Delete(key string) error

Delete deletes a single object from the bucket

func (*S3) DeleteMulti

func (s *S3) DeleteMulti(keys []string) error

DeleteMulti deletes multiple objects from the bucket. Large numbers of keys are batched into requests of a 1000 keys

func (*S3) List

func (s *S3) List(ext string) ([]string, error)

List returns s3 object keys with a given extension returns all files if the extension is empty string

Jump to

Keyboard shortcuts

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