filemanager

package module
v0.0.0-...-7057679 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

README

filemanager - a caddy plugin

Build community Documentation Go Report Card

This package is a plugin for Caddy server that provides an online file manager (based on browse middleware) that is able to: rename files, delete files and upload files. Some new features that can be implemented in the future can be seen at issues.

Syntax
filemanager url {
  show              path
  webdav            [path]
  styles            filepath
  frontmatter       type
  allow_new         [true|false]
  allow_edit        [true|false]
  allow_commands    [true|false]
  allow_command     command
  block_command     command
  allow             [path|dotfiles]
  allow_r           path regex
  block             [path|dotfiles]
  block_r           path regex
}

NOTE FOR DEVELOPERS

You need to run go generate on $GOPATH/src/github.com/hacdias/caddy-filemanager before building any binary. Otherwise, you will receive an undefined: Asset error.

Documentation

Overview

Package filemanager provides middleware for managing files in a directory when directory path is requested instead of a specific file. Based on browse middleware.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileManager

type FileManager struct {
	Next    httpserver.Handler
	Configs []config.Config
}

FileManager is an http.Handler that can show a file listing when directories in the given paths are specified.

func (FileManager) ServeHTTP

func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)

ServeHTTP determines if the request is for this plugin, and if all prerequisites are met.

Directories

Path Synopsis
Package page is used to render the HTML to the end user
Package page is used to render the HTML to the end user
utils

Jump to

Keyboard shortcuts

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