Documentation
¶
Index ¶
- Constants
- func CheckQrsync(dirCacheResultFile string, listBucketResultFile string, ignoreLocalDir bool, ...)
- func Fetch(mac *digest.Mac, remoteResUrl, bucket, key string) (err error)
- func Prefetch(mac *digest.Mac, bucket, key string) (err error)
- func QiniuDownload(threadCount int, downloadConfigFile string)
- func QiniuUpload(putThreshold int64, uploadConfigFile string)
- type Account
- type AliListBucket
- type DirCache
- type DownloadConfig
- type FopResult
- type FopRet
- type ListBucket
- type RSFop
- type UploadConfig
Constants ¶
View Source
const (
PUT_THRESHOLD int64 = 2 << 30
)
Variables ¶
This section is empty.
Functions ¶
func CheckQrsync ¶
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 DirCache ¶
type DirCache struct {
}
type DownloadConfig ¶
type DownloadConfig struct {
DestDir string `json:"dest_dir"`
Bucket string `json:"bucket"`
Domain string `json:"domain"`
AccessKey string `json:"access_key"`
SecretKey string `json:"secret_key"`
IsPrivate bool `json:"is_private"`
Prefix string `json:"prefix,omitempty"`
}
{
"dest_dir" : "/Users/jemy/Backup",
"bucket" : "test-bucket",
"domain" : "<Your bucket domain>",
"access_key" : "<Your AccessKey>",
"secret_key" : "<Your SecretKey>",
"is_private" : false,
"prefix" : "demo/"
}
type FopResult ¶
type FopRet ¶
Source Files
¶
- account.go
- alioss_list_bucket.go
- dir_cache.go
- list_bucket.go
- qdownload.go
- qrsync.go
- qupload.go
- rs_fetch.go
- rs_fop.go
Click to show internal directories.
Click to hide internal directories.