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 GetBuckets(mac *digest.Mac) (buckets []string, err error)
- func GetDomainsOfBucket(mac *digest.Mac, bucket string) (domains []string, err error)
- func GetEtag(filename string) (etag string, err error)
- func M3u8FileList(mac *digest.Mac, bucket string, m3u8Key string, isPrivate bool) (slicesToDelete []rs.EntryPath, 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 BatchCopy(client rs.Client, entries []CopyEntryPath) (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)
- func BatchStat(client rs.Client, entries []rs.EntryPath) (ret []BatchItemRet, err error)
- type BatchItemRetData
- type BucketDomain
- type ChgmEntryPath
- type CopyEntryPath
- 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 )
Variables ¶
This section is empty.
Functions ¶
func CheckQrsync ¶
func GetDomainsOfBucket ¶ added in v1.4.6
func M3u8FileList ¶ added in v1.4.1
func PrivateUrl ¶ added in v1.3.7
func Saveas ¶ added in v1.3.9
Types ¶
type Account ¶
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 BatchCopy ¶ added in v1.4.1
func BatchCopy(client rs.Client, entries []CopyEntryPath) (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 ChgmEntryPath ¶ added in v1.3.9
type CopyEntryPath ¶ added in v1.4.1
type DirCache ¶
type DirCache struct { }
type DownloadConfig ¶
type FetchResult ¶ added in v1.3.9
type FopResult ¶
type FopRet ¶
type MoveEntryPath ¶ added in v1.3.9
type RenameEntryPath ¶ added in v1.3.9
type UploadConfig ¶
type UploadConfig struct { SrcDir string `json:"src_dir"` AccessKey string `json:"access_key"` SecretKey string `json:"secret_key"` Bucket string `json:"bucket"` UpHost string `json:"up_host,omitempty"` KeyPrefix string `json:"key_prefix,omitempty"` IgnoreDir bool `json:"ignore_dir,omitempty"` Overwrite bool `json:"overwrite,omitempty"` CheckExists bool `json:"check_exists,omitempty"` }
Source Files
¶
- account.go
- alioss_list_bucket.go
- bucket.go
- dir_cache.go
- list_bucket.go
- m3u8.go
- qdownload.go
- qetag.go
- qrsync.go
- qupload.go
- rs.go
- rs_fop.go
- unzip.go
Click to show internal directories.
Click to hide internal directories.