handler

package
v0.0.0-...-f69eaad Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructAssetNodeTree

func ConstructAssetNodeTree(assetNodes []model.Node) treeprint.Tree

func Initial

func Initial()

func JoinRoom

func JoinRoom(h *interactiveHandler, roomId string)

func NewReaderAt

func NewReaderAt(f *sftp.File, fi os.FileInfo) io.ReaderAt

func NewSFTPHandler

func NewSFTPHandler(user *model.User, addr string) *sftpHandler

func NewWriterAt

func NewWriterAt(f *sftp.File) io.WriterAt

func SessionHandler

func SessionHandler(sess ssh.Session)

func SftpHandler

func SftpHandler(sess ssh.Session)

Types

type AssetPaginator

type AssetPaginator interface {
	Paginator
	RetrievePageData(pageIndex int) model.AssetList
	SearchAsset(key string) model.AssetList
	SearchAgain(key string) model.AssetList
	Name() string
	SearchKeys() []string
}

func NewLocalAssetPaginator

func NewLocalAssetPaginator(data model.AssetList, pageSize int) AssetPaginator

func NewNodeAssetPaginator

func NewNodeAssetPaginator(user model.User, node model.Node, pageSize int) AssetPaginator

func NewRemoteAssetPaginator

func NewRemoteAssetPaginator(user model.User, pageSize int) AssetPaginator

type ColorMeta

type ColorMeta struct {
	GreenBoldColor string
	ColorEnd       string
}

type DatabasePaginator

type DatabasePaginator interface {
	Paginator
	RetrievePageData(pageIndex int) []model.Database
	SearchAsset(key string) []model.Database
	SearchAgain(key string) []model.Database
	Name() string
	SearchKeys() []string
}

func NewLocalDatabasePaginator

func NewLocalDatabasePaginator(data []model.Database, pageSize int) DatabasePaginator
type Menu []MenuItem
type MenuItem struct {
	// contains filtered or unexported fields
}
func (mi *MenuItem) Text() string

type Paginator

type Paginator interface {
	HasPrev() bool
	HasNext() bool
	CurrentPage() int
	TotalCount() int
	TotalPage() int
	PageSize() int
	SetPageSize(size int)
}

type WrapperSession

type WrapperSession struct {
	Uuid string
	Sess ssh.Session
	// contains filtered or unexported fields
}

func NewWrapperSession

func NewWrapperSession(sess ssh.Session) *WrapperSession

func (*WrapperSession) Close

func (w *WrapperSession) Close() error

func (*WrapperSession) ID

func (w *WrapperSession) ID() string

func (*WrapperSession) LoginFrom

func (w *WrapperSession) LoginFrom() string

func (*WrapperSession) Protocol

func (w *WrapperSession) Protocol() string

func (*WrapperSession) Pty

func (w *WrapperSession) Pty() ssh.Pty

func (*WrapperSession) Read

func (w *WrapperSession) Read(p []byte) (int, error)

func (*WrapperSession) RemoteAddr

func (w *WrapperSession) RemoteAddr() string

func (*WrapperSession) User

func (w *WrapperSession) User() string

func (*WrapperSession) WinCh

func (w *WrapperSession) WinCh() (winch <-chan ssh.Window)

func (*WrapperSession) Write

func (w *WrapperSession) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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