Versions in this module Expand all Collapse all v1 v1.8.12 Nov 16, 2021 v1.8.11 Nov 15, 2021 Changes in this version + var ErrWrongFormat = errors.New("malformed credentials") + type Credentials struct + APIToken string + BridgePassword string + Emails string + IsCombinedAddressMode bool + IsHidden bool + MailboxPassword []byte + Name string + Timestamp int64 + UserID string + Version string + func (s *Credentials) CheckPassword(password string) error + func (s *Credentials) EmailList() []string + func (s *Credentials) IsConnected() bool + func (s *Credentials) Logout() + func (s *Credentials) Marshal() string + func (s *Credentials) SetEmailList(list []string) + func (s *Credentials) SplitAPIToken() (string, string, error) + func (s *Credentials) Unmarshal(secret string) error + type Store struct + func NewStore(keychain *keychain.Keychain) *Store + func (s *Store) Add(userID, userName, uid, ref string, mailboxPassword []byte, emails []string) (*Credentials, error) + func (s *Store) Delete(userID string) (err error) + func (s *Store) Get(userID string) (creds *Credentials, err error) + func (s *Store) GetAndCheckPassword(userID, password string) (creds *Credentials, err error) + func (s *Store) List() (userIDs []string, err error) + func (s *Store) Logout(userID string) (*Credentials, error) + func (s *Store) SwitchAddressMode(userID string) (*Credentials, error) + func (s *Store) UpdateEmails(userID string, emails []string) (*Credentials, error) + func (s *Store) UpdatePassword(userID string, password []byte) (*Credentials, error) + func (s *Store) UpdateToken(userID, uid, ref string) (*Credentials, error)