Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreatePipeOption ¶
CreatePipeOption contains options for creating a pipe to upstream
type Handler ¶
type Handler func(conn ssh.ConnMetadata, challengeContext ssh.AdditionalChallengeContext) (net.Conn, *ssh.AuthPipe, error)
Handler will be installed into sshpiper and help to establish the connection to upstream the returned auth pipe is to map/convert downstream auth method to another auth for connecting to upstream. e.g. map downstream public key to another upstream private key
type Pipe ¶
Pipe is a connection which linked downstream and upstream SSHPiper searches pipe base on username
type PipeManager ¶
type PipeManager interface { // Return All pipes inside upstream ListPipe() ([]Pipe, error) // Create a pipe inside upstream CreatePipe(opt CreatePipeOption) error // Remove a pipe from upstream RemovePipe(name string) error }
PipeManager manages pipe inside upstream
Click to show internal directories.
Click to hide internal directories.