s3util

package
v0.0.0-...-37ad33d Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize()

Initialize Initializes a new s3 client

Types

type S3WrapperClient

type S3WrapperClient struct {
	*s3.S3
}

func Instance

func Instance() *S3WrapperClient

Instance Retrieves the instance of the client

func (*S3WrapperClient) DeleteFile

func (client *S3WrapperClient) DeleteFile(folder string, file string) error

DeleteFile Delete a file from s3

func (*S3WrapperClient) ListFiles

func (client *S3WrapperClient) ListFiles(folder string) ([]string, error)

ListFiles Lists files in a given bucket & folder

func (*S3WrapperClient) UploadFile

func (client *S3WrapperClient) UploadFile(folder string, fileName string, path string) error

UploadFile Uploads a file to s3.

Jump to

Keyboard shortcuts

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