Documentation ¶
Index ¶
- type AmazonS3
- func (amazonS3 *AmazonS3) DeleteObject(bucket string, objects ...*Object) bool
- func (amazonS3 *AmazonS3) GetObjectCachedURL(bucket string, object *Object) string
- func (amazonS3 *AmazonS3) GetObjectSignedURL(bucket string, object *Object, expiresIn time.Duration) string
- func (amazonS3 *AmazonS3) ReadFile(localFile string) ([]byte, string)
- func (amazonS3 *AmazonS3) UploadImageFromBase64(ormService *orm.Engine, bucket, base64image, extension string) Object
- func (amazonS3 *AmazonS3) UploadImageFromFile(ormService *orm.Engine, bucket, localFile string) Object
- func (amazonS3 *AmazonS3) UploadObjectFromBase64(ormService *orm.Engine, bucket, base64content, extension string) Object
- func (amazonS3 *AmazonS3) UploadObjectFromFile(ormService *orm.Engine, bucket, localFile string) Object
- type Client
- type Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmazonS3 ¶
type AmazonS3 struct {
// contains filtered or unexported fields
}
func NewAmazonS3 ¶
func (*AmazonS3) DeleteObject ¶ added in v0.4.8
func (*AmazonS3) GetObjectCachedURL ¶
func (*AmazonS3) GetObjectSignedURL ¶
func (*AmazonS3) UploadImageFromBase64 ¶
func (*AmazonS3) UploadImageFromFile ¶
func (*AmazonS3) UploadObjectFromBase64 ¶
type Client ¶ added in v0.4.6
type Client interface { GetObjectCachedURL(bucket string, object *Object) string GetObjectSignedURL(bucket string, object *Object, expires time.Duration) string UploadObjectFromFile(ormService *orm.Engine, bucket, localFile string) Object UploadObjectFromBase64(ormService *orm.Engine, bucket, content, extension string) Object UploadImageFromFile(ormService *orm.Engine, bucket, localFile string) Object UploadImageFromBase64(ormService *orm.Engine, bucket, image, extension string) Object DeleteObject(bucket string, objects ...*Object) bool }
Click to show internal directories.
Click to hide internal directories.