term

package
v3.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: AGPL-3.0 Imports: 29 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:    `SSH管理`,
	Action:  `term`,
	Icon:    `terminal`,
	Children: &navigate.List{
		{
			Display: true,
			Name:    `账号管理`,
			Action:  `account`,
		},
		{
			Display: true,
			Name:    `添加账号`,
			Action:  `account_add`,
			Icon:    `plus`,
		},
		{
			Display: true,
			Name:    `分组管理`,
			Action:  `group`,
		},
		{
			Display: true,
			Name:    `添加分组`,
			Action:  `group_add`,
			Icon:    `plus`,
		},
		{
			Display: false,
			Name:    `修改账号`,
			Action:  `account_edit`,
			Icon:    ``,
		},
		{
			Display: false,
			Name:    `删除账号`,
			Action:  `account_delete`,
			Icon:    ``,
		},
		{
			Display: false,
			Name:    `修改分组`,
			Action:  `group_edit`,
			Icon:    ``,
		},
		{
			Display: false,
			Name:    `删除分组`,
			Action:  `group_delete`,
			Icon:    ``,
		},
		{
			Display: false,
			Name:    `SSH操作`,
			Action:  `client`,
			Icon:    ``,
		},
		{
			Display: false,
			Name:    `SFTP操作`,
			Action:  `sftp`,
			Icon:    ``,
		},
	},
}

Functions

func AccountAdd

func AccountAdd(ctx echo.Context) error

func AccountDelete

func AccountDelete(ctx echo.Context) error

func AccountEdit

func AccountEdit(ctx echo.Context) error

func AccountIndex

func AccountIndex(ctx echo.Context) error

func Client

func Client(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 GroupIndex

func GroupIndex(ctx echo.Context) error

func Sftp

func Sftp(ctx echo.Context) error

func SftpSearch

func SftpSearch(ctx echo.Context, id uint) error

Types

type TerminalParam

type TerminalParam struct {
	Query url.Values
	User  *dbschema.NgingSshUser
}

Jump to

Keyboard shortcuts

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