Documentation ¶
Index ¶
- type AmazonOSS
- func (ossStorage *AmazonOSS) DeleteObject(namespace Namespace, object *entity.FileObject) error
- func (ossStorage *AmazonOSS) GetBucketConfig(bucket Bucket) *BucketConfig
- func (ossStorage *AmazonOSS) GetClient() interface{}
- func (ossStorage *AmazonOSS) GetObjectBase64Content(_ Namespace, _ *entity.FileObject) (string, error)
- func (ossStorage *AmazonOSS) GetObjectCDNURL(namespace Namespace, object *entity.FileObject) (string, error)
- func (ossStorage *AmazonOSS) GetObjectOSSURL(_ Namespace, _ *entity.FileObject) (string, error)
- func (ossStorage *AmazonOSS) GetObjectSignedURL(namespace Namespace, object *entity.FileObject, expires time.Time) (string, error)
- func (ossStorage *AmazonOSS) GetObjectURL(namespace Namespace, object *entity.FileObject) (string, error)
- func (ossStorage *AmazonOSS) UploadImageFromBase64(ormService *beeorm.Engine, namespace Namespace, image string, extension string) (entity.FileObject, error)
- func (ossStorage *AmazonOSS) UploadImageFromFile(ormService *beeorm.Engine, namespace Namespace, localFile string) (entity.FileObject, error)
- func (ossStorage *AmazonOSS) UploadObjectFromBase64(ormService *beeorm.Engine, namespace Namespace, content string, ...) (entity.FileObject, error)
- func (ossStorage *AmazonOSS) UploadObjectFromByte(ormService *beeorm.Engine, namespace Namespace, objectContent []byte, ...) (entity.FileObject, error)
- func (ossStorage *AmazonOSS) UploadObjectFromFile(ormService *beeorm.Engine, namespace Namespace, localFile string) (entity.FileObject, error)
- type Bucket
- type BucketConfig
- type CachedObjectURLTemplate
- type GoogleOSS
- func (ossStorage *GoogleOSS) DeleteObject(_ Namespace, _ *entity.FileObject) error
- func (ossStorage *GoogleOSS) GetBucketConfig(bucket Bucket) *BucketConfig
- func (ossStorage *GoogleOSS) GetClient() interface{}
- func (ossStorage *GoogleOSS) GetObjectBase64Content(namespace Namespace, object *entity.FileObject) (string, error)
- func (ossStorage *GoogleOSS) GetObjectCDNURL(namespace Namespace, object *entity.FileObject) (string, error)
- func (ossStorage *GoogleOSS) GetObjectOSSURL(namespace Namespace, object *entity.FileObject) (string, error)
- func (ossStorage *GoogleOSS) GetObjectSignedURL(namespace Namespace, object *entity.FileObject, expires time.Time) (string, error)
- func (ossStorage *GoogleOSS) GetObjectURL(namespace Namespace, object *entity.FileObject) (string, error)
- func (ossStorage *GoogleOSS) UploadImageFromBase64(ormService *beeorm.Engine, namespace Namespace, base64image string, ...) (entity.FileObject, error)
- func (ossStorage *GoogleOSS) UploadImageFromFile(ormService *beeorm.Engine, namespace Namespace, localFile string) (entity.FileObject, error)
- func (ossStorage *GoogleOSS) UploadObjectFromBase64(ormService *beeorm.Engine, namespace Namespace, ...) (entity.FileObject, error)
- func (ossStorage *GoogleOSS) UploadObjectFromByte(ormService *beeorm.Engine, namespace Namespace, objectContent []byte, ...) (entity.FileObject, error)
- func (ossStorage *GoogleOSS) UploadObjectFromFile(ormService *beeorm.Engine, namespace Namespace, localFile string) (entity.FileObject, error)
- type IProvider
- type Namespace
- type Namespaces
- type NewProviderFunc
Constants ¶
This section is empty.
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 (*AmazonOSS) DeleteObject ¶ added in v0.9.24
func (ossStorage *AmazonOSS) DeleteObject(namespace Namespace, object *entity.FileObject) error
func (*AmazonOSS) GetBucketConfig ¶ added in v1.0.50
func (ossStorage *AmazonOSS) GetBucketConfig(bucket Bucket) *BucketConfig
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
func (*AmazonOSS) UploadObjectFromFile ¶ added in v0.9.24
type BucketConfig ¶ added in v0.9.24
type CachedObjectURLTemplate ¶ added in v0.9.24
type GoogleOSS ¶ added in v0.9.24
type GoogleOSS struct {
// contains filtered or unexported fields
}
func (*GoogleOSS) DeleteObject ¶ added in v0.9.24
func (ossStorage *GoogleOSS) DeleteObject(_ Namespace, _ *entity.FileObject) error
func (*GoogleOSS) GetBucketConfig ¶ added in v1.0.50
func (ossStorage *GoogleOSS) GetBucketConfig(bucket Bucket) *BucketConfig
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
func (*GoogleOSS) UploadObjectFromFile ¶ added in v0.9.24
type IProvider ¶ added in v0.9.26
type IProvider interface { GetBucketConfig(bucket Bucket) *BucketConfig GetClient() interface{} GetObjectURL(namespace Namespace, object *entity.FileObject) (string, error) GetObjectOSSURL(namespace Namespace, object *entity.FileObject) (string, error) GetObjectCDNURL(namespace Namespace, object *entity.FileObject) (string, error) GetObjectSignedURL(namespace Namespace, object *entity.FileObject, expires time.Time) (string, error) GetObjectBase64Content(namespace Namespace, object *entity.FileObject) (string, error) UploadObjectFromFile(ormService *beeorm.Engine, namespace Namespace, localFile string) (entity.FileObject, error) UploadObjectFromBase64(ormService *beeorm.Engine, namespace Namespace, content, extension string) (entity.FileObject, error) UploadObjectFromByte(ormService *beeorm.Engine, namespace Namespace, content []byte, extension string) (entity.FileObject, error) UploadImageFromFile(ormService *beeorm.Engine, namespace Namespace, localFile string) (entity.FileObject, error) UploadImageFromBase64(ormService *beeorm.Engine, namespace Namespace, image, extension string) (entity.FileObject, error) DeleteObject(namespace Namespace, object *entity.FileObject) error }
func NewAmazonOSS ¶ added in v0.9.24
func NewGoogleOSS ¶ added in v0.9.24
type Namespaces ¶ added in v1.2.56
type NewProviderFunc ¶ added in v1.0.50
Click to show internal directories.
Click to hide internal directories.