Documentation
¶
Index ¶
- type AwsClient
- func (c *AwsClient) NewS3Client() error
- func (c *AwsClient) UploadObjectToS3(fileBytes []byte, remotePath string) (ret *UploadToS3Response, err error)
- func (c *AwsClient) UploadObjectToS3WithRandomKey(fileBytes []byte) (ret *UploadToS3Response, err error)
- func (c *AwsClient) UploadSingleFileToS3WithRandomKey(filePath string) (ret *UploadToS3Response, err error)
- func (c *AwsClient) UploadSingleFileToS3WithSpecifyKey(filePath string, keyName string) (ret *UploadToS3Response, err error)
- type S3Client
- type UploadToS3Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsClient ¶
type AwsClient struct { AccessKeyId string `json:"access_key_id"` AccessKeySecret string `json:"access_key_secret"` Region string `json:"region"` S3 S3Client }
func (*AwsClient) NewS3Client ¶
func (*AwsClient) UploadObjectToS3 ¶
func (c *AwsClient) UploadObjectToS3(fileBytes []byte, remotePath string) (ret *UploadToS3Response, err error)
func (*AwsClient) UploadObjectToS3WithRandomKey ¶
func (c *AwsClient) UploadObjectToS3WithRandomKey(fileBytes []byte) (ret *UploadToS3Response, err error)
func (*AwsClient) UploadSingleFileToS3WithRandomKey ¶
func (c *AwsClient) UploadSingleFileToS3WithRandomKey(filePath string) (ret *UploadToS3Response, err error)
func (*AwsClient) UploadSingleFileToS3WithSpecifyKey ¶
func (c *AwsClient) UploadSingleFileToS3WithSpecifyKey(filePath string, keyName string) (ret *UploadToS3Response, err error)
Click to show internal directories.
Click to hide internal directories.