challenger

package
v0.0.0-...-64130a5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() []string

All return all registered challenger

func Register

func Register(name string, driver Provider)

Register adds an challenger with given name to registry

Types

type Handler

Handler is the callback for additional challenger use args client ssh.KeyboardInteractiveChallenge to interact with downstream return bool to indicate whether if the challenge is passed

type Provider

type Provider interface {
	registry.Plugin

	GetHandler() Handler
}

Provider is a factory for Challenger

func Get

func Get(name string) Provider

Get returns an challenger by name, return nil if not found

func NewFromHandler

func NewFromHandler(name string, gethandler func() Handler, opts interface{}, init func(glogger *log.Logger) error) Provider

NewFromHandler creates a Challenger with given functions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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