Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶ added in v1.4.0
Authenticator is a generic interface to validate an HTTP request
func NewAuthenticator ¶ added in v1.4.0
func NewAuthenticator(conf *config.Config) Authenticator
NewAuthenticator creates new authenticator form the configuration
type HtpasswdFile ¶ added in v1.4.0
type HtpasswdFile struct {
// contains filtered or unexported fields
}
HtpasswdFile is a map for usernames to passwords.
func NewHtpasswdFromFile ¶ added in v1.4.0
func NewHtpasswdFromFile(path string) (*HtpasswdFile, error)
NewHtpasswdFromFile reads the users and passwords from a htpasswd file and returns them.
Click to show internal directories.
Click to hide internal directories.