Documentation ¶
Index ¶
- type Addition
- type BaseReq
- type BaseReqQuery
- type BaseRes
- type CopyRes
- type GetDocRes
- type GetDownloadResp
- type Group
- type GroupRes
- type List
- type ListDir
- type ListFile
- type ListItem
- type ListRes
- type MakeDirRes
- type MoveRes
- type Quqi
- func (d *Quqi) Config() driver.Config
- func (d *Quqi) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *Quqi) Drop(ctx context.Context) error
- func (d *Quqi) GetAddition() driver.Additional
- func (d *Quqi) Init(ctx context.Context) error
- func (d *Quqi) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Quqi) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Quqi) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error)
- func (d *Quqi) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *Quqi) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) (model.Obj, error)
- func (d *Quqi) Remove(ctx context.Context, obj model.Obj) error
- func (d *Quqi) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error)
- type RemoveRes
- type RenameRes
- type TempKeyResp
- type UploadFinishResp
- type UploadInitResp
- type UrlExchangeResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct { driver.RootID Phone string `json:"phone"` Password string `json:"password"` Cookie string `json:"cookie" help:"Cookie can be used on multiple clients at the same time"` CDN bool `json:"cdn" help:"If you enable this option, the download speed can be increased, but there will be some performance loss"` }
type BaseReqQuery ¶
type BaseReqQuery struct {
ID string `json:"quqiid"`
}
type GetDownloadResp ¶
type ListFile ¶
type ListFile struct { ListItem BroadDocType string `json:"broad_doc_type"` CanDisplay bool `json:"can_display"` Detail string `json:"detail"` EXT string `json:"ext"` Filetype string `json:"filetype"` HasMobileThumbnail bool `json:"has_mobile_thumbnail"` HasThumbnail bool `json:"has_thumbnail"` Size int64 `json:"size"` Version int `json:"version"` }
type ListItem ¶
type ListItem struct { AddTime int64 `json:"add_time"` IsDir int `json:"is_dir"` IsExpand int `json:"is_expand"` IsFinalize int `json:"is_finalize"` LastEditorName string `json:"last_editor_name"` Name string `json:"name"` NodeID int64 `json:"nid"` ParentID int64 `json:"parent_id"` Permission int `json:"permission"` TreeID int64 `json:"tid"` UpdateCNT int64 `json:"update_cnt"` UpdateTime int64 `json:"update_time"` }
type MakeDirRes ¶
type Quqi ¶
type Quqi struct { model.Storage Addition Cookie string // Cookie GroupID string // 私人云群组ID ClientID string // 随机生成客户端ID 经过测试,部分接口调用若不携带client id会出现错误 }
func (*Quqi) GetAddition ¶
func (d *Quqi) GetAddition() driver.Additional
type TempKeyResp ¶
type TempKeyResp struct { Err int `json:"err"` Msg string `json:"msg"` Data struct { ExpiredTime int `json:"expiredTime"` Expiration string `json:"expiration"` Credentials struct { SessionToken string `json:"sessionToken"` TmpSecretID string `json:"tmpSecretId"` TmpSecretKey string `json:"tmpSecretKey"` } `json:"credentials"` RequestID string `json:"requestId"` StartTime int `json:"startTime"` } `json:"data"` }
type UploadFinishResp ¶
type UploadInitResp ¶
type UploadInitResp struct { Data struct { Bucket string `json:"bucket"` Exist bool `json:"exist"` Key string `json:"key"` TaskID string `json:"task_id"` Token string `json:"token"` UploadID string `json:"upload_id"` URL string `json:"url"` NodeID int64 `json:"node_id"` NodeName string `json:"node_name"` ParentID int64 `json:"parent_id"` } `json:"data"` Err int `json:"err"` Msg string `json:"msg"` }
type UrlExchangeResp ¶
type UrlExchangeResp struct { BaseRes Data struct { Name string `json:"name"` Mime string `json:"mime"` Size int64 `json:"size"` DownloadType int `json:"download_type"` ChannelType int `json:"channel_type"` ChannelID int `json:"channel_id"` Url string `json:"url"` ExpiredTime int64 `json:"expired_time"` IsEncrypted bool `json:"is_encrypted"` EncryptedSize int64 `json:"encrypted_size"` EncryptedAlg string `json:"encrypted_alg"` EncryptedKey string `json:"encrypted_key"` PassportID int64 `json:"passport_id"` RequestExpiredTime int64 `json:"request_expired_time"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.