auth

package
v0.0.0-...-8f7c359 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecorateWithBasicAuth

func DecorateWithBasicAuth(next http.HandlerFunc, credentials *BasicAuthCredentials) http.HandlerFunc

DecorateWithBasicAuth enforces basic auth as a middleware with given credentials

Types

type BasicAuthCredentials

type BasicAuthCredentials struct {
	User     string
	Password string
}

BasicAuthCredentials for credentials

type ReadBasicAuth

type ReadBasicAuth interface {
	Read() (*BasicAuthCredentials, error)
}

type ReadBasicAuthFromDisk

type ReadBasicAuthFromDisk struct {
	SecretMountPath string

	UserFilename string

	PasswordFilename string
}

func (*ReadBasicAuthFromDisk) Read

Jump to

Keyboard shortcuts

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