Documentation
¶
Index ¶
- type Addition
- type AuthTokenResp
- type LibraryInfo
- type LibraryItemResp
- type RepoDirItemResp
- type RepoItemResp
- 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) 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
}
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 RepoDirItemResp ¶
type RepoDirItemResp struct {
RepoItemResp
}
type RepoItemResp ¶
type Seafile ¶
func (*Seafile) GetAddition ¶
func (d *Seafile) GetAddition() driver.Additional
Click to show internal directories.
Click to hide internal directories.