aws

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsS3

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

func New

func New(cfg *config.FSCfg) *AwsS3

func (*AwsS3) DeleteFile

func (e *AwsS3) DeleteFile(key string) error

@object: *AwsS3 @function: DeleteFile @description: Delete file from Aws S3 using aws-sdk-go. See https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/s3-example-basic-bucket-operations.html#s3-examples-bucket-ops-delete-bucket-item @param: file *multipart.FileHeader @return: string, string, error

func (*AwsS3) UploadFile

func (e *AwsS3) UploadFile(file *multipart.FileHeader) (filePath string, fileKey string, err error)

@object: *AwsS3 @function: UploadFile @description: Upload file to Aws S3 using aws-sdk-go. See https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/s3-example-basic-bucket-operations.html#s3-examples-bucket-ops-upload-file-to-bucket @param: file *multipart.FileHeader @return: string, string, error

Jump to

Keyboard shortcuts

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