Documentation ¶
Index ¶
- func ConstructAssetNodeTree(assetNodes []model.Node) treeprint.Tree
- func Initial()
- func JoinRoom(h *interactiveHandler, roomId string)
- func NewReaderAt(f *sftp.File, fi os.FileInfo) io.ReaderAt
- func NewSFTPHandler(user *model.User, addr string) *sftpHandler
- func NewWriterAt(f *sftp.File) io.WriterAt
- func SessionHandler(sess ssh.Session)
- func SftpHandler(sess ssh.Session)
- type AssetPaginator
- type ColorMeta
- type DatabasePaginator
- type Menu
- type MenuItem
- type Paginator
- type WrapperSession
- func (w *WrapperSession) Close() error
- func (w *WrapperSession) ID() string
- func (w *WrapperSession) LoginFrom() string
- func (w *WrapperSession) Protocol() string
- func (w *WrapperSession) Pty() ssh.Pty
- func (w *WrapperSession) Read(p []byte) (int, error)
- func (w *WrapperSession) RemoteAddr() string
- func (w *WrapperSession) User() string
- func (w *WrapperSession) WinCh() (winch <-chan ssh.Window)
- func (w *WrapperSession) Write(p []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSFTPHandler ¶
func SessionHandler ¶
func SftpHandler ¶
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 NewRemoteAssetPaginator ¶
func NewRemoteAssetPaginator(user model.User, pageSize int) AssetPaginator
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 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) 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)
Click to show internal directories.
Click to hide internal directories.