whitelist

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package whitelist maintains a list of whitelisted email addresses. It is used by traefik-simple-auth to validate that requests for an authenticated user should be allowed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Whitelist

type Whitelist map[string]struct{}

func New

func New(emails []string) (Whitelist, error)

New creates a new Whitelist for the provided email addresses.

func (Whitelist) Match added in v0.4.1

func (w Whitelist) Match(email string) bool

Match returns true if the email address is on the whitelist, or if the whitelist is empty.

Jump to

Keyboard shortcuts

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