Documentation
¶
Index ¶
- Constants
- type Addition
- type CurrentAccountResp
- type Dropbox
- func (d *Dropbox) Config() driver.Config
- func (d *Dropbox) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Dropbox) Drop(ctx context.Context) error
- func (d *Dropbox) GetAddition() driver.Additional
- func (d *Dropbox) GetRootNamespaceId(ctx context.Context) (string, error)
- func (d *Dropbox) Init(ctx context.Context) error
- func (d *Dropbox) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Dropbox) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Dropbox) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *Dropbox) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Dropbox) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *Dropbox) Remove(ctx context.Context, obj model.Obj) error
- func (d *Dropbox) Rename(ctx context.Context, srcObj model.Obj, newName string) error
- type ErrorResp
- type File
- type ListResp
- type RefreshTokenErrorResp
- type TokenResp
- type UploadAppendArgs
- type UploadCursor
- type UploadFinishArgs
Constants ¶
View Source
const (
DefaultClientID = "76lrwrklhdn1icb"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct {
RefreshToken string `json:"refresh_token" required:"true"`
driver.RootPath
OauthTokenURL string `json:"oauth_token_url" default:"https://api.xhofe.top/alist/dropbox/token"`
ClientID string `json:"client_id" required:"false" help:"Keep it empty if you don't have one"`
ClientSecret string `json:"client_secret" required:"false" help:"Keep it empty if you don't have one"`
AccessToken string
RootNamespaceId string
}
type CurrentAccountResp ¶ added in v3.31.0
type Dropbox ¶
func (*Dropbox) GetAddition ¶
func (d *Dropbox) GetAddition() driver.Additional
func (*Dropbox) GetRootNamespaceId ¶ added in v3.31.0
type File ¶
type File struct {
Tag string `json:".tag"`
Name string `json:"name"`
PathLower string `json:"path_lower"`
PathDisplay string `json:"path_display"`
ID string `json:"id"`
ClientModified time.Time `json:"client_modified"`
ServerModified time.Time `json:"server_modified"`
Rev string `json:"rev"`
Size int `json:"size"`
IsDownloadable bool `json:"is_downloadable"`
ContentHash string `json:"content_hash"`
}
type RefreshTokenErrorResp ¶
type UploadAppendArgs ¶
type UploadAppendArgs struct {
Close bool `json:"close"`
Cursor UploadCursor `json:"cursor"`
}
type UploadCursor ¶
type UploadFinishArgs ¶
Click to show internal directories.
Click to hide internal directories.