package
2.5.1
Repository: https://github.com/alphasoc/flightsim.git
Documentation: pkg.go.dev

# Packages

Package fxp handles ssh fxp packet abstractions.

# Functions

MakeRawPacket wraps a specific packet with code and length data and returns a *RawPacket.
NewClient initializes and returns a Client ready to be used for SSH/SFTP transfer along with an error.
NewSignerFromKey returns the global signer, if set, otherwise it generates an ssh signer from a static private key, sets the global signer varialbe, and returns the signer.
OpenResp parses an SSH/SFTP response to an open file request.
ParseScope parses the common commandline portion after the module name (if supplied) for SSH-based simulators.
ReadPacket reads data from the io.Reader and returns the data as a byte slice along with an error.
StatusResp parses an SSH/SFTP status response.
VersionResp parses an SSH/SFTP response to an init request.

# Constants

SSH/SFTP client version.

# Structs

Client wraps SSH client and session structs, read/writers and a random number generator.
RawPacket represents a partialy parsed sftp packet (without the parsed data section).
Used for channel communication, signalling write success/failures.

# Interfaces

Packet interface represents specific sftp packet type (data section to be exact) ex.