s3

package
v1.5.32 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager contains s3 client functionalities

func NewManager

func NewManager(bucket string, region string) *Manager

NewManager initiates a new s3 manager

func (*Manager) Delete

func (m *Manager) Delete(key string) error

Delete delete s3 object by key

func (*Manager) Get

func (m *Manager) Get(key string) ([]byte, error)

Get get a single s3 object by key

func (*Manager) GetFilesFromSubFolder added in v1.5.21

func (m *Manager) GetFilesFromSubFolder(folder string) ([]string, error)

GetFilesFromSubFolder returns files from a subfolder in the bucket

func (*Manager) GetKeys

func (m *Manager) GetKeys() ([]string, error)

GetKeys get all s3 bucket objects keys

func (*Manager) Save

func (m *Manager) Save(payload []byte) error

Save data as a object in s3

func (*Manager) SaveWithKey added in v1.2.3

func (m *Manager) SaveWithKey(payload []byte, objectKey string) error

SaveWithKey save data with specific key/path as an object in s3

func (*Manager) UploadMultipart added in v1.5.30

func (m *Manager) UploadMultipart(fileName string, path string) error

Jump to

Keyboard shortcuts

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