Documentation ¶
Index ¶
- Constants
- type Addition
- 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) GetInfo(ctx context.Context) (string, string, string, error)
- func (d *Dropbox) GetUserInfo(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 Error
- type File
- type Files
- type TokenError
- type UserInfo
Constants ¶
View Source
const ICONURL = "./img/driver/Dropbox.svg"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct { driver.RootID RefreshToken string `json:"refresh_token" required:"true" omit:"true"` AppKey string `json:"app_key" type:"string" default:"tciqajyazzdygt9" omit:"true"` AppSecret string `json:"app_secret" type:"string" default:"e7gtmv441cwdf0n" omit:"true"` OrderDirection string `json:"order_direction" type:"select" options:"asc,desc" omit:"true"` AuthUrl string `json:"auth_url" type:"string" default:""` Icon string `json:"icon" type:"string" default:"./img/driver/Dropbox.svg"` Code string `json:"code" type:"string" help:"code from auth_url" omit:"true"` }
type Dropbox ¶
func (*Dropbox) GetAddition ¶
func (d *Dropbox) GetAddition() driver.Additional
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,omitempty"` ServerModified time.Time `json:"server_modified,omitempty"` Rev string `json:"rev,omitempty"` Size int `json:"size,omitempty"` IsDownloadable bool `json:"is_downloadable,omitempty"` ContentHash string `json:"content_hash,omitempty"` }
type TokenError ¶
type UserInfo ¶
type UserInfo struct { AccountID string `json:"account_id"` Name struct { GivenName string `json:"given_name"` Surname string `json:"surname"` FamiliarName string `json:"familiar_name"` DisplayName string `json:"display_name"` AbbreviatedName string `json:"abbreviated_name"` } `json:"name"` Email string `json:"email"` EmailVerified bool `json:"email_verified"` Disabled bool `json:"disabled"` Country string `json:"country"` Locale string `json:"locale"` ReferralLink string `json:"referral_link"` IsPaired bool `json:"is_paired"` AccountType struct { Tag string `json:".tag"` } `json:"account_type"` RootInfo struct { Tag string `json:".tag"` RootNamespaceID string `json:"root_namespace_id"` HomeNamespaceID string `json:"home_namespace_id"` } `json:"root_info"` }
Click to show internal directories.
Click to hide internal directories.