Documentation ¶
Index ¶
- func GetPluginsPageJS(data PluginsPageJSData) template.JS
- type Config
- type Handler
- func (h *Handler) AddNavButton(btns *types.Buttons)
- func (h *Handler) AddOperation(nodes ...context.Node)
- func (h *Handler) ApiCreate(ctx *context.Context)
- func (h *Handler) ApiCreateForm(ctx *context.Context)
- func (h *Handler) ApiDetail(ctx *context.Context)
- func (h *Handler) ApiList(ctx *context.Context)
- func (h *Handler) ApiUpdate(ctx *context.Context)
- func (h *Handler) ApiUpdateForm(ctx *context.Context)
- func (h *Handler) Assets(ctx *context.Context)
- func (h *Handler) Auth(ctx *context.Context)
- func (h *Handler) CheckDatabase(ctx *context.Context)
- func (h *Handler) Delete(ctx *context.Context)
- func (h *Handler) DeleteMenu(ctx *context.Context)
- func (h *Handler) EditForm(ctx *context.Context)
- func (h *Handler) EditMenu(ctx *context.Context)
- func (h *Handler) Execute(ctx *context.Context, user models.UserModel, panel types.Panel, ...) *bytes.Buffer
- func (h *Handler) ExecuteWithBtns(ctx *context.Context, user models.UserModel, panel types.Panel, ...) *bytes.Buffer
- func (h *Handler) Export(ctx *context.Context)
- func (h *Handler) GlobalDeferHandler(ctx *context.Context)
- func (h *Handler) HTML(ctx *context.Context, user models.UserModel, panel types.Panel, ...)
- func (h *Handler) HTMLPlug(ctx *context.Context, user models.UserModel, panel types.Panel, ...)
- func (h *Handler) Logout(ctx *context.Context)
- func (h *Handler) MenuOrder(ctx *context.Context)
- func (h *Handler) NewForm(ctx *context.Context)
- func (h *Handler) NewMenu(ctx *context.Context)
- func (h *Handler) Operation(ctx *context.Context)
- func (h *Handler) OperationHandler(path string, ctx *context.Context) bool
- func (h *Handler) PluginDetail(ctx *context.Context)
- func (h *Handler) PluginDownload(ctx *context.Context)
- func (h *Handler) PluginStore(ctx *context.Context)
- func (h *Handler) Plugins(ctx *context.Context)
- func (h *Handler) RecordOperationLog(ctx *context.Context)
- func (h *Handler) ServerLogin(ctx *context.Context)
- func (h *Handler) SetCaptcha(cap map[string]string)
- func (h *Handler) SetRoutes(r context.RouterMap)
- func (h *Handler) ShowDetail(ctx *context.Context)
- func (h *Handler) ShowEditMenu(ctx *context.Context)
- func (h *Handler) ShowForm(ctx *context.Context)
- func (h *Handler) ShowInfo(ctx *context.Context)
- func (h *Handler) ShowInstall(ctx *context.Context)
- func (h *Handler) ShowLogin(ctx *context.Context)
- func (h *Handler) ShowMenu(ctx *context.Context)
- func (h *Handler) ShowNewForm(ctx *context.Context)
- func (h *Handler) ShowNewMenu(ctx *context.Context)
- func (h *Handler) SystemInfo(ctx *context.Context)
- func (h *Handler) Update(ctx *context.Context)
- func (h *Handler) UpdateCfg(cfg Config)
- type PluginBoxParam
- type PluginsPageJSData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPluginsPageJS ¶ added in v1.2.19
func GetPluginsPageJS(data PluginsPageJSData) template.JS
Types ¶
type Config ¶
type Config struct { Config *c.Config Services service.List Connection db.Connection Generators table.GeneratorList }
type Handler ¶ added in v1.2.19
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) AddNavButton ¶ added in v1.2.19
func (*Handler) AddOperation ¶ added in v1.2.19
func (*Handler) ApiCreateForm ¶ added in v1.2.19
func (*Handler) ApiUpdateForm ¶ added in v1.2.19
func (*Handler) Assets ¶ added in v1.2.19
Assets return front-end assets according the request path.
func (*Handler) Auth ¶ added in v1.2.19
Auth check the input password and username for authentication.
func (*Handler) CheckDatabase ¶ added in v1.2.19
CheckDatabase check the database connection.
func (*Handler) DeleteMenu ¶ added in v1.2.19
DeleteMenu delete the menu of given id.
func (*Handler) ExecuteWithBtns ¶ added in v1.2.19
func (*Handler) GlobalDeferHandler ¶ added in v1.2.19
GlobalDeferHandler is a global error handler of admin plugin.
func (*Handler) OperationHandler ¶ added in v1.2.19
func (*Handler) PluginDetail ¶ added in v1.2.19
func (*Handler) PluginDownload ¶ added in v1.2.19
func (*Handler) PluginStore ¶ added in v1.2.19
func (*Handler) RecordOperationLog ¶ added in v1.2.19
RecordOperationLog record all operation logs, store into database.
func (*Handler) ServerLogin ¶ added in v1.2.19
func (*Handler) SetCaptcha ¶ added in v1.2.19
func (*Handler) ShowDetail ¶ added in v1.2.19
func (*Handler) ShowEditMenu ¶ added in v1.2.19
ShowEditMenu show edit menu page.
func (*Handler) ShowInstall ¶ added in v1.2.19
ShowInstall show install page.
func (*Handler) ShowNewForm ¶ added in v1.2.19
ShowNewForm show a new form page.
func (*Handler) ShowNewMenu ¶ added in v1.2.19
ShowNewMenu show new menu page.
func (*Handler) SystemInfo ¶ added in v1.2.19
type PluginBoxParam ¶ added in v1.2.19
type PluginBoxParam struct { Info plugins.Info Install bool Upgrade bool Skip bool DownloadReboot bool Name string IndexURL string }
func GetPluginBoxParamFromPlug ¶ added in v1.2.19
func GetPluginBoxParamFromPlug(plug plugins.Plugin) PluginBoxParam
type PluginsPageJSData ¶ added in v1.2.19
type PluginsPageJSData struct {
Prefix string
}
Click to show internal directories.
Click to hide internal directories.