Documentation
¶
Index ¶
- type Addition
- type AuthTokenResp
- type LibraryInfo
- type LibraryItemResp
- type RepoItemResp
- func (l *RepoItemResp) CreateTime() time.Time
- func (l *RepoItemResp) GetHash() utils.HashInfo
- func (l *RepoItemResp) GetID() string
- func (l *RepoItemResp) GetName() string
- func (l *RepoItemResp) GetPath() string
- func (l *RepoItemResp) GetSize() int64
- func (l *RepoItemResp) IsDir() bool
- func (l *RepoItemResp) ModTime() time.Time
- type Seafile
- func (d *Seafile) Config() driver.Config
- func (d *Seafile) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Seafile) Drop(ctx context.Context) error
- func (d *Seafile) GetAddition() driver.Additional
- func (d *Seafile) GetRoot(ctx context.Context) (model.Obj, error)
- func (d *Seafile) Init(ctx context.Context) error
- func (d *Seafile) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Seafile) List(ctx context.Context, dir model.Obj, args model.ListArgs) (result []model.Obj, err error)
- func (d *Seafile) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *Seafile) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Seafile) Put(ctx context.Context, dstDir model.Obj, s model.FileStreamer, ...) error
- func (d *Seafile) Remove(ctx context.Context, obj model.Obj) error
- func (d *Seafile) Rename(ctx context.Context, srcObj model.Obj, newName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct {
driver.RootPath
Address string `json:"address" required:"true"`
UserName string `json:"username" required:"false"`
Password string `json:"password" required:"false"`
Token string `json:"token" required:"false"`
RepoId string `json:"repoId" required:"false"`
RepoPwd string `json:"repoPwd" required:"false"`
}
type AuthTokenResp ¶
type AuthTokenResp struct {
Token string `json:"token"`
}
type LibraryInfo ¶
type LibraryInfo struct {
LibraryItemResp
// contains filtered or unexported fields
}
func (*LibraryInfo) IsDir ¶ added in v4.1.10
func (l *LibraryInfo) IsDir() bool
type LibraryItemResp ¶
type LibraryItemResp struct {
RepoItemResp
OwnerContactEmail string `json:"owner_contact_email"`
OwnerName string `json:"owner_name"`
Owner string `json:"owner"`
ModifierEmail string `json:"modifier_email"`
ModifierContactEmail string `json:"modifier_contact_email"`
ModifierName string `json:"modifier_name"`
Virtual bool `json:"virtual"`
MtimeRelative string `json:"mtime_relative"`
Encrypted bool `json:"encrypted"`
Version int `json:"version"`
HeadCommitId string `json:"head_commit_id"`
Root string `json:"root"`
Salt string `json:"salt"`
SizeFormatted string `json:"size_formatted"`
}
type RepoItemResp ¶
type RepoItemResp struct {
Id string `json:"id"`
Type string `json:"type"` // repo, dir, file
Name string `json:"name"`
Size int64 `json:"size"`
Modified int64 `json:"mtime"`
Permission string `json:"permission"`
model.ObjMask
// contains filtered or unexported fields
}
func (*RepoItemResp) CreateTime ¶ added in v4.1.10
func (l *RepoItemResp) CreateTime() time.Time
func (*RepoItemResp) GetHash ¶ added in v4.1.10
func (l *RepoItemResp) GetHash() utils.HashInfo
func (*RepoItemResp) GetID ¶ added in v4.1.10
func (l *RepoItemResp) GetID() string
func (*RepoItemResp) GetName ¶ added in v4.1.10
func (l *RepoItemResp) GetName() string
func (*RepoItemResp) GetPath ¶ added in v4.1.10
func (l *RepoItemResp) GetPath() string
func (*RepoItemResp) GetSize ¶ added in v4.1.10
func (l *RepoItemResp) GetSize() int64
func (*RepoItemResp) IsDir ¶ added in v4.1.10
func (l *RepoItemResp) IsDir() bool
func (*RepoItemResp) ModTime ¶ added in v4.1.10
func (l *RepoItemResp) ModTime() time.Time
type Seafile ¶
func (*Seafile) GetAddition ¶
func (d *Seafile) GetAddition() driver.Additional
Click to show internal directories.
Click to hide internal directories.