auth

package
v0.0.0-...-44808bf Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package auth implements master's authentication.

Index

Constants

This section is empty.

Variables

View Source
var ErrCADir error = errors.New("auth: invalid CA dir")

Functions

This section is empty.

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

Auth implemenst the console auth manager.

func New

func New() *Auth

New creates a new Auth instance.

func (*Auth) Configure

func (a *Auth) Configure(cadir string) error

Configure sets up the CA directory.

func (*Auth) Login

func (a *Auth) Login(fp, sid string) error

func (*Auth) Logout

func (a *Auth) Logout(sid string) error

func (*Auth) ServerConfig

func (a *Auth) ServerConfig() *ssh.ServerConfig

ServerConfig creates a new instance of ssh.ServerConfig based on our settings.

type Manager

type Manager interface {
	Configure(cadir string) error
	ServerConfig() *ssh.ServerConfig
	Login(fp, sid string) error
	Logout(sid string) error
}

Jump to

Keyboard shortcuts

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