Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CredsLabel = "saml2aws Credentials"
CredsLabel saml2aws credentials should be labeled as such in credentials stores that allow labelling. That label allows to filter out non-Docker credentials too at lookup/search in macOS keychain, Windows credentials manager and Linux libsecret. Default value is "saml2aws Credentials"
Functions ¶
func IsErrCredentialsNotFound ¶
IsErrCredentialsNotFound returns true if the error was caused by not having a set of credentials in a store.
func LookupCredentials ¶
func LookupCredentials(loginDetails *creds.LoginDetails, provider string) error
LookupCredentials lookup an existing set of credentials and validate it.
func SaveCredentials ¶
SaveCredentials save the user credentials.
func SupportsStorage ¶
func SupportsStorage() bool
SupportsStorage will return true or false if storage is supported.
Types ¶
type Credentials ¶
Credentials holds the information shared between saml2aws and the credentials store.
type Helper ¶
type Helper interface {
// Add appends credentials to the store.
Add(*Credentials) error
// Delete removes credentials from the store.
Delete(serverURL string) error
// Get retrieves credentials from the store.
// It returns username and secret as strings.
Get(serverURL string) (string, string, error)
// SupportsCredentialStorage returns true or false if there is credential storage.
SupportsCredentialStorage() bool
}
Helper is the interface a credentials store helper must implement.