Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeLocal ¶
func ServeLocal(icli ServeICLI)
ServeLocal will serve an interactive CLI locally. This takes care of providing a line based input method.
func ServeSSH ¶
func ServeSSH(options SSHOptions) error
ServeSSH will run an SSH server that accepts connections.
Each incoming SSH session will result in a call to options.REPL.
Types ¶
type SSHOptions ¶
type SSHOptions struct { // ICLI defines the interactive CLI you want to serve ICLI ServeICLI // Addr is an IPv4 IP:port pair that you wish to serve on Addr string // PrivateHostKey is the host key to present when serving SSH. // // This can be generated with `ssh-keygen -t rsa -f my_host_key_rsa` PrivateHostKey string }
SSHOptions defines the parameters for serving a REPL over SSH
Click to show internal directories.
Click to hide internal directories.