Documentation ¶
Index ¶
- type Addition
- type AliyundriveOpen
- func (d *AliyundriveOpen) Config() driver.Config
- func (d *AliyundriveOpen) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *AliyundriveOpen) Drop(ctx context.Context) error
- func (d *AliyundriveOpen) GetAddition() driver.Additional
- func (d *AliyundriveOpen) Init(ctx context.Context) error
- func (d *AliyundriveOpen) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *AliyundriveOpen) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *AliyundriveOpen) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *AliyundriveOpen) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *AliyundriveOpen) Other(ctx context.Context, args model.OtherArgs) (interface{}, error)
- func (d *AliyundriveOpen) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *AliyundriveOpen) Remove(ctx context.Context, obj model.Obj) error
- func (d *AliyundriveOpen) Rename(ctx context.Context, srcObj model.Obj, newName string) error
- type CreateResp
- type ErrResp
- type File
- type Files
- type PartInfo
- type ProofRange
Constants ¶
This section is empty.
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"` OrderBy string `json:"order_by" type:"select" options:"name,size,updated_at,created_at"` OrderDirection string `json:"order_direction" type:"select" options:"ASC,DESC"` OauthTokenURL string `json:"oauth_token_url" default:"https://api.xhofe.top/alist/ali_open/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"` RemoveWay string `json:"remove_way" required:"true" type:"select" options:"trash,delete"` RapidUpload bool `` /* 134-byte string literal not displayed */ InternalUpload bool `json:"internal_upload" help:"If you are using Aliyun ECS is located in Beijing, you can turn it on to boost the upload speed"` AccessToken string }
type AliyundriveOpen ¶
type AliyundriveOpen struct { model.Storage Addition DriveId string // contains filtered or unexported fields }
func (*AliyundriveOpen) Config ¶
func (d *AliyundriveOpen) Config() driver.Config
func (*AliyundriveOpen) GetAddition ¶
func (d *AliyundriveOpen) GetAddition() driver.Additional
func (*AliyundriveOpen) Put ¶
func (d *AliyundriveOpen) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, up driver.UpdateProgress) error
type CreateResp ¶
type CreateResp struct { //Type string `json:"type"` //ParentFileId string `json:"parent_file_id"` //DriveId string `json:"drive_id"` FileId string `json:"file_id"` //RevisionId string `json:"revision_id"` //EncryptMode string `json:"encrypt_mode"` //DomainId string `json:"domain_id"` //FileName string `json:"file_name"` UploadId string `json:"upload_id"` //Location string `json:"location"` RapidUpload bool `json:"rapid_upload"` PartInfoList []PartInfo `json:"part_info_list"` }
type File ¶
type File struct { DriveId string `json:"drive_id"` FileId string `json:"file_id"` ParentFileId string `json:"parent_file_id"` Name string `json:"name"` Size int64 `json:"size"` FileExtension string `json:"file_extension"` ContentHash string `json:"content_hash"` Category string `json:"category"` Type string `json:"type"` Thumbnail string `json:"thumbnail"` Url string `json:"url"` CreatedAt *time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type ProofRange ¶ added in v3.22.0
Click to show internal directories.
Click to hide internal directories.