Documentation ¶
Overview ¶
Package credentials implements our struct stored in keychain. Store struct is kind of like a database client. Credentials struct is kind of like one record from the database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrWrongFormat = errors.New("malformed credentials")
)
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct { UserID, Name, Emails, APIToken string MailboxPassword []byte BridgePassword, Version string Timestamp int64 IsHidden, IsCombinedAddressMode bool }
func (*Credentials) EmailList ¶
func (s *Credentials) EmailList() []string
func (*Credentials) Marshal ¶
func (s *Credentials) Marshal() string
func (*Credentials) SplitAPIToken ¶
func (s *Credentials) SplitAPIToken() (string, string, error)
func (*Credentials) Unmarshal ¶
func (s *Credentials) Unmarshal(secret string) error
Click to show internal directories.
Click to hide internal directories.