sessions

package
v0.0.0-...-e39acb4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: BlueOak-1.0.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(c *ssh.Client) *Manager

func (*Manager) Broadcast

func (m *Manager) Broadcast(msg Message)

func (*Manager) NewSession

func (m *Manager) NewSession(name string) (*Session, error)

func (*Manager) Run

func (m *Manager) Run()

type Message

type Message interface {
	// contains filtered or unexported methods
}

type ResizeMessage

type ResizeMessage struct {
	NewHeight int
	NewWidth  int
}

type Session

type Session struct {
	// contains filtered or unexported fields
}

func (*Session) Run

func (s *Session) Run(cmd string) error

func (*Session) Wait

func (s *Session) Wait()

type SigMessage

type SigMessage struct {
	Signal ssh.Signal
}

Jump to

Keyboard shortcuts

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