Documentation ¶
Index ¶
- type OssConfig
- type OssStore
- func (s *OssStore) DeleteBatch(remotePaths []string) error
- func (s *OssStore) DeleteOne(remotePath string) error
- func (s *OssStore) Download(remotePath, localPath string) error
- func (s *OssStore) GetContent(remotePath string) ([]byte, error)
- func (s *OssStore) GetContentToBuf(remotePath string, buf *bytes.Buffer) error
- func (s *OssStore) GetContentToStream(remotePath string, fd *os.File) error
- func (s *OssStore) UploadBytes(content []byte, remotePath string) error
- func (s *OssStore) UploadFile(localPath, remotePath string) error
- func (s *OssStore) UploadStream(fd *os.File, remotePath string) error
- func (s *OssStore) UploadText(content, remotePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OssStore ¶
type OssStore struct {
// contains filtered or unexported fields
}
func NewOssStore ¶
func (*OssStore) GetContentToBuf ¶
下载文件到缓存
func (*OssStore) GetContentToStream ¶
下载文件到文件流
func (*OssStore) UploadBytes ¶
上传Byte数组
func (*OssStore) UploadFile ¶
上传本地文件
func (*OssStore) UploadStream ¶
上传文件流
Click to show internal directories.
Click to hide internal directories.