webdav

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(addr string, client pkg.Drive)

Types

type CloudFileSystem

type CloudFileSystem struct {
	Prefix string
	// contains filtered or unexported fields
}

func (*CloudFileSystem) Mkdir

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

func (*CloudFileSystem) OpenFile

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

func (*CloudFileSystem) RemoveAll

func (f *CloudFileSystem) RemoveAll(ctx context.Context, name string) error

func (*CloudFileSystem) Rename

func (f *CloudFileSystem) Rename(ctx context.Context, oldName, newName string) error

func (*CloudFileSystem) ServeHTTP added in v0.6.0

func (h *CloudFileSystem) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*CloudFileSystem) Stat

func (f *CloudFileSystem) 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