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 ¶
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 ¶
func (r *ReadBasicAuthFromDisk) Read() (*BasicAuthCredentials, error)
Click to show internal directories.
Click to hide internal directories.