Documentation ¶
Index ¶
- type OSS
- func (e *OSS) DownloadFiles(fileObject []string, localDir string) error
- func (e *OSS) GetCredential() (*sts.CredentialResult, error)
- func (e *OSS) GetPresignedURL(objectName string) (string, error)
- func (e *OSS) GetSignedFileUrl(dir string, isSign bool) ([]string, []string, error)
- func (e *OSS) UpLoad(objectName, localFile string) (string, error)
- type OssOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OSS ¶
type OSS struct { Client *cos.Client // contains filtered or unexported fields }
func (*OSS) DownloadFiles ¶
下载文件 fileObject - cos文件对象 localDir - 本地存储路径
func (*OSS) GetPresignedURL ¶
获取签名链接
func (*OSS) GetSignedFileUrl ¶
查询目录下的文件
Click to show internal directories.
Click to hide internal directories.