Documentation ¶
Index ¶
- type Addition
- type File
- func (f File) CreateTime() time.Time
- func (f File) GetHash() utils.HashInfo
- func (f File) GetID() string
- func (f File) GetName() string
- func (f File) GetPath() string
- func (f File) GetSize() int64
- func (f File) IsDir() bool
- func (f File) ModTime() time.Time
- func (f File) Thumb() string
- func (f *File) UnmarshalJSON(data []byte) error
- type Files
- type LenovoNasShare
- func (d *LenovoNasShare) Config() driver.Config
- func (d *LenovoNasShare) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *LenovoNasShare) Drop(ctx context.Context) error
- func (d *LenovoNasShare) GetAddition() driver.Additional
- func (d *LenovoNasShare) Init(ctx context.Context) error
- func (d *LenovoNasShare) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *LenovoNasShare) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *LenovoNasShare) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error)
- func (d *LenovoNasShare) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *LenovoNasShare) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) (model.Obj, error)
- func (d *LenovoNasShare) Remove(ctx context.Context, obj model.Obj) error
- func (d *LenovoNasShare) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { FileName string `json:"name"` Size int64 `json:"size"` CreateAt time.Time `json:"time"` UpdateAt time.Time `json:"chtime"` Path string `json:"path"` Type string `json:"type"` }
func (File) CreateTime ¶
func (*File) UnmarshalJSON ¶
type LenovoNasShare ¶
type LenovoNasShare struct { // contains filtered or unexported fields }
func (*LenovoNasShare) Config ¶
func (d *LenovoNasShare) Config() driver.Config
func (*LenovoNasShare) GetAddition ¶
func (d *LenovoNasShare) GetAddition() driver.Additional
func (*LenovoNasShare) Put ¶
func (d *LenovoNasShare) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, up driver.UpdateProgress) (model.Obj, error)
Click to show internal directories.
Click to hide internal directories.