Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultService is the OS keyring service name used for Obot CLI // credentials. DefaultService = "obot" )
Variables ¶
View Source
var ErrNotFound = errors.New("credential not found")
ErrNotFound is returned when no credential exists for the requested app URL.
Functions ¶
func IsNotFound ¶
IsNotFound reports whether err means a credential is absent.
Types ¶
type KeyringStore ¶
type KeyringStore struct {
// contains filtered or unexported fields
}
KeyringStore stores one bearer token per normalized Obot app URL.
func NewKeyringStore ¶
func NewKeyringStore() *KeyringStore
NewKeyringStore returns a Store backed by the host OS keyring.
func (*KeyringStore) Delete ¶
func (s *KeyringStore) Delete(appURL string) error
func (*KeyringStore) Set ¶
func (s *KeyringStore) Set(appURL, token string) error
Click to show internal directories.
Click to hide internal directories.