Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AvatarsHandler ¶
type AvatarsHandler struct { }
AvatarsHandler handles avatar requests
func (*AvatarsHandler) Handler ¶
func (h *AvatarsHandler) Handler(s *svc) http.Handler
Handler handles requests
type Config ¶
type Config struct { Prefix string `mapstructure:"prefix"` // FilesNamespace prefixes the namespace, optionally with user information. // Example: if FilesNamespace is /users/{{substr 0 1 .Username}}/{{.Username}} // and received path is /docs the internal path will be: // /users/<first char of username>/<username>/docs FilesNamespace string `mapstructure:"files_namespace"` // WebdavNamespace prefixes the namespace, optionally with user information. // Example: if WebdavNamespace is /users/{{substr 0 1 .Username}}/{{.Username}} // and received path is /docs the internal path will be: // /users/<first char of username>/<username>/docs WebdavNamespace string `mapstructure:"webdav_namespace"` ChunkFolder string `mapstructure:"chunk_folder"` GatewaySvc string `mapstructure:"gatewaysvc"` Timeout int64 `mapstructure:"timeout"` Insecure bool `mapstructure:"insecure"` DisableTus bool `mapstructure:"disable_tus"` }
Config holds the config options that need to be passed down to all ocdav handlers
type DavHandler ¶
type DavHandler struct { AvatarsHandler *AvatarsHandler FilesHandler *WebDavHandler MetaHandler *MetaHandler TrashbinHandler *TrashbinHandler PublicFolderHandler *WebDavHandler PublicFileHandler *PublicFileHandler }
DavHandler routes to the different sub handlers
func (*DavHandler) Handler ¶
func (h *DavHandler) Handler(s *svc) http.Handler
Handler handles requests
type MetaHandler ¶
type MetaHandler struct {
VersionsHandler *VersionsHandler
}
MetaHandler handles meta requests
func (*MetaHandler) Handler ¶
func (h *MetaHandler) Handler(s *svc) http.Handler
Handler handles requests
type Proppatch ¶
type Proppatch struct { // Remove specifies whether this patch removes properties. If it does not // remove them, it sets them. Remove bool // Props contains the properties to be set or removed. Props []propertyXML }
Proppatch describes a property update instruction as defined in RFC 4918. See http://www.webdav.org/specs/rfc4918.html#METHOD_PROPPATCH
type PublicFileHandler ¶ added in v0.0.2
type PublicFileHandler struct {
// contains filtered or unexported fields
}
PublicFileHandler handles trashbin requests
func (*PublicFileHandler) Handler ¶ added in v0.0.2
func (h *PublicFileHandler) Handler(s *svc) http.Handler
Handler handles requests
type TrashbinHandler ¶
type TrashbinHandler struct {
// contains filtered or unexported fields
}
TrashbinHandler handles trashbin requests
func (*TrashbinHandler) Handler ¶
func (h *TrashbinHandler) Handler(s *svc) http.Handler
Handler handles requests
type VersionsHandler ¶
type VersionsHandler struct { }
VersionsHandler handles version requests
func (*VersionsHandler) Handler ¶
func (h *VersionsHandler) Handler(s *svc, rid *provider.ResourceId) http.Handler
Handler handles requests versions can be listed with a PROPFIND to /remote.php/dav/meta/<fileid>/v a version is identified by a timestamp, eg. /remote.php/dav/meta/<fileid>/v/1561410426
type WebDavHandler ¶
type WebDavHandler struct {
// contains filtered or unexported fields
}
WebDavHandler implements a dav endpoint
func (*WebDavHandler) Handler ¶
func (h *WebDavHandler) Handler(s *svc) http.Handler
Handler handles requests