Documentation ¶
Index ¶
- Constants
- type Addition
- type BaseResp
- type Catalog
- type CloudCatalog
- type CloudContent
- type Content
- type GetDiskResp
- type PersonalFileItem
- type PersonalListResp
- type PersonalPartInfo
- type PersonalThumbnail
- type PersonalUploadResp
- type QueryContentListResp
- type RefreshTokenResp
- type UploadResp
- type Yun139
- func (d *Yun139) Config() driver.Config
- func (d *Yun139) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Yun139) Drop(ctx context.Context) error
- func (d *Yun139) GetAddition() driver.Additional
- func (d *Yun139) Init(ctx context.Context) error
- func (d *Yun139) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Yun139) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Yun139) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *Yun139) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *Yun139) Other(ctx context.Context, args model.OtherArgs) (interface{}, error)
- func (d *Yun139) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *Yun139) Remove(ctx context.Context, obj model.Obj) error
- func (d *Yun139) Rename(ctx context.Context, srcObj model.Obj, newName string) error
Constants ¶
View Source
const ( KB = 1 << (10 * iota) MB GB TB )
View Source
const ( MetaPersonal string = "personal" MetaFamily string = "family" MetaPersonalNew string = "personal_new" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudCatalog ¶
type CloudContent ¶
type CloudContent struct { ContentID string `json:"contentID"` //Modifier string `json:"modifier"` //Nickname string `json:"nickname"` //CloudNickName string `json:"cloudNickName"` ContentName string `json:"contentName"` //ContentType int `json:"contentType"` //ContentSuffix string `json:"contentSuffix"` ContentSize int64 `json:"contentSize"` //ContentDesc string `json:"contentDesc"` CreateTime string `json:"createTime"` //Shottime interface{} `json:"shottime"` LastUpdateTime string `json:"lastUpdateTime"` ThumbnailURL string `json:"thumbnailURL"` }
type Content ¶
type Content struct { ContentID string `json:"contentID"` ContentName string `json:"contentName"` //ContentSuffix string `json:"contentSuffix"` ContentSize int64 `json:"contentSize"` //ContentDesc string `json:"contentDesc"` //ContentType int `json:"contentType"` //ContentOrigin int `json:"contentOrigin"` UpdateTime string `json:"updateTime"` //CommentCount int `json:"commentCount"` ThumbnailURL string `json:"thumbnailURL"` //BigthumbnailURL string `json:"bigthumbnailURL"` //PresentURL string `json:"presentURL"` //PresentLURL string `json:"presentLURL"` //PresentHURL string `json:"presentHURL"` //ContentTAGList interface{} `json:"contentTAGList"` //ShareDoneeCount int `json:"shareDoneeCount"` //Safestate int `json:"safestate"` //Transferstate int `json:"transferstate"` //IsFocusContent int `json:"isFocusContent"` //UpdateShareTime interface{} `json:"updateShareTime"` //UploadTime string `json:"uploadTime"` //OpenType int `json:"openType"` //AuditResult int `json:"auditResult"` //ParentCatalogID string `json:"parentCatalogId"` //Channel string `json:"channel"` //GeoLocFlag string `json:"geoLocFlag"` Digest string `json:"digest"` }
type GetDiskResp ¶
type GetDiskResp struct { BaseResp Data struct { Result struct { ResultCode string `json:"resultCode"` ResultDesc interface{} `json:"resultDesc"` } `json:"result"` GetDiskResult struct { ParentCatalogID string `json:"parentCatalogID"` NodeCount int `json:"nodeCount"` CatalogList []Catalog `json:"catalogList"` ContentList []Content `json:"contentList"` IsCompleted int `json:"isCompleted"` } `json:"getDiskResult"` } `json:"data"` }
type PersonalFileItem ¶
type PersonalListResp ¶
type PersonalListResp struct { BaseResp Data struct { Items []PersonalFileItem `json:"items"` NextPageCursor string `json:"nextPageCursor"` } }
type PersonalPartInfo ¶
type PersonalThumbnail ¶
type PersonalUploadResp ¶
type QueryContentListResp ¶
type QueryContentListResp struct { BaseResp Data struct { Result struct { ResultCode string `json:"resultCode"` ResultDesc string `json:"resultDesc"` } `json:"result"` Path string `json:"path"` CloudContentList []CloudContent `json:"cloudContentList"` CloudCatalogList []CloudCatalog `json:"cloudCatalogList"` TotalCount int `json:"totalCount"` RecallContent interface{} `json:"recallContent"` } `json:"data"` }
type RefreshTokenResp ¶
type UploadResp ¶
type UploadResp struct { BaseResp Data struct { Result struct { ResultCode string `json:"resultCode"` ResultDesc interface{} `json:"resultDesc"` } `json:"result"` UploadResult struct { UploadTaskID string `json:"uploadTaskID"` RedirectionURL string `json:"redirectionUrl"` NewContentIDList []struct { ContentID string `json:"contentID"` ContentName string `json:"contentName"` IsNeedUpload string `json:"isNeedUpload"` FileEtag int64 `json:"fileEtag"` FileVersion int64 `json:"fileVersion"` OverridenFlag int `json:"overridenFlag"` } `json:"newContentIDList"` CatalogIDList interface{} `json:"catalogIDList"` IsSlice interface{} `json:"isSlice"` } `json:"uploadResult"` } `json:"data"` }
type Yun139 ¶
type Yun139 struct { model.Storage Addition Account string // contains filtered or unexported fields }
func (*Yun139) GetAddition ¶
func (d *Yun139) GetAddition() driver.Additional
Click to show internal directories.
Click to hide internal directories.