awsclient

package
v5.3.3-pre12 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type AWSClient added in v5.2.6

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 added in v5.2.6

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

func (*AWSClient) GetBucketCors added in v5.2.6

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

func (*AWSClient) ListPage added in v5.2.6

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

func (*AWSClient) PutBucketCors added in v5.2.6

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

func (*AWSClient) SetBucketName added in v5.2.6

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

func (*AWSClient) Upload added in v5.2.6

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