Documentation
¶
Index ¶
- type Addition
- type MFile
- type MFolder
- type Misskey
- func (d *Misskey) Config() driver.Config
- func (d *Misskey) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *Misskey) Drop(ctx context.Context) error
- func (d *Misskey) GetAddition() driver.Additional
- func (d *Misskey) Init(ctx context.Context) error
- func (d *Misskey) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Misskey) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Misskey) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error)
- func (d *Misskey) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *Misskey) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) (model.Obj, error)
- func (d *Misskey) Remove(ctx context.Context, obj model.Obj) error
- func (d *Misskey) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error)
- type Properties
- type Resp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct { // Usually one of two driver.RootPath // define other // Field string `json:"field" type:"select" required:"true" options:"a,b,c" default:"a"` Endpoint string `json:"endpoint" required:"true" default:"https://misskey.io"` AccessToken string `json:"access_token" required:"true"` }
type MFile ¶
type MFile struct { ID string `json:"id"` CreatedAt string `json:"createdAt"` Name string `json:"name"` Type string `json:"type"` MD5 string `json:"md5"` Size int64 `json:"size"` IsSensitive bool `json:"isSensitive"` Blurhash string `json:"blurhash"` Properties Properties `json:"properties"` URL string `json:"url"` ThumbnailURL string `json:"thumbnailUrl"` Comment *string `json:"comment"` FolderID *string `json:"folderId"` Folder MFolder `json:"folder"` }
type Misskey ¶
func (*Misskey) GetAddition ¶
func (d *Misskey) GetAddition() driver.Additional
type Properties ¶
Click to show internal directories.
Click to hide internal directories.