caddy

package
v3.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Overview

Nging is a toolbox for webmasters Copyright (C) 2018-present Wenhui Shen <swh@admpub.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

View Source
var LeftNavigate = &navigate.Item{
	Display: true,
	Name:    `网站管理`,
	Action:  `caddy`,
	Icon:    `sitemap`,
	Children: &navigate.List{
		{
			Display: false,
			Name:    `Caddy日志`,
			Action:  `log_show`,
		},
		{
			Display: true,
			Name:    `网站列表`,
			Action:  `vhost`,
		},
		{
			Display: true,
			Name:    `添加网站`,
			Action:  `vhost_add`,
			Icon:    `plus`,
		},
		{
			Display: false,
			Name:    `重启Caddy`,
			Action:  `restart`,
			Icon:    ``,
		},
		{
			Display: false,
			Name:    `停止Caddy`,
			Action:  `stop`,
			Icon:    ``,
		},
		{
			Display: false,
			Name:    `查看网站日志`,
			Action:  `vhost_log`,
		},
		{
			Display: false,
			Name:    `查看网站动态`,
			Action:  `log`,
		},
		{
			Display: false,
			Name:    `配置表单`,
			Action:  `addon_form`,
			Icon:    ``,
		},
		{
			Display: false,
			Name:    `修改网站`,
			Action:  `vhost_edit`,
			Icon:    ``,
		},
		{
			Display: false,
			Name:    `删除网站`,
			Action:  `vhost_delete`,
			Icon:    ``,
		},
		{
			Display: false,
			Name:    `管理网站文件`,
			Action:  `vhost_file`,
			Icon:    ``,
		},
		{
			Display: false,
			Name:    `生成Caddyfile`,
			Action:  `vhost_build`,
			Icon:    ``,
		},

		{
			Display: true,
			Name:    `分组管理`,
			Action:  `group`,
		},
		{
			Display: true,
			Name:    `添加分组`,
			Action:  `group_add`,
			Icon:    `plus`,
		},
		{
			Display: false,
			Name:    `修改分组`,
			Action:  `group_edit`,
			Icon:    ``,
		},
		{
			Display: false,
			Name:    `删除分组`,
			Action:  `group_delete`,
			Icon:    ``,
		},
	},
}

Functions

func AddonForm

func AddonForm(ctx echo.Context) error

func AddonIndex

func AddonIndex(ctx echo.Context) error

func DeleteCaddyfileByID

func DeleteCaddyfileByID(id uint) error

func Editable

func Editable(fileName string) (string, bool)

func Group

func Group(ctx echo.Context) error

func GroupAdd

func GroupAdd(ctx echo.Context) error

func GroupDelete

func GroupDelete(ctx echo.Context) error

func GroupEdit

func GroupEdit(ctx echo.Context) error

func Log

func Log(ctx echo.Context) error

func LogShow

func LogShow(ctx echo.Context) error

func Playable

func Playable(fileName string) (string, bool)

func Restart

func Restart(ctx echo.Context) error

func SetCaddyfileFunc

func SetCaddyfileFunc(ctx echo.Context, v url.Values)

func Stop

func Stop(ctx echo.Context) error

func ValidAddonName

func ValidAddonName(addon string) bool

func VhostAdd

func VhostAdd(ctx echo.Context) error

func VhostDelete

func VhostDelete(ctx echo.Context) error

func VhostEdit

func VhostEdit(ctx echo.Context) error

func VhostFile

func VhostFile(ctx echo.Context) error

func VhostIndex

func VhostIndex(ctx echo.Context) error

func VhostLog

func VhostLog(ctx echo.Context) error

func Vhostbuild

func Vhostbuild(ctx echo.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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