seafile

package
v3.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: AGPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

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 added in v3.33.0

type LibraryInfo struct {
	LibraryItemResp
	// contains filtered or unexported fields
}

type LibraryItemResp added in v3.33.0

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 added in v3.33.0

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"`
}

type Seafile

type Seafile struct {
	model.Storage
	Addition
	// contains filtered or unexported fields
}

func (*Seafile) Config

func (d *Seafile) Config() driver.Config

func (*Seafile) Copy

func (d *Seafile) Copy(ctx context.Context, srcObj, dstDir model.Obj) error

func (*Seafile) Drop

func (d *Seafile) Drop(ctx context.Context) error

func (*Seafile) GetAddition

func (d *Seafile) GetAddition() driver.Additional

func (*Seafile) Init

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 (*Seafile) List

func (d *Seafile) List(ctx context.Context, dir model.Obj, args model.ListArgs) (result []model.Obj, err error)

func (*Seafile) MakeDir

func (d *Seafile) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error

func (*Seafile) Move

func (d *Seafile) Move(ctx context.Context, srcObj, dstDir model.Obj) error

func (*Seafile) Put

func (d *Seafile) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, up driver.UpdateProgress) error

func (*Seafile) Remove

func (d *Seafile) Remove(ctx context.Context, obj model.Obj) error

func (*Seafile) Rename

func (d *Seafile) Rename(ctx context.Context, srcObj model.Obj, newName string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL