awsclient

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 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