Documentation ¶
Index ¶
- Constants
- Variables
- func Dav(c *gctx.Context, handler *webdav.Handler)
- func DavMiddle() macaron.Handler
- func Logger(req *http.Request, err error)
- func Webdav401(c *gctx.Context)
- type GinFS
- func (fs *GinFS) Mkdir(ctx context.Context, name string, perm os.FileMode) error
- func (fs *GinFS) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error)
- func (fs *GinFS) RemoveAll(ctx context.Context, name string) error
- func (fs *GinFS) Rename(ctx context.Context, oldName, newName string) error
- func (fs *GinFS) Stat(ctx context.Context, name string) (os.FileInfo, error)
- type GinFile
- type GinFinfo
Constants ¶
View Source
const ANNEXPEEKSIZE = 1024
Variables ¶
View Source
var ( RE_GETRNAME = regexp.MustCompile(`.+\/(.+)\/_dav`) RE_GETROWN = regexp.MustCompile(`\/(.+)\/.+\/_dav`) RE_GETFPATH = regexp.MustCompile("/_dav/(.+)") )
Functions ¶
Types ¶
type GinFS ¶
type GinFS struct {
BasePath string
}
GinFS implements webdav (it implements webdav.Habdler) read only access to a repository
func (*GinFS) OpenFile ¶
func (fs *GinFS) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error)
OpenFile returns a named file from the repository
Click to show internal directories.
Click to hide internal directories.