auth

package
v0.0.0-...-e986615 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator interface {
	Authenticate(username string, password string) (User, error)
}

type NoOpAuthenticator

type NoOpAuthenticator struct{}

func (NoOpAuthenticator) Authenticate

func (a NoOpAuthenticator) Authenticate(username string, password string) (User, error)

type StaticCredentialsAuthenticator

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

func NewEnvAuthenticator

func NewEnvAuthenticator() StaticCredentialsAuthenticator

func NewStaticCredentialsApi

func NewStaticCredentialsApi(username string, password string) StaticCredentialsAuthenticator

func (StaticCredentialsAuthenticator) Authenticate

func (a StaticCredentialsAuthenticator) Authenticate(username string, password string) (User, error)

type User

type User struct {
	Name string
}

Jump to

Keyboard shortcuts

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