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 ¶
func Connect ¶
func Connect(m *dbschema.NgingCloudStorage, bucketName string) (client *AWSClient, err error)
func (*AWSClient) CompleteMultipartUpload ¶
func (*AWSClient) SetBucketName ¶
Click to show internal directories.
Click to hide internal directories.