Versions in this module Expand all Collapse all v0 v0.0.1 Nov 28, 2024 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 ETager interface + ETag func(ctx context.Context) (string, error) + type Handler struct + 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