Versions in this module Expand all Collapse all v0 v0.10.1 Jun 19, 2023 v0.10.0 Jun 19, 2023 Changes in this version + const StatusFailedDependency + const StatusInsufficientStorage + const StatusLocked + const StatusMulti + const StatusUnprocessableEntity + var ErrConfirmationFailed = errors.New("webdav: confirmation failed") + var ErrForbidden = errors.New("webdav: forbidden") + var ErrLocked = errors.New("webdav: locked") + var ErrNoSuchLock = errors.New("webdav: no such lock") + var ErrNotImplemented = errors.New("not implemented") + func StatusText(code int) string + type Condition struct + ETag string + Not bool + Token string + type ContentTyper interface + ContentType func(ctx context.Context) (string, error) + type DeadPropsHolder interface + DeadProps func() (map[xml.Name]Property, error) + Patch func([]Proppatch) ([]Propstat, error) + type Dir string + func (d Dir) Mkdir(ctx context.Context, name string, perm os.FileMode) error + func (d Dir) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (File, error) + func (d Dir) RemoveAll(ctx context.Context, name string) error + func (d Dir) Rename(ctx context.Context, oldName, newName string) error + func (d Dir) Stat(ctx context.Context, name string) (os.FileInfo, error) + type ETager interface + ETag func(ctx context.Context) (string, error) + type File interface + type FileSystem interface + Mkdir func(ctx context.Context, name string, perm os.FileMode) error + OpenFile func(ctx context.Context, name string, flag int, perm os.FileMode) (File, error) + RemoveAll func(ctx context.Context, name string) error + Rename func(ctx context.Context, oldName, newName string) error + Stat func(ctx context.Context, name string) (os.FileInfo, error) + func NewMemFS() FileSystem + type Handler struct + FileSystem FileSystem + LockSystem LockSystem + Logger func(*http.Request, error) + Prefix string + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type LockDetails struct + Duration time.Duration + OwnerXML string + Root string + ZeroDepth bool + type LockSystem interface + Confirm func(now time.Time, name0, name1 string, conditions ...Condition) (release func(), err error) + Create func(now time.Time, details LockDetails) (token string, err error) + Refresh func(now time.Time, token string, duration time.Duration) (LockDetails, error) + Unlock func(now time.Time, token string) error + func NewMemLS() LockSystem + type Property struct + InnerXML []byte + Lang string + XMLName xml.Name + type Proppatch struct + Props []Property + Remove bool + type Propstat struct + Props []Property + ResponseDescription string + Status int + XMLError string