Documentation
¶
Index ¶
- func StartSSH(ctx context.Context, addr string, wg *sync.WaitGroup)
- type Client
- func (c *Client) AddServer()
- func (c *Client) ChangeServer(index string)
- func (c *Client) DelServer(index string)
- func (c *Client) GetServerByIndex(i int) *database.UserServer
- func (c *Client) HandleShell(channel ssh.Channel)
- func (c *Client) Resize(width, height int) error
- func (c *Client) ServerListTable() string
- type SSHClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { *cmd.Term UserServer []*database.UserServer SSHClient *SSHClient // contains filtered or unexported fields }
func (*Client) ChangeServer ¶
func (*Client) GetServerByIndex ¶
func (c *Client) GetServerByIndex(i int) *database.UserServer
func (*Client) HandleShell ¶
func (*Client) ServerListTable ¶
Click to show internal directories.
Click to hide internal directories.