Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandAuthenticator ¶
type CommandAuthenticator struct {
Cmd string
}
func (*CommandAuthenticator) Authenticate ¶
type HTTPAuthenticator ¶
func NewHTTPAuthenticator ¶
func NewHTTPAuthenticator(url string, insecure bool) *HTTPAuthenticator
func (*HTTPAuthenticator) Authenticate ¶
type PasswordAuthenticator ¶
type PasswordAuthenticator struct {
Password string
}
PasswordAuthenticator is a simple authenticator that checks the password against a single string.
func (*PasswordAuthenticator) Authenticate ¶
type UserPassAuthenticator ¶
type UserPassAuthenticator struct {
// contains filtered or unexported fields
}
UserPassAuthenticator checks the provided auth string against a map of username/password pairs. The format of the auth string must be "username:password".
func NewUserPassAuthenticator ¶
func NewUserPassAuthenticator(users map[string]string) *UserPassAuthenticator
func (*UserPassAuthenticator) Authenticate ¶
Click to show internal directories.
Click to hide internal directories.