Documentation ¶
Index ¶
- Constants
- type S3
- func (svc *S3) CreateBucket(bucketName, acl string) error
- func (svc *S3) DeleteBucket(bucketName string) error
- func (svc *S3) GetObject(bucketName, key, contentType string) (string, error)
- func (svc *S3) GetObjectPresignedUrl(bucketName, key string, expireTime int64) (string, error)
- func (svc *S3) HeadObject(bucketName, key string) (bool, error)
- func (svc *S3) HeadObjectPresignedUrl(bucketName, key string, expireTime int64) (*url.URL, bool)
- func (svc *S3) ListBucket() (*s3.ListBucketsOutput, error)
- func (svc *S3) PutObject(bucketName, key, fileContent, contentType, publicRead string, ...) error
- func (svc *S3) PutObjectPresignedUrl(bucketName, key, contentType, publicRead string, size, expireTime int64) (string, error)
- type S3Conf
Constants ¶
View Source
const (
// S3 config info filename
S3_CONF_FILENNAME = "s3.toml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3 ¶
S3 is a client for Amazon S3.
func (*S3) CreateBucket ¶
Creates a new bucket.
func (*S3) DeleteBucket ¶
func (*S3) GetObjectPresignedUrl ¶
Gets object returning the object presigned url.
func (*S3) HeadObject ¶
The HEAD operation without returning the object itself.
func (*S3) HeadObjectPresignedUrl ¶
The HEAD operation returning the object presigned url.
func (*S3) ListBucket ¶
func (svc *S3) ListBucket() (*s3.ListBucketsOutput, error)
Click to show internal directories.
Click to hide internal directories.