s3client

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func S3Upload added in v0.9.0

func S3Upload(sFile, dFile, endpoint, accessKeyID, secretAccessKey, bucketName string) (fileSize int64, retErr error)

S3Upload is a function that uploads a file from source to destination to an S3 bucket. It requires the source and destination file path, endpoint, accessKeyID, secretAccessKey, and bucketName as parameters. It determines content type based on source file extension and uses MinIO client for handling S3 operations. In case of a successful upload, it returns the uploaded file size and nil as error. In case of an error, it returns zero as file size and the error that occurred.

Types

This section is empty.

Jump to

Keyboard shortcuts

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