admin

package
v0.0.0-...-79aaa6a Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdminPages = []Page{
	{"status", "Status", "Display and change site status", newStatusHandler()},
	{"settings", "Settings", "Edit site settings", nil},
	{"acme", "Acme", "Administrate certificates", nil},
	{"tasks", "Tasks", "Administrate scheduled tasks", nil},
	{"nodes", "Nodes", "Administrate site nodes", newNodesHandler()},
	{"objects", "Objects", "Administrate object stores", newObjectHandler()},
	{"files", "Files", "Administrate file stores", nil},
	{"users", "Users", "Administrates users", nil},
	{"roles", "Roles", "Define & manage user roles", nil},
	{"logs", "Logs", "Display log files content", nil},
	{"docs", "Docs", "View documentation & help", nil},
	{"tests", "Tests", "Perform tests & experiments", nil},
}

AdminPages ...

Functions

This section is empty.

Types

type FS

type FS struct {
	// contains filtered or unexported fields
}

FS ...

func NewFS

func NewFS() *FS

NewFS ...

type FileInfo

type FileInfo struct {
	Name string
	Size string
	Time string
}

FileInfo ...

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler ...

func NewHandler

func NewHandler() (*Handler, error)

NewHandler ...

func (*Handler) HandleNodeRequest

func (a *Handler) HandleNodeRequest(ctx *fasthttp.RequestCtx, method string, path string) (ok bool, err error)

HandleNodeRequest ...

type ObjectsDot

type ObjectsDot struct {
	Tag  string
	View string
	Data map[string]interface{}
}

ObjectsDot ...

type Page

type Page struct {
	Path        string
	Title       string
	Description string
	// contains filtered or unexported fields
}

Page ...

type ResEntry

type ResEntry struct {
	Dir  bool
	Name string
	Size string
	Path string
	Time string
}

ResEntry ...

Jump to

Keyboard shortcuts

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