noauth

package
v0.1.56 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const NoAuth = auth.Type("noauth")

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

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

func LoadFromDecoder added in v0.1.46

func LoadFromDecoder(dec auth.Decoder) (a *Authenticator, err error)

func LoadFromFile added in v0.1.46

func LoadFromFile(path string) (a *Authenticator, err error)

func LoadFromStream added in v0.1.46

func LoadFromStream(r io.Reader) (a *Authenticator, err error)

func New added in v0.1.46

func New(config Config) (a *Authenticator, err error)

func (*Authenticator) AddPermission added in v0.1.46

func (a *Authenticator) AddPermission(domain string) (err error)

func (*Authenticator) Close

func (a *Authenticator) Close() (err error)

func (*Authenticator) Load

func (a *Authenticator) Load(config Config) error

func (*Authenticator) RemovePermission added in v0.1.46

func (a *Authenticator) RemovePermission(domain string) (err error)

func (*Authenticator) Save added in v0.1.46

func (a *Authenticator) Save() (Config, error)

func (*Authenticator) Shutdown added in v0.1.46

func (a *Authenticator) Shutdown(ctx context.Context) error

func (*Authenticator) VerifyPermissions

func (a *Authenticator) VerifyPermissions(cred auth.Credentials, domain string) (err error)

type Config

type Config struct {
	Domains []string
}

Jump to

Keyboard shortcuts

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