webdavaug

package
v0.0.0-...-12912d6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ZipServer

func ZipServer(root string) http.Handler

ZipServer serve the content of a directory as streamed zip file

Types

type WebdavAug

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

WebdavAug represents an augmented webdav which : - is secured with basic auth or json web tokens (JWT) - enable download of directories as streamed zip files

func New

func New(prefix string, directory string, allowedRoles []string, canWrite bool, basicAuth bool) WebdavAug

New create an initialized WebdavAug instance

func (WebdavAug) ServeHTTP

func (wdaug WebdavAug) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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