Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandlers ¶
type EventHandlers []EventHandler
func (EventHandlers) OnAdd ¶
func (hs EventHandlers) OnAdd(host string, port string)
func (EventHandlers) OnRemove ¶
func (hs EventHandlers) OnRemove(host string, port string)
type Handler ¶
type Handler interface {
PasswordHandler() ssh.PasswordHandler
PublicKeyHandler() ssh.PublicKeyHandler
HandleSSHRequest(ctx ssh.Context, srv *ssh.Server, req *gossh.Request) (bool, []byte)
nets.SocketHandler
ConvertBindAddressToHostPort(bindAddress string) (string, string, bool)
ConvertBindAddressToSocket(bindAddress string) (string, bool)
SocketList() []string
AddEventHandler(EventHandler)
}
func New ¶
func New(authenticator auth.Authenticator, authorizer auth.Authorizer, unixDirectory string) (Handler, error)
Click to show internal directories.
Click to hide internal directories.