Documentation ¶
Index ¶
- type FakeOSSClient
- func (t *FakeOSSClient) CreateObjectFromKey(_ *beeorm.Engine, namespace oss.Namespace, key string) entity.FileObject
- func (t *FakeOSSClient) DeleteObject(namespace oss.Namespace, object *entity.FileObject) error
- func (t *FakeOSSClient) GetBucketConfig(bucket oss.Bucket) *oss.BucketConfig
- func (t *FakeOSSClient) GetClient() interface{}
- func (t *FakeOSSClient) GetNamespaceBucketConfig(namespace oss.Namespace) (*oss.BucketConfig, error)
- func (t *FakeOSSClient) GetObjectBase64Content(namespace oss.Namespace, object *entity.FileObject) (string, error)
- func (t *FakeOSSClient) GetObjectCDNURL(namespace oss.Namespace, object *entity.FileObject) (string, error)
- func (t *FakeOSSClient) GetObjectOSSURL(namespace oss.Namespace, object *entity.FileObject) (string, error)
- func (t *FakeOSSClient) GetObjectSignedURL(namespace oss.Namespace, object *entity.FileObject, expires time.Time) (string, error)
- func (t *FakeOSSClient) GetObjectURL(namespace oss.Namespace, object *entity.FileObject) (string, error)
- func (t *FakeOSSClient) UploadImageFromBase64(_ *beeorm.Engine, namespace oss.Namespace, image, extension string) (entity.FileObject, error)
- func (t *FakeOSSClient) UploadImageFromFile(_ *beeorm.Engine, namespace oss.Namespace, localFile string) (entity.FileObject, error)
- func (t *FakeOSSClient) UploadObjectFromBase64(_ *beeorm.Engine, namespace oss.Namespace, content string, extension string) (entity.FileObject, error)
- func (t *FakeOSSClient) UploadObjectFromByte(_ *beeorm.Engine, namespace oss.Namespace, content []byte, extension string) (entity.FileObject, error)
- func (t *FakeOSSClient) UploadObjectFromFile(_ *beeorm.Engine, namespace oss.Namespace, localFile string) (entity.FileObject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeOSSClient ¶
func (*FakeOSSClient) CreateObjectFromKey ¶ added in v0.9.30
func (t *FakeOSSClient) CreateObjectFromKey(_ *beeorm.Engine, namespace oss.Namespace, key string) entity.FileObject
func (*FakeOSSClient) DeleteObject ¶ added in v0.9.24
func (t *FakeOSSClient) DeleteObject(namespace oss.Namespace, object *entity.FileObject) error
func (*FakeOSSClient) GetBucketConfig ¶ added in v1.0.51
func (t *FakeOSSClient) GetBucketConfig(bucket oss.Bucket) *oss.BucketConfig
func (*FakeOSSClient) GetClient ¶ added in v0.9.39
func (t *FakeOSSClient) GetClient() interface{}
func (*FakeOSSClient) GetNamespaceBucketConfig ¶ added in v1.2.76
func (t *FakeOSSClient) GetNamespaceBucketConfig(namespace oss.Namespace) (*oss.BucketConfig, error)
func (*FakeOSSClient) GetObjectBase64Content ¶ added in v0.6.3
func (t *FakeOSSClient) GetObjectBase64Content(namespace oss.Namespace, object *entity.FileObject) (string, error)
func (*FakeOSSClient) GetObjectCDNURL ¶ added in v0.9.24
func (t *FakeOSSClient) GetObjectCDNURL(namespace oss.Namespace, object *entity.FileObject) (string, error)
func (*FakeOSSClient) GetObjectOSSURL ¶ added in v0.9.24
func (t *FakeOSSClient) GetObjectOSSURL(namespace oss.Namespace, object *entity.FileObject) (string, error)
func (*FakeOSSClient) GetObjectSignedURL ¶
func (t *FakeOSSClient) GetObjectSignedURL(namespace oss.Namespace, object *entity.FileObject, expires time.Time) (string, error)
func (*FakeOSSClient) GetObjectURL ¶
func (t *FakeOSSClient) GetObjectURL(namespace oss.Namespace, object *entity.FileObject) (string, error)
func (*FakeOSSClient) UploadImageFromBase64 ¶
func (t *FakeOSSClient) UploadImageFromBase64(_ *beeorm.Engine, namespace oss.Namespace, image, extension string) (entity.FileObject, error)
func (*FakeOSSClient) UploadImageFromFile ¶
func (t *FakeOSSClient) UploadImageFromFile(_ *beeorm.Engine, namespace oss.Namespace, localFile string) (entity.FileObject, error)
func (*FakeOSSClient) UploadObjectFromBase64 ¶
func (t *FakeOSSClient) UploadObjectFromBase64( _ *beeorm.Engine, namespace oss.Namespace, content string, extension string, ) (entity.FileObject, error)
func (*FakeOSSClient) UploadObjectFromByte ¶ added in v0.9.24
func (t *FakeOSSClient) UploadObjectFromByte( _ *beeorm.Engine, namespace oss.Namespace, content []byte, extension string, ) (entity.FileObject, error)
func (*FakeOSSClient) UploadObjectFromFile ¶
func (t *FakeOSSClient) UploadObjectFromFile(_ *beeorm.Engine, namespace oss.Namespace, localFile string) (entity.FileObject, error)
Click to show internal directories.
Click to hide internal directories.