Documentation
¶
Index ¶
- Constants
- func BlockCount(fsize int64) int
- func CalSha1(b []byte, r io.Reader) ([]byte, error)
- func CheckQrsync(dirCacheResultFile string, listBucketResultFile string, ignoreLocalDir bool, ...)
- func GetEtag(filename string) (etag string, err error)
- func Prefetch(mac *digest.Mac, bucket, key string) (err error)
- func PrivateUrl(mac *digest.Mac, publicUrl string, deadline int64) string
- func QiniuDownload(threadCount int, downloadConfigFile string)
- func QiniuUpload(threadCount int, uploadConfigFile string)
- func Saveas(mac *digest.Mac, publicUrl string, saveBucket string, saveKey string) (string, error)
- func Unzip(zipFilePath string, unzipPath string) (err error)
- type Account
- type AliListBucket
- type BatchItemRet
- func BatchChgm(client rs.Client, entries []ChgmEntryPath) (ret []BatchItemRet, err error)
- func BatchDelete(client rs.Client, entries []rs.EntryPath) (ret []BatchItemRet, err error)
- func BatchMove(client rs.Client, entries []MoveEntryPath) (ret []BatchItemRet, err error)
- func BatchRename(client rs.Client, entries []RenameEntryPath) (ret []BatchItemRet, err error)
- type BatchItemRetData
- type ChgmEntryPath
- type DirCache
- type DownloadConfig
- type FetchResult
- type FopResult
- type FopRet
- type ListBucket
- type MoveEntryPath
- type RSFop
- type RenameEntryPath
- type UploadConfig
Constants ¶
View Source
const ( MIN_DOWNLOAD_THREAD_COUNT = 1 MAX_DOWNLOAD_THREAD_COUNT = 100 )
View Source
const ( BLOCK_BITS = 22 // Indicate that the blocksize is 4M BLOCK_SIZE = 1 << BLOCK_BITS )
View Source
const ( PUT_THRESHOLD int64 = 100 * 1 << 20 MIN_UPLOAD_THREAD_COUNT int64 = 1 MAX_UPLOAD_THREAD_COUNT int64 = 100 )
Variables ¶
This section is empty.
Functions ¶
func BlockCount ¶ added in v1.3.7
func CheckQrsync ¶
func PrivateUrl ¶ added in v1.3.7
func QiniuDownload ¶ added in v1.3.2
func QiniuUpload ¶
Types ¶
type AliListBucket ¶
type AliListBucket struct { DataCenter string AccessKeyId string AccessKeySecret string Bucket string Prefix string }
func (*AliListBucket) ListBucket ¶
func (this *AliListBucket) ListBucket(listResultFile string) (err error)
type BatchItemRet ¶ added in v1.3.9
type BatchItemRet struct { Code int `json:"code"` Data BatchItemRetData `json:"data"` }
func BatchChgm ¶ added in v1.3.9
func BatchChgm(client rs.Client, entries []ChgmEntryPath) (ret []BatchItemRet, err error)
func BatchDelete ¶ added in v1.3.9
func BatchMove ¶ added in v1.3.9
func BatchMove(client rs.Client, entries []MoveEntryPath) (ret []BatchItemRet, err error)
func BatchRename ¶ added in v1.3.9
func BatchRename(client rs.Client, entries []RenameEntryPath) (ret []BatchItemRet, err error)
type BatchItemRetData ¶ added in v1.3.9
type BatchItemRetData struct {
Error string `json:"error,omitempty"`
}
type ChgmEntryPath ¶ added in v1.3.9
type DownloadConfig ¶ added in v1.3.2
type FetchResult ¶ added in v1.3.9
type FopRet ¶
type ListBucket ¶
type ListBucket struct {
Account
}
type MoveEntryPath ¶ added in v1.3.9
type RenameEntryPath ¶ added in v1.3.9
type UploadConfig ¶
Click to show internal directories.
Click to hide internal directories.