Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseOSSProvider ¶
type LocalStorage ¶
type LocalStorage struct {
// contains filtered or unexported fields
}
func NewLocalStorage ¶
func NewLocalStorage() *LocalStorage
func (*LocalStorage) CheckObjectExist ¶
func (l *LocalStorage) CheckObjectExist(objectName string) (bool, error)
func (*LocalStorage) DownloadToIO ¶
func (l *LocalStorage) DownloadToIO(objectName string, ioWriter io.Writer) error
func (*LocalStorage) UploadFromIO ¶
type MinioClient ¶
type MinioClient struct {
// contains filtered or unexported fields
}
MinioClient minio client
func (*MinioClient) CheckObjectExist ¶
func (m *MinioClient) CheckObjectExist(objectName string) (bool, error)
检查文件是否存在
func (*MinioClient) DownloadToIO ¶
func (m *MinioClient) DownloadToIO(objectName string, ioWriter io.Writer) error
下载文件到io.Writer
func (*MinioClient) UploadFromIO ¶
从io.Reader上传文件
Click to show internal directories.
Click to hide internal directories.