s3

package module
v0.0.0-...-d52dc0c Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

README

goS3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3

type S3 struct {
	S3Client *s3.Client
	Cfg      conf.MinioConfig
}

func New

func New(minioConf conf.MinioConfig) (*S3, error)

configS3 creates the S3 client

func (*S3) DownloadS3File

func (s3conn *S3) DownloadS3File(filepath string) ([]byte, error)

Download file from S3 Bucket

func (*S3) UploadFile

func (s3conn *S3) UploadFile(file io.Reader, filepath string) error

Upload log file to Bucket

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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