Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auditor ¶
type Auditor interface { // All msg between piper and upstream will be put into the hook // nil for ignore GetUpstreamHook() Hook // All msg between piper and downstream will be put into the hook // nil for ignore GetDownstreamHook() Hook // Will be called when connection closed Close() error }
Auditor holds Hooks for upstream and downstream
type Hook ¶
type Hook func(conn ssh.ConnMetadata, msg []byte) ([]byte, error)
Hook is called after ssh connection pipe is established and all msg will be put into the hook and msg will be converted to the return value of this func
Click to show internal directories.
Click to hide internal directories.