auth

package
v0.1.37 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrUnauthorized  = errorString("unauthorized")
	ErrUnknownDomain = errorString("unknown domain")
	ErrUnknownUser   = errorString("unknown user")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator added in v0.0.38

type Authenticator interface {
	io.Closer
	VerifyPermissions(user string, password string, domain string) (err error)
}

type AuthenticatorLoader added in v0.0.64

type AuthenticatorLoader func(unmarshal YAMLUnmarshaler, config_dir string) (Authenticator, error)

type Type added in v0.0.64

type Type string

func (Type) Load added in v0.0.64

func (u Type) Load(unmarshal YAMLUnmarshaler, config_dir string) (c Authenticator, err error)

func (Type) Register added in v0.0.64

func (t Type) Register(loader AuthenticatorLoader)

type YAMLUnmarshaler added in v0.0.64

type YAMLUnmarshaler func(interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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