Documentation
¶
Index ¶
- Constants
- type AmazonOSS
- func (ossStorage *AmazonOSS) CreateObjectFromKey(ormService *beeorm.Engine, bucket, key string) Object
- func (ossStorage *AmazonOSS) DeleteObject(bucket string, object *Object) error
- func (ossStorage *AmazonOSS) GetClient() interface{}
- func (ossStorage *AmazonOSS) GetObjectBase64Content(_ string, _ *Object) (string, error)
- func (ossStorage *AmazonOSS) GetObjectCDNURL(bucket string, object *Object) (string, error)
- func (ossStorage *AmazonOSS) GetObjectOSSURL(_ string, _ *Object) (string, error)
- func (ossStorage *AmazonOSS) GetObjectSignedURL(bucket string, object *Object, expires time.Time) (string, error)
- func (ossStorage *AmazonOSS) GetObjectURL(bucket string, object *Object) (string, error)
- func (ossStorage *AmazonOSS) UploadImageFromBase64(ormService *beeorm.Engine, bucket, image, extension string) (Object, error)
- func (ossStorage *AmazonOSS) UploadImageFromFile(ormService *beeorm.Engine, bucket, localFile string) (Object, error)
- func (ossStorage *AmazonOSS) UploadObjectFromBase64(ormService *beeorm.Engine, bucket, content, extension string) (Object, error)
- func (ossStorage *AmazonOSS) UploadObjectFromByte(ormService *beeorm.Engine, bucket string, objectContent []byte, ...) (Object, error)
- func (ossStorage *AmazonOSS) UploadObjectFromFile(ormService *beeorm.Engine, bucket, localFile string) (Object, error)
- type BucketConfig
- type Buckets
- type CachedObjectURLTemplate
- type Client
- type GoogleOSS
- func (ossStorage *GoogleOSS) DeleteObject(_ string, _ *Object) error
- func (ossStorage *GoogleOSS) GetObjectBase64Content(bucket string, object *Object) (string, error)
- func (ossStorage *GoogleOSS) GetObjectCDNURL(bucket string, object *Object) (string, error)
- func (ossStorage *GoogleOSS) GetObjectOSSURL(bucket string, object *Object) (string, error)
- func (ossStorage *GoogleOSS) GetObjectSignedURL(bucket string, object *Object, expires time.Time) (string, error)
- func (ossStorage *GoogleOSS) GetObjectURL(bucket string, object *Object) (string, error)
- func (ossStorage *GoogleOSS) UploadImageFromBase64(ormService *beeorm.Engine, bucket, base64image, extension string) (Object, error)
- func (ossStorage *GoogleOSS) UploadImageFromFile(ormService *beeorm.Engine, bucket, localFile string) (Object, error)
- func (ossStorage *GoogleOSS) UploadObjectFromBase64(ormService *beeorm.Engine, bucket, base64content, extension string) (Object, error)
- func (ossStorage *GoogleOSS) UploadObjectFromByte(ormService *beeorm.Engine, bucket string, objectContent []byte, ...) (Object, error)
- func (ossStorage *GoogleOSS) UploadObjectFromFile(ormService *beeorm.Engine, bucket, localFile string) (Object, error)
- type Object
Constants ¶
View Source
const ProviderAmazonOSS = 2
View Source
const ProviderGoogleOSS = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmazonOSS ¶ added in v0.9.24
type AmazonOSS struct {
// contains filtered or unexported fields
}
func NewAmazonOSS ¶ added in v0.9.24
func (*AmazonOSS) CreateObjectFromKey ¶ added in v0.9.24
func (*AmazonOSS) DeleteObject ¶ added in v0.9.24
func (*AmazonOSS) GetObjectBase64Content ¶ added in v0.9.24
func (*AmazonOSS) GetObjectCDNURL ¶ added in v0.9.24
func (*AmazonOSS) GetObjectOSSURL ¶ added in v0.9.24
func (*AmazonOSS) GetObjectSignedURL ¶ added in v0.9.24
func (*AmazonOSS) GetObjectURL ¶ added in v0.9.24
func (*AmazonOSS) UploadImageFromBase64 ¶ added in v0.9.24
func (*AmazonOSS) UploadImageFromFile ¶ added in v0.9.24
func (*AmazonOSS) UploadObjectFromBase64 ¶ added in v0.9.24
func (*AmazonOSS) UploadObjectFromByte ¶ added in v0.9.24
type BucketConfig ¶ added in v0.9.24
type Buckets ¶ added in v0.9.24
type Buckets struct { Mapping map[string]uint64 Configs map[string]map[string]*BucketConfig }
type CachedObjectURLTemplate ¶ added in v0.9.24
type Client ¶
type Client interface { GetObjectURL(bucket string, object *Object) (string, error) GetObjectOSSURL(bucket string, object *Object) (string, error) GetObjectCDNURL(bucket string, object *Object) (string, error) GetObjectSignedURL(bucket string, object *Object, expires time.Time) (string, error) GetObjectBase64Content(bucket string, object *Object) (string, error) UploadObjectFromFile(ormService *beeorm.Engine, bucket, localFile string) (Object, error) UploadObjectFromBase64(ormService *beeorm.Engine, bucket, content, extension string) (Object, error) UploadObjectFromByte(ormService *beeorm.Engine, bucket string, content []byte, extension string) (Object, error) UploadImageFromFile(ormService *beeorm.Engine, bucket, localFile string) (Object, error) UploadImageFromBase64(ormService *beeorm.Engine, bucket, image, extension string) (Object, error) DeleteObject(bucket string, object *Object) error }
type GoogleOSS ¶ added in v0.9.24
type GoogleOSS struct {
// contains filtered or unexported fields
}
func NewGoogleOSS ¶ added in v0.9.24
func (*GoogleOSS) DeleteObject ¶ added in v0.9.24
func (*GoogleOSS) GetObjectBase64Content ¶ added in v0.9.24
func (*GoogleOSS) GetObjectCDNURL ¶ added in v0.9.24
func (*GoogleOSS) GetObjectOSSURL ¶ added in v0.9.24
func (*GoogleOSS) GetObjectSignedURL ¶ added in v0.9.24
func (*GoogleOSS) GetObjectURL ¶ added in v0.9.24
func (*GoogleOSS) UploadImageFromBase64 ¶ added in v0.9.24
func (*GoogleOSS) UploadImageFromFile ¶ added in v0.9.24
func (*GoogleOSS) UploadObjectFromBase64 ¶ added in v0.9.24
func (*GoogleOSS) UploadObjectFromByte ¶ added in v0.9.24
Click to show internal directories.
Click to hide internal directories.