ctrl

package
v0.2.2-0...-eaa9271 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FileCache  AppCache
	ZipTimeout int
)
View Source
var EmacsElConfig = ""

Functions

func AboutHandler

func AboutHandler(_ App, res http.ResponseWriter, _ *http.Request)

func AdminBackend

func AdminBackend(ctx App, res http.ResponseWriter, req *http.Request)

func AdminSessionAuthenticate

func AdminSessionAuthenticate(ctx App, res http.ResponseWriter, req *http.Request)

func AdminSessionGet

func AdminSessionGet(_ App, res http.ResponseWriter, req *http.Request)

func CustomCssHandler

func CustomCssHandler(_ App, res http.ResponseWriter, _ *http.Request)

func EmbedChangePathHandler

func EmbedChangePathHandler(root fs.FS, changePath string) func(App, http.ResponseWriter, *http.Request)

func EmbedHandler

func EmbedHandler(root fs.FS) func(App, http.ResponseWriter, *http.Request)

func FetchLogHandler

func FetchLogHandler(ctx App, res http.ResponseWriter, req *http.Request)

func FileAccess

func FileAccess(ctx App, res http.ResponseWriter, req *http.Request)

func FileCat

func FileCat(ctx App, res http.ResponseWriter, req *http.Request)

func FileDownloader

func FileDownloader(ctx App, res http.ResponseWriter, req *http.Request)

func FileExport

func FileExport(ctx App, res http.ResponseWriter, req *http.Request)

func FileLs

func FileLs(ctx App, res http.ResponseWriter, req *http.Request)

func FileMkdir

func FileMkdir(ctx App, res http.ResponseWriter, req *http.Request)

func FileMv

func FileMv(ctx App, res http.ResponseWriter, req *http.Request)

func FileRm

func FileRm(ctx App, res http.ResponseWriter, req *http.Request)

func FileSave

func FileSave(ctx App, res http.ResponseWriter, req *http.Request)

func FileSearch

func FileSearch(ctx App, res http.ResponseWriter, req *http.Request)

func FileTouch

func FileTouch(ctx App, res http.ResponseWriter, req *http.Request)

func HealthHandler

func HealthHandler(ctx App, res http.ResponseWriter, req *http.Request)

func IndexHandler

func IndexHandler(_path string) func(App, http.ResponseWriter, *http.Request)

func NotFoundHandler

func NotFoundHandler(_ App, res http.ResponseWriter, _ *http.Request)

func PathBuilder

func PathBuilder(ctx App, path string) (string, error)

func PrivateConfigHandler

func PrivateConfigHandler(ctx App, res http.ResponseWriter, req *http.Request)

func PrivateConfigUpdateHandler

func PrivateConfigUpdateHandler(ctx App, res http.ResponseWriter, req *http.Request)

func PublicConfigHandler

func PublicConfigHandler(ctx App, res http.ResponseWriter, req *http.Request)

func ReportHandler

func ReportHandler(ctx App, res http.ResponseWriter, req *http.Request)

func ServeFile

func ServeFile(res http.ResponseWriter, req *http.Request, filePath string)

func SessionAuthenticate

func SessionAuthenticate(ctx App, res http.ResponseWriter, req *http.Request)

func SessionGet

func SessionGet(ctx App, res http.ResponseWriter, req *http.Request)

func SessionLogout

func SessionLogout(ctx App, res http.ResponseWriter, req *http.Request)

func SessionOAuthBackend

func SessionOAuthBackend(ctx App, res http.ResponseWriter, req *http.Request)

func ShareDelete

func ShareDelete(ctx App, res http.ResponseWriter, req *http.Request)

func ShareList

func ShareList(ctx App, res http.ResponseWriter, req *http.Request)

func ShareUpsert

func ShareUpsert(ctx App, res http.ResponseWriter, req *http.Request)

func ShareVerifyProof

func ShareVerifyProof(ctx App, res http.ResponseWriter, req *http.Request)

func StaticHandler

func StaticHandler(_path string) func(App, http.ResponseWriter, *http.Request)

func WebdavBlacklist

func WebdavBlacklist(fn func(App, http.ResponseWriter, *http.Request)) func(ctx App, res http.ResponseWriter, req *http.Request)

* OSX ask for a lot of crap while mounting as a network drive. To avoid wasting resources with such * an imbecile and considering we can't even see the source code they are running, the best approach we * could go on is: "crap in, crap out" where useless request coming in are identified and answer appropriatly

func WebdavHandler

func WebdavHandler(ctx App, res http.ResponseWriter, req *http.Request)

func WellKnownSecurityHandler

func WellKnownSecurityHandler(ctx App, res http.ResponseWriter, req *http.Request)

Types

type FileInfo

type FileInfo struct {
	Name string `json:"name"`
	Type string `json:"type"`
	Size int64  `json:"size"`
	Time int64  `json:"time"`
}

type Session

type Session struct {
	Home   *string `json:"home,omitempty"`
	IsAuth bool    `json:"is_authenticated"`
}

Jump to

Keyboard shortcuts

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