msgs

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CloseStdinReq = "close-stdin"

CloseStdinMsg

View Source
const ContainersReq = "container-ids"

ContainersMsg

View Source
const PingMsg = "Ping"
View Source
const PingReq = "ping"

PingMsg

View Source
const SignalReq = "signal"

SignalMsg

View Source
const UnblockMsg = "Unblock"
View Source
const UnblockReq = "unblock"
View Source
const VersionReq = "version"

VersionMsg

View Source
const WindowChangeReq = "window-change"

WindowChangeMsg the RFC4254 struct

Variables

View Source
var (
	Signals = map[ssh.Signal]int{
		ssh.SIGABRT: 6,
		ssh.SIGALRM: 14,
		ssh.SIGFPE:  8,
		ssh.SIGHUP:  1,
		ssh.SIGILL:  4,
		ssh.SIGINT:  2,
		ssh.SIGKILL: 9,
		ssh.SIGPIPE: 13,
		ssh.SIGQUIT: 3,
		ssh.SIGSEGV: 11,
		ssh.SIGTERM: 15,
		ssh.SIGUSR1: 10,
		ssh.SIGUSR2: 12,
	}
)

Functions

This section is empty.

Types

type ContainersMsg

type ContainersMsg struct {
	IDs []string
}

func (*ContainersMsg) Marshal

func (s *ContainersMsg) Marshal() []byte

func (*ContainersMsg) RequestType

func (s *ContainersMsg) RequestType() string

func (*ContainersMsg) Unmarshal

func (s *ContainersMsg) Unmarshal(payload []byte) error

type Message

type Message interface {
	// Returns the message name
	RequestType() string

	// Marshalled version of the message
	Marshal() []byte

	// Unmarshal unpacks the message
	Unmarshal([]byte) error
}

type SignalMsg

type SignalMsg struct {
	Signal ssh.Signal
}

func (*SignalMsg) FromString

func (s *SignalMsg) FromString(name string) error

func (*SignalMsg) Marshal

func (s *SignalMsg) Marshal() []byte

func (*SignalMsg) RequestType

func (s *SignalMsg) RequestType() string

func (*SignalMsg) Signum

func (s *SignalMsg) Signum() int

func (*SignalMsg) Unmarshal

func (s *SignalMsg) Unmarshal(payload []byte) error

type VersionMsg

type VersionMsg struct {
	Version uint32
}

func (*VersionMsg) Marshal

func (s *VersionMsg) Marshal() []byte

func (*VersionMsg) RequestType

func (s *VersionMsg) RequestType() string

func (*VersionMsg) Unmarshal

func (s *VersionMsg) Unmarshal(payload []byte) error

type WindowChangeMsg

type WindowChangeMsg struct {
	Columns  uint32
	Rows     uint32
	WidthPx  uint32
	HeightPx uint32
}

func (*WindowChangeMsg) Marshal

func (wc *WindowChangeMsg) Marshal() []byte

func (*WindowChangeMsg) RequestType

func (wc *WindowChangeMsg) RequestType() string

func (*WindowChangeMsg) Unmarshal

func (wc *WindowChangeMsg) Unmarshal(payload []byte) error

Jump to

Keyboard shortcuts

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