Documentation
¶
Index ¶
- Constants
- type MSS
- func (m *MSS) AuthorizedUpload(key string, expires int) (string, error)
- func (m *MSS) Cloud() string
- func (m *MSS) DeleteObjects(keys ...string) error
- func (m *MSS) GetObject(key string) (io.ReadCloser, error)
- func (m *MSS) GetThumbnailSuffix(width, height int, size int64) string
- func (m *MSS) GetURL(key string) string
- func (m *MSS) PutObject(key string, reader io.Reader) (string, error)
- func (m *MSS) UploadFile(key, filePath string, partSize int64, routines int) (string, error)
Constants ¶
View Source
const (
// CloudMock 云服务商:模拟
CloudMock = "mock"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MSS ¶
type MSS struct{}
MSS 模拟 MSS 客户端
func (*MSS) AuthorizedUpload ¶
AuthorizedUpload 授权上传至模拟 MSS,expires:过期时间(秒)
func (*MSS) DeleteObjects ¶
DeleteObjects 批量删除模拟 MSS 上的对象
func (*MSS) GetObject ¶
func (m *MSS) GetObject(key string) (io.ReadCloser, error)
GetObject 获取对象在模拟 MSS 的存储数据
func (*MSS) GetThumbnailSuffix ¶
GetThumbnailSuffix 获取缩略图后缀
Click to show internal directories.
Click to hide internal directories.