Documentation
¶
Index ¶
- type VFSAdapter
- func (a *VFSAdapter) Mkdir(ctx context.Context, name string, perm os.FileMode) error
- func (a *VFSAdapter) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error)
- func (a *VFSAdapter) RemoveAll(ctx context.Context, name string) error
- func (a *VFSAdapter) Rename(ctx context.Context, oldName, newName string) error
- func (a *VFSAdapter) Stat(ctx context.Context, name string) (os.FileInfo, error)
- type WebDAVServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VFSAdapter ¶
type VFSAdapter struct {
// contains filtered or unexported fields
}
VFSAdapter adapts a VFS implementation to the webdav.FileSystem interface
func NewVFSAdapter ¶
func NewVFSAdapter(vfsImpl vfs.VFSImplementation) *VFSAdapter
NewVFSAdapter creates a new VFS adapter for WebDAV
func (*VFSAdapter) OpenFile ¶
func (a *VFSAdapter) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error)
OpenFile opens a file or directory
func (*VFSAdapter) RemoveAll ¶
func (a *VFSAdapter) RemoveAll(ctx context.Context, name string) error
RemoveAll removes a file or directory and any children it contains
type WebDAVServer ¶
type WebDAVServer struct {
// contains filtered or unexported fields
}
WebDAVServer represents a WebDAV server that uses a VFS implementation
func NewWebDAVServer ¶
func NewWebDAVServer(vfsImpl vfs.VFSImplementation, addr string) *WebDAVServer
NewWebDAVServer creates a new WebDAV server using the given VFS implementation
func (*WebDAVServer) Handler ¶
func (s *WebDAVServer) Handler() http.Handler
Handler returns the HTTP handler for the WebDAV server
Click to show internal directories.
Click to hide internal directories.