filemanager

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

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

Go to latest
Published: Aug 11, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

README

filemanager - a caddy plugin

Build community Documentation

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.

filemanager {
  show          path
  on            url
  styles        filepath
  frontmatter   type
}

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
utils

Jump to

Keyboard shortcuts

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