webdav

package
v0.6.0-beta Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir struct {
	// contains filtered or unexported fields
}

func (*Dir) Close

func (d *Dir) Close() error

func (*Dir) Read

func (d *Dir) Read(p []byte) (int, error)

func (*Dir) Readdir

func (d *Dir) Readdir(count int) ([]fs.FileInfo, error)

func (*Dir) Seek

func (d *Dir) Seek(offset int64, whence int) (int64, error)

func (*Dir) Stat

func (d *Dir) Stat() (fs.FileInfo, error)

func (*Dir) Write

func (d *Dir) Write(p []byte) (int, error)

type File

type File struct {
	// contains filtered or unexported fields
}

func (*File) Close

func (f *File) Close() error

func (*File) Read

func (f *File) Read(p []byte) (n int, err error)

func (*File) Readdir

func (f *File) Readdir(count int) ([]fs.FileInfo, error)

func (*File) Seek

func (f *File) Seek(offset int64, whence int) (int64, error)

func (*File) Stat

func (f *File) Stat() (fs.FileInfo, error)

func (*File) Write

func (f *File) Write(p []byte) (n int, err error)

type FsOperator

type FsOperator struct {
	// contains filtered or unexported fields
}

func (FsOperator) Mkdir

func (o FsOperator) Mkdir(ctx context.Context, name string, perm os.FileMode) error

func (FsOperator) OpenFile

func (o FsOperator) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error)

func (FsOperator) RemoveAll

func (o FsOperator) RemoveAll(ctx context.Context, name string) error

func (FsOperator) Rename

func (o FsOperator) Rename(ctx context.Context, oldName, newName string) error

func (FsOperator) Stat

func (o FsOperator) Stat(ctx context.Context, name string) (os.FileInfo, error)

type Info

type Info struct {
	// contains filtered or unexported fields
}

func Stat

func Stat(entry *types.Metadata) Info

func (Info) IsDir

func (i Info) IsDir() bool

func (Info) ModTime

func (i Info) ModTime() time.Time

func (Info) Mode

func (i Info) Mode() fs.FileMode

func (Info) Name

func (i Info) Name() string

func (Info) Size

func (i Info) Size() int64

func (Info) Sys

func (i Info) Sys() any

type Webdav

type Webdav struct {
	// contains filtered or unexported fields
}

func NewWebdavServer

func NewWebdavServer(mgr *pathmgr.PathManager, cfg config.Loader) (*Webdav, error)

func (*Webdav) Run

func (w *Webdav) Run(stopCh chan struct{})

Jump to

Keyboard shortcuts

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