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 ¶
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 ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) AddNavButton ¶
func (*Handler) AddOperation ¶
func (*Handler) ApiCreateForm ¶
func (*Handler) ApiUpdateForm ¶
func (*Handler) CheckDatabase ¶
CheckDatabase check the database connection.
func (*Handler) DeleteMenu ¶
DeleteMenu delete the menu of given id.
func (*Handler) ExecuteWithBtns ¶
func (*Handler) GlobalDeferHandler ¶
GlobalDeferHandler is a global error handler of admin plugin.
func (*Handler) OperationHandler ¶
func (*Handler) PluginDetail ¶
func (*Handler) PluginDownload ¶
func (*Handler) PluginStore ¶
func (*Handler) RecordOperationLog ¶
RecordOperationLog record all operation logs, store into database.
func (*Handler) ServerLogin ¶
func (*Handler) SetCaptcha ¶
func (*Handler) ShowDetail ¶
func (*Handler) ShowEditMenu ¶
ShowEditMenu show edit menu page.
func (*Handler) ShowInstall ¶
ShowInstall show install page.
func (*Handler) ShowNewForm ¶
ShowNewForm show a new form page.
func (*Handler) ShowNewMenu ¶
ShowNewMenu show new menu page.
func (*Handler) SystemInfo ¶
type PluginBoxParam ¶
type PluginBoxParam struct { Info plugins.Info Install bool Upgrade bool Skip bool DownloadReboot bool Name string IndexURL string }
func GetPluginBoxParamFromPlug ¶
func GetPluginBoxParamFromPlug(plug plugins.Plugin) PluginBoxParam
type PluginsPageJSData ¶
type PluginsPageJSData struct {
Prefix string
}
Click to show internal directories.
Click to hide internal directories.