webdav

package
v0.0.0-...-f4650a3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opt *Option) (cloudfs.FS, error)

Types

type Option

type Option struct {
	Endpoint string      `json:"endpoint"  validate:"required"`
	Username string      `json:"username"  validate:"required"`
	Password string      `json:"password"  validate:"required"`
	DirPerm  os.FileMode `json:"dir_perm"`
}

func (*Option) NewFS

func (opt *Option) NewFS() (cloudfs.FS, error)

type Webdav

type Webdav struct {
	cloudfs.BaseFS
	// contains filtered or unexported fields
}

func (*Webdav) Close

func (d *Webdav) Close() error

func (*Webdav) Copy

func (d *Webdav) Copy(ctx context.Context, src, dst string) error

func (*Webdav) Create

func (d *Webdav) Create(ctx context.Context, path string) (cloudfs.FileWriter, error)

func (*Webdav) List

func (d *Webdav) List(ctx context.Context, path string) ([]cloudfs.FileInfo, error)

func (*Webdav) MakeDir

func (d *Webdav) MakeDir(ctx context.Context, path string) error

func (*Webdav) Move

func (d *Webdav) Move(ctx context.Context, src, dst string) error

func (*Webdav) Open

func (d *Webdav) Open(ctx context.Context, path string) (cloudfs.File, error)

func (*Webdav) Remove

func (d *Webdav) Remove(ctx context.Context, path string) error

func (*Webdav) Rename

func (d *Webdav) Rename(ctx context.Context, path, newName string) error

func (*Webdav) Stat

func (d *Webdav) Stat(ctx context.Context, path string) (cloudfs.FileInfo, error)

Jump to

Keyboard shortcuts

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