Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeMinio = "minio" TypeAlioss = "alioss" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Oss ¶
type Oss interface { PresignedPutURL(ctx context.Context, objectName string, expires time.Duration, etag, mimeType string, size int64) (string, error) PresignedGetURL(ctx context.Context, objectName string, expires time.Duration) (string, error) StatObject(ctx context.Context, objectName string) (ossconf.ObjectInfo, error) PutObject(ctx context.Context, objectName string, reader io.Reader, objectSize int64, contentType string) error GetBucketName() string GetObjectName(prefix, fileName string) string GetObject(ctx context.Context, objectName string, opts ossconf.GetObjectOption) (io.Reader, error) GetStoragePath(prefix, fileName string) string }
Click to show internal directories.
Click to hide internal directories.