awsclient

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type AWSClient

type AWSClient struct {
	*s3.S3
	// contains filtered or unexported fields
}

func Connect

func Connect(m *dbschema.NgingCloudStorage, bucketName string) (client *AWSClient, err error)

func (*AWSClient) CompleteMultipartUpload

func (s *AWSClient) CompleteMultipartUpload(ctx echo.Context, objectName string, uploadId string) error

func (*AWSClient) GetBucketCors

func (s *AWSClient) GetBucketCors() ([]*s3.CORSRule, error)

func (*AWSClient) ListPage

func (s *AWSClient) ListPage(ctx echo.Context, objectPrefix string) (dirs []os.FileInfo, err error)

func (*AWSClient) PutBucketCors

func (s *AWSClient) PutBucketCors(ctx echo.Context) error

func (*AWSClient) SetBucketName

func (s *AWSClient) SetBucketName(bucketName string) *AWSClient

func (*AWSClient) Upload

func (s *AWSClient) Upload(reader io.Reader, objectName string) (*s3manager.UploadOutput, error)

Jump to

Keyboard shortcuts

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