auth

package
v0.0.0-...-f463375 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2016 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 KeyRegister(name string, k KeyAuther)

func PassAuth

func PassAuth() func(conn ssh.ConnMetadata, password []byte) (*ssh.Permissions, error)

func PassRegister

func PassRegister(name string, p PassAuther)

func Setup

func Setup() error

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 (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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL