seafile

package
v3.22.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: AGPL-3.0 Imports: 12 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:"true"`
	Password string `json:"password" required:"true"`
	RepoId   string `json:"repoId" required:"true"`
}

type AuthTokenResp

type AuthTokenResp struct {
	Token string `json:"token"`
}

type RepoDirItemResp

type RepoDirItemResp struct {
	Id         string `json:"id"`
	Type       string `json:"type"` // 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) ([]model.Obj, 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