handler

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: AGPL-3.0 Imports: 38 Imported by: 0

Documentation

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 AutoCompletePath

func AutoCompletePath(ctx echo.Context) (bool, 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 RegisterRoute

func RegisterRoute(r module.Router)

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