webdav

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWebDAVServer

func NewWebDAVServer(fs fs.Filesystem, port int, user, pass string) error

Types

type WebDAV

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

func (*WebDAV) Mkdir

func (wd *WebDAV) Mkdir(ctx context.Context, name string, perm os.FileMode) error

func (*WebDAV) OpenFile

func (wd *WebDAV) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error)

func (*WebDAV) RemoveAll

func (wd *WebDAV) RemoveAll(ctx context.Context, name string) error

func (*WebDAV) Rename

func (wd *WebDAV) Rename(ctx context.Context, oldName, newName string) error

func (*WebDAV) Stat

func (wd *WebDAV) Stat(ctx context.Context, name string) (os.FileInfo, error)

Jump to

Keyboard shortcuts

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