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