ctrl

package
v0.0.0-...-612c5e9 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FileCache  AppCache
	ZipTimeout func() int
)
View Source
var (
	WWWDir fs.FS
	//go:embed static/www
	WWWEmbed embed.FS

	//go:embed static/404.html
	HtmlPage404 []byte
)
View Source
var EmacsElConfig string = ""

Functions

func AboutHandler

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

func AdminAuthenticationMiddleware

func AdminAuthenticationMiddleware(ctx *App, res http.ResponseWriter, req *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(ctx *App, res http.ResponseWriter, req *http.Request)

func CustomCssHandler

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

func DocPage

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

func FetchAuditHandler

func FetchAuditHandler(ctx *App, res http.ResponseWriter, req *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 FileExtract

func FileExtract(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 InitPluginList

func InitPluginList(code []byte)

func LegacyIndexHandler

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

func LegacyServeFile

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

func LegacyStaticHandler

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

func ManifestHandler

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

func NotFoundHandler

func NotFoundHandler(ctx *App, res http.ResponseWriter, req *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 RobotsHandler

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

func ServeBackofficeHandler

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

func ServeFile

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

func ServeFrontofficeHandler

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

func SessionAuthMiddleware

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

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 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"`
	Backend       string  `json:"backendID"`
	Authorization string  `json:"authorization,omitempty"`
}

Jump to

Keyboard shortcuts

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