Documentation ¶
Index ¶
Constants ¶
View Source
const (
AliossPrefix = "oss://"
)
基本参数
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // 生成文件Oss路径 GenObjectID(prefixPath, filename string) string // 上传文件 PutObject(bucketName, objectID string, reader io.Reader) error // 获取文件地址 GetSignURL(bucketName, objectID string, options ...oss.Option) (string, error) // 删除文件地址 DeleteObject(bucketName, objectID string) error // 获取所有object列表 ListObjects(bucketName string) (*oss.ListObjectsResult, error) }
Client 客户端API说明
func NewClientFromFile ¶
NewClientFromFile 从配置文件读取
Click to show internal directories.
Click to hide internal directories.