Documentation ¶
Index ¶
- func KeyAuth() func(conn ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error)
- func KeyRegister(name string, k KeyAuther)
- func PassAuth() func(conn ssh.ConnMetadata, password []byte) (*ssh.Permissions, error)
- func PassRegister(name string, p PassAuther)
- func Setup() error
- type KeyAuther
- type PassAuther
- type ScriptKeyAuth
- type ScriptPassAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyAuth ¶
func KeyAuth() func(conn ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error)
func KeyRegister ¶
func PassAuth ¶
func PassAuth() func(conn ssh.ConnMetadata, password []byte) (*ssh.Permissions, error)
func PassRegister ¶
func PassRegister(name string, p PassAuther)
Types ¶
type KeyAuther ¶
type KeyAuther interface { Initialize() error Auth(conn ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error) }
type PassAuther ¶
type PassAuther interface { Initialize() error Auth(conn ssh.ConnMetadata, password []byte) (*ssh.Permissions, error) }
type ScriptKeyAuth ¶
type ScriptKeyAuth struct{}
func (ScriptKeyAuth) Auth ¶
func (s ScriptKeyAuth) Auth(conn ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error)
func (ScriptKeyAuth) Initialize ¶
func (s ScriptKeyAuth) Initialize() error
type ScriptPassAuth ¶
type ScriptPassAuth struct{}
func (ScriptPassAuth) Auth ¶
func (s ScriptPassAuth) Auth(conn ssh.ConnMetadata, password []byte) (*ssh.Permissions, error)
func (ScriptPassAuth) Initialize ¶
func (s ScriptPassAuth) Initialize() error
Click to show internal directories.
Click to hide internal directories.