mocks

package
v1.3.166 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeOSSClient

type FakeOSSClient struct {
	mock.Mock
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL