Documentation ¶
Overview ¶
Package credentials contains all code related to the credentials domain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { TestCredentials(c Credentials) (bool, error) OpenConnection(c Credentials) error }
Backend interface.
type Credentials ¶
Credentials object contains information on how to connect to a realm.
func NewCredentials ¶
func NewCredentials(url, username, password string) Credentials
NewCredentials create a new credentials object.
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is the entry point of the domain that expose methods.
func (Driver) Get ¶
func (d Driver) Get(url string, username string) (Credentials, error)
Get password for the couple URL / Username.
func (Driver) Test ¶
func (d Driver) Test(creds Credentials) (bool, error)
Test credentials (URL / Username / Password) against the backend.
func (Driver) Use ¶
func (d Driver) Use(creds Credentials) error
Use method tell the backend to start using the credentials.
Click to show internal directories.
Click to hide internal directories.