Documentation ¶
Index ¶
- func NewSession(m *dbschema.NgingCloudStorage) (*session.Session, error)
- type AWSClient
- func (s *AWSClient) CompleteMultipartUpload(ctx echo.Context, objectName string, uploadId string) error
- func (s *AWSClient) GetBucketCors() ([]*s3.CORSRule, error)
- func (s *AWSClient) ListPage(ctx echo.Context, objectPrefix string) (dirs []os.FileInfo, err error)
- func (s *AWSClient) PutBucketCors(ctx echo.Context) error
- func (s *AWSClient) SetBucketName(bucketName string) *AWSClient
- func (s *AWSClient) Upload(reader io.Reader, objectName string) (*s3manager.UploadOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSession ¶
func NewSession(m *dbschema.NgingCloudStorage) (*session.Session, error)
Types ¶
type AWSClient ¶ added in v5.2.6
func Connect ¶
func Connect(m *dbschema.NgingCloudStorage, bucketName string) (client *AWSClient, err error)
func (*AWSClient) CompleteMultipartUpload ¶ added in v5.2.6
func (*AWSClient) GetBucketCors ¶ added in v5.2.6
func (*AWSClient) PutBucketCors ¶ added in v5.2.6
func (*AWSClient) SetBucketName ¶ added in v5.2.6
Click to show internal directories.
Click to hide internal directories.