Documentation
¶
Overview ¶
* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/.
Index ¶
Constants ¶
View Source
const ( // KeyChainName is the name of the keychain used to store // passwords KeyChainName = "clisso" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultKeychain ¶
type DefaultKeychain struct{}
DefaultKeychain provides a wrapper around github.com/tmc/keyring and provides defaults and abstractions for clisso to get passwords
func (DefaultKeychain) Get ¶
func (DefaultKeychain) Get(provider string) (pw []byte, err error)
Get will, once given a valid provider, return the password associated in order for logins to happen. If any error occours while talking to the keychain provider, we silently swallow it and just ask the user for the password instead. Error could be anything from access denied to password not found.
Click to show internal directories.
Click to hide internal directories.