Documentation ¶
Index ¶
- type AmazonS3
- func (amazonS3 *AmazonS3) CreateObjectFromKey(ormService *beeorm.Engine, bucket, key string) Object
- func (amazonS3 *AmazonS3) DeleteObject(bucket string, objects ...*entity.FileObject) bool
- func (amazonS3 *AmazonS3) GetBucketName(bucket string) string
- func (amazonS3 *AmazonS3) GetClient() interface{}
- func (amazonS3 *AmazonS3) GetObjectCachedURL(bucket string, object *entity.FileObject) string
- func (amazonS3 *AmazonS3) GetObjectSignedURL(bucket string, object *entity.FileObject, expiresIn time.Duration) string
- func (amazonS3 *AmazonS3) ReadFile(localFile string) ([]byte, string)
- func (amazonS3 *AmazonS3) UploadImageFromBase64(ormService *beeorm.Engine, bucket, base64image, extension string) Object
- func (amazonS3 *AmazonS3) UploadImageFromFile(ormService *beeorm.Engine, bucket, localFile string) Object
- func (amazonS3 *AmazonS3) UploadObjectFromBase64(ormService *beeorm.Engine, bucket, base64content, extension string) Object
- func (amazonS3 *AmazonS3) UploadObjectFromByte(ormService *beeorm.Engine, bucket string, byteData []byte, extension string) Object
- func (amazonS3 *AmazonS3) UploadObjectFromFile(ormService *beeorm.Engine, bucket, localFile string) Object
- type CachedObjectURLTemplate
- 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) CreateObjectFromKey ¶ added in v0.6.8
func (*AmazonS3) DeleteObject ¶ added in v0.4.8
func (amazonS3 *AmazonS3) DeleteObject(bucket string, objects ...*entity.FileObject) bool
func (*AmazonS3) GetBucketName ¶ added in v0.6.8
func (*AmazonS3) GetObjectCachedURL ¶
func (amazonS3 *AmazonS3) GetObjectCachedURL(bucket string, object *entity.FileObject) string
func (*AmazonS3) GetObjectSignedURL ¶
func (*AmazonS3) UploadImageFromBase64 ¶
func (*AmazonS3) UploadImageFromFile ¶
func (*AmazonS3) UploadObjectFromBase64 ¶
func (*AmazonS3) UploadObjectFromByte ¶ added in v0.8.99
type CachedObjectURLTemplate ¶ added in v0.8.35
type Client ¶ added in v0.4.6
type Client interface { GetClient() interface{} GetBucketName(bucket string) string CreateObjectFromKey(ormService *beeorm.Engine, bucket, key string) Object GetObjectCachedURL(bucket string, object *entity.FileObject) string GetObjectSignedURL(bucket string, object *entity.FileObject, expires time.Duration) string UploadObjectFromFile(ormService *beeorm.Engine, bucket, localFile string) Object UploadObjectFromBase64(ormService *beeorm.Engine, bucket, content, extension string) Object UploadObjectFromByte(ormService *beeorm.Engine, bucket string, data []byte, extension string) Object UploadImageFromFile(ormService *beeorm.Engine, bucket, localFile string) Object UploadImageFromBase64(ormService *beeorm.Engine, bucket, image, extension string) Object DeleteObject(bucket string, objects ...*entity.FileObject) bool }
Click to show internal directories.
Click to hide internal directories.