Versions in this module Expand all Collapse all v1 v1.0.0 Sep 10, 2023 Changes in this version + var Err2FACodeRequired = errors.New(...) + var ErrFailedToUnlockUserKeys = errors.New("failed to unlock user keys") + var ErrKeyPassOrSaltedKeyPassMustBeNotNil = errors.New("either keyPass or saltedKeyPass must be not nil") + var ErrMailboxPasswordRequired = errors.New("this account requires a mailbox password") + var ErrUsernameAndPasswordRequired = errors.New("username and password are required") + func Logout(ctx context.Context, config *Config, m *proton.Manager, c *proton.Client, ...) error + type Config struct + AppVersion string + ConcurrentBlockUploadCount int + ConcurrentFileCryptoCount int + CredentialCacheFile string + DataFolderName string + DestructiveIntegrationTest bool + EmptyTrashAfterIntegrationTest bool + EnableCaching bool + FirstLoginCredential *FirstLoginCredentialData + ReplaceExistingDraft bool + ReusableCredential *ReusableCredentialData + UseReusableLogin bool + UserAgent string + func NewConfigForIntegrationTests() *Config + func NewConfigWithDefaultValues() *Config + type FirstLoginCredentialData struct + MailboxPassword string + Password string + TwoFA string + Username string + type ProtonDriveCredential struct + AccessToken string + RefreshToken string + SaltedKeyPass string + UID string + func Login(ctx context.Context, config *Config, authHandler proton.AuthHandler, ...) (*proton.Manager, *proton.Client, *ProtonDriveCredential, *crypto.KeyRing, ...) + type ReusableCredentialData struct + AccessToken string + RefreshToken string + SaltedKeyPass string + UID string