Versions in this module Expand all Collapse all v3 v3.0.4 Jan 6, 2023 Changes in this version + const DefaultLimit + const MaxLimit + const MaxListTries + type BreakPointConfig struct + FileModTime time.Time + FileSize int64 + LastTime time.Time + PartID int + PartSize int64 + UploadID string + type DisorderPart struct + Etag string + ID int64 + LastModified int64 + Size int64 + type GetRequestConfig struct + Headers map[string]string + Path string + type ListObjectsConfig struct + DescOrder bool + Headers map[string]string + Iter string + Limit int + MaxListTries int + Path string + type MemoryRecorder struct + func (recorder *MemoryRecorder) Delete(path string) + func (recorder *MemoryRecorder) Get(path string) *BreakPointConfig + func (recorder *MemoryRecorder) Set(path string, breakpoint *BreakPointConfig) + func (recorder *MemoryRecorder) TimedClearance() + type Recorder interface + Delete func(path string) + Get func(path string) *BreakPointConfig + Set func(path string, breakpoint *BreakPointConfig) + TimedClearance func() + type ResumeDisorderResult struct + Parts []*DisorderPart + type ResumeProcessResult struct + NextPartID int64 + NextPartSize int64 + Parts []*DisorderPart + Path string + UploadID string type UpYun + func (up *UpYun) Close() + func (up *UpYun) GetRequest(config *GetRequestConfig) (*http.Response, error) + func (up *UpYun) GetResumeProcess(path string) (*ResumeProcessResult, error) + func (up *UpYun) ListObjects(config *ListObjectsConfig) (fileInfos []*FileInfo, iter string, err error) + func (up *UpYun) SetRecorder(recoder Recorder) + func (up *UpYun) SetTimedTask(task func()) type UpYunConfig + UseHTTP bool v3.0.3 Jul 29, 2022 v3.0.2 Jan 13, 2021 Changes in this version + const DefaultPartSize + const MaxPartNum + func IsNotExist(err error) bool + func IsNotModified(err error) bool + func IsTooManyRequests(err error) bool + type CommitTasksConfig struct + Accept string + AppName string + NotifyUrl string + Source string + Tasks []interface{} + type CompleteMultipartUploadConfig struct + Md5 string + type CopyObjectConfig struct + DestPath string + Headers map[string]string + SrcPath string + type DeleteObjectConfig struct + Async bool + Folder bool + Path string + type Error struct + Body []byte + Code int + Header http.Header + Message string + Operation string + RequestID string + StatusCode int + func (e *Error) Error() string + type FileInfo struct + ContentType string + ImgFrames int64 + ImgHeight int64 + ImgType string + ImgWidth int64 + IsDir bool + IsEmptyDir bool + MD5 string + Meta map[string]string + Name string + Size int64 + Time time.Time + type FormUploadConfig struct + Apps []map[string]interface{} + ExpireAfterSec int64 + LocalPath string + NotifyUrl string + Options map[string]interface{} + SaveKey string + func (config *FormUploadConfig) Format() + type FormUploadResp struct + Code int + ImgFrames int + ImgHeight int + ImgType string + ImgWidth int + Msg string + Sign string + Taskids []string + Timestamp int64 + Url string + type GetObjectConfig struct + Headers map[string]string + LocalPath string + Path string + Writer io.Writer + type GetObjectsConfig struct + DescOrder bool + Headers map[string]string + MaxListLevel int + MaxListObjects int + MaxListTries int + ObjectsChan chan *FileInfo + Path string + QuitChan chan bool + type InitMultipartUploadConfig struct + ContentLength int64 + ContentType string + OrderUpload bool + PartSize int64 + Path string + type InitMultipartUploadResult struct + PartSize int64 + Path string + UploadID string + type JsonFileInfo struct + ContentType string + LastModified int64 + Length int64 + Name string + type JsonFiles struct + Files []*JsonFileInfo + Iter string + type ListMultipartConfig struct + Limit int64 + Prefix string + type ListMultipartPartsConfig struct + BeginID int + type ListMultipartUploadResult struct + Files []*MultipartUploadFile + type ListUploadedPartsResult struct + Parts []*MultipartUploadedPart + type LiveauditCancelTask struct + TaskId string + type LiveauditCreateTask struct + Interval string + NotifyUrl string + Resize string + SaveAs string + Source string + type ModifyMetadataConfig struct + Headers map[string]string + Operation string + Path string + type MoveObjectConfig struct + DestPath string + Headers map[string]string + SrcPath string + type MultipartUploadFile struct + Completed bool + CreatedAt int64 + Key string + UUID string + type MultipartUploadedPart struct + Etag string + Id int + Size int64 + type PurgeAuthConfig struct + DateStr string + PurgeList string + type PutObjectConfig struct + Headers map[string]string + LocalPath string + MaxResumePutTries int + Path string + Reader io.Reader + ResumePartSize int64 + UseMD5 bool + UseResumeUpload bool + type RESTAuthConfig struct + DateStr string + LengthStr string + Method string + Uri string + type SyncCommonTask struct + Kwargs map[string]interface{} + TaskUri string + type UnifiedAuthConfig struct + ContentMD5 string + DateStr string + Method string + Policy string + Uri string + type UpYun struct + func NewUpYun(config *UpYunConfig) *UpYun + func (u *UpYun) MakeFormAuth(policy string) string + func (u *UpYun) MakeProcessAuth(kwargs map[string]string) string + func (u *UpYun) MakePurgeAuth(config *PurgeAuthConfig) string + func (u *UpYun) MakeRESTAuth(config *RESTAuthConfig) string + func (u *UpYun) MakeUnifiedAuth(config *UnifiedAuthConfig) string + func (up *UpYun) CommitSyncTasks(commitTask interface{}) (result map[string]interface{}, err error) + func (up *UpYun) CommitTasks(config *CommitTasksConfig) (taskIds []string, err error) + func (up *UpYun) CompleteMultipartUpload(initResult *InitMultipartUploadResult, config *CompleteMultipartUploadConfig) error + func (up *UpYun) Copy(config *CopyObjectConfig) error + func (up *UpYun) Delete(config *DeleteObjectConfig) error + func (up *UpYun) FormUpload(config *FormUploadConfig) (*FormUploadResp, error) + func (up *UpYun) Get(config *GetObjectConfig) (fInfo *FileInfo, err error) + func (up *UpYun) GetInfo(path string) (*FileInfo, error) + func (up *UpYun) GetProgress(taskIds []string) (result map[string]int, err error) + func (up *UpYun) GetResult(taskIds []string) (result map[string]interface{}, err error) + func (up *UpYun) InitMultipartUpload(config *InitMultipartUploadConfig) (*InitMultipartUploadResult, error) + func (up *UpYun) List(config *GetObjectsConfig) error + func (up *UpYun) ListMultipartParts(intiResult *InitMultipartUploadResult, config *ListMultipartPartsConfig) (*ListUploadedPartsResult, error) + func (up *UpYun) ListMultipartUploads(config *ListMultipartConfig) (*ListMultipartUploadResult, error) + func (up *UpYun) Mkdir(path string) error + func (up *UpYun) ModifyMetadata(config *ModifyMetadataConfig) error + func (up *UpYun) Move(config *MoveObjectConfig) error + func (up *UpYun) Purge(urls []string) (fails []string, err error) + func (up *UpYun) Put(config *PutObjectConfig) (err error) + func (up *UpYun) SetHTTPClient(httpc *http.Client) + func (up *UpYun) UploadPart(initResult *InitMultipartUploadResult, part *UploadPartConfig) error + func (up *UpYun) Usage() (n int64, err error) + func (up *UpYun) UseDeprecatedApi() + type UpYunConfig struct + Bucket string + Hosts map[string]string + Operator string + Password string + Secret string + UserAgent string + type UpYunPutReader interface + Copyed func() (n int) + Len func() (n int) + MD5 func() (ret string) + Read func([]byte) (n int, err error) + type UploadPartConfig struct + PartID int + PartSize int64 + Reader io.Reader Other modules containing this package github.com/upyun/go-sdk