backend

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: Apache-2.0 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 {
	ValidateUser(userName string, secret string) (bool, error)
}

type HtpasswdBackend

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

func NewHtpasswdBackend

func NewHtpasswdBackend(c *htpasswd.Container) *HtpasswdBackend

func NewHtpasswdBackendFromMap

func NewHtpasswdBackendFromMap(m map[string]string) (*HtpasswdBackend, error)

func (*HtpasswdBackend) ValidateUser

func (h *HtpasswdBackend) ValidateUser(userName string, secret string) (bool, error)

type HtpasswdConfig

type HtpasswdConfig struct {
	Keys map[string]string `json:"userKeys"`
}

func NewHtpasswdConfig

func NewHtpasswdConfig() *HtpasswdConfig

func (*HtpasswdConfig) NewHtpasswdBackend

func (c *HtpasswdConfig) NewHtpasswdBackend() (*HtpasswdBackend, error)

func (*HtpasswdConfig) Validate

func (c *HtpasswdConfig) Validate() error

Jump to

Keyboard shortcuts

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