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 + type MockClient struct + func NewMockClient(ctrl *gomock.Controller) *MockClient + func (m *MockClient) AddAuthRefreshHandler(arg0 pmapi.AuthRefreshHandler) + func (m *MockClient) Addresses() pmapi.AddressList + func (m *MockClient) Auth2FA(arg0 context.Context, arg1 string) error + func (m *MockClient) AuthDelete(arg0 context.Context) error + func (m *MockClient) AuthSalt(arg0 context.Context) (string, error) + func (m *MockClient) CountMessages(arg0 context.Context, arg1 string) ([]*pmapi.MessagesCount, error) + func (m *MockClient) CreateAttachment(arg0 context.Context, arg1 *pmapi.Attachment, arg2, arg3 io.Reader) (*pmapi.Attachment, error) + func (m *MockClient) CreateDraft(arg0 context.Context, arg1 *pmapi.Message, arg2 string, arg3 int) (*pmapi.Message, error) + func (m *MockClient) CreateLabel(arg0 context.Context, arg1 *pmapi.Label) (*pmapi.Label, error) + func (m *MockClient) CurrentUser(arg0 context.Context) (*pmapi.User, error) + func (m *MockClient) DecryptAndVerifyCards(arg0 []pmapi.Card) ([]pmapi.Card, error) + func (m *MockClient) DeleteLabel(arg0 context.Context, arg1 string) error + func (m *MockClient) DeleteMessages(arg0 context.Context, arg1 []string) error + func (m *MockClient) EXPECT() *MockClientMockRecorder + func (m *MockClient) EmptyFolder(arg0 context.Context, arg1, arg2 string) error + func (m *MockClient) GetAddresses(arg0 context.Context) (pmapi.AddressList, error) + func (m *MockClient) GetAttachment(arg0 context.Context, arg1 string) (io.ReadCloser, error) + func (m *MockClient) GetContactByID(arg0 context.Context, arg1 string) (pmapi.Contact, error) + func (m *MockClient) GetContactEmailByEmail(arg0 context.Context, arg1 string, arg2, arg3 int) ([]pmapi.ContactEmail, error) + func (m *MockClient) GetEvent(arg0 context.Context, arg1 string) (*pmapi.Event, error) + func (m *MockClient) GetMailSettings(arg0 context.Context) (pmapi.MailSettings, error) + func (m *MockClient) GetMessage(arg0 context.Context, arg1 string) (*pmapi.Message, error) + func (m *MockClient) GetPublicKeysForEmail(arg0 context.Context, arg1 string) ([]pmapi.PublicKey, bool, error) + func (m *MockClient) Import(arg0 context.Context, arg1 pmapi.ImportMsgReqs) ([]*pmapi.ImportMsgRes, error) + func (m *MockClient) IsUnlocked() bool + func (m *MockClient) KeyRingForAddressID(arg0 string) (*crypto.KeyRing, error) + func (m *MockClient) LabelMessages(arg0 context.Context, arg1 []string, arg2 string) error + func (m *MockClient) ListLabels(arg0 context.Context) ([]*pmapi.Label, error) + func (m *MockClient) ListMessages(arg0 context.Context, arg1 *pmapi.MessagesFilter) ([]*pmapi.Message, int, error) + func (m *MockClient) MarkMessagesRead(arg0 context.Context, arg1 []string) error + func (m *MockClient) MarkMessagesUnread(arg0 context.Context, arg1 []string) error + func (m *MockClient) ReloadKeys(arg0 context.Context, arg1 []byte) error + func (m *MockClient) ReorderAddresses(arg0 context.Context, arg1 []string) error + func (m *MockClient) SendMessage(arg0 context.Context, arg1 string, arg2 *pmapi.SendMessageReq) (*pmapi.Message, *pmapi.Message, error) + func (m *MockClient) UnlabelMessages(arg0 context.Context, arg1 []string, arg2 string) error + func (m *MockClient) Unlock(arg0 context.Context, arg1 []byte) error + func (m *MockClient) UpdateLabel(arg0 context.Context, arg1 *pmapi.Label) (*pmapi.Label, error) + func (m *MockClient) UpdateUser(arg0 context.Context) (*pmapi.User, error) + type MockClientMockRecorder struct + func (mr *MockClientMockRecorder) AddAuthRefreshHandler(arg0 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) Addresses() *gomock.Call + func (mr *MockClientMockRecorder) Auth2FA(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) AuthDelete(arg0 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) AuthSalt(arg0 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) CountMessages(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) CreateAttachment(arg0, arg1, arg2, arg3 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) CreateDraft(arg0, arg1, arg2, arg3 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) CreateLabel(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) CurrentUser(arg0 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) DecryptAndVerifyCards(arg0 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) DeleteLabel(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) DeleteMessages(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) EmptyFolder(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetAddresses(arg0 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetAttachment(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetContactByID(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetContactEmailByEmail(arg0, arg1, arg2, arg3 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetEvent(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetMailSettings(arg0 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetMessage(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetPublicKeysForEmail(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) Import(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) IsUnlocked() *gomock.Call + func (mr *MockClientMockRecorder) KeyRingForAddressID(arg0 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) LabelMessages(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) ListLabels(arg0 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) ListMessages(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) MarkMessagesRead(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) MarkMessagesUnread(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) ReloadKeys(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) ReorderAddresses(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) SendMessage(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) UnlabelMessages(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) Unlock(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) UpdateLabel(arg0, arg1 interface{}) *gomock.Call + func (mr *MockClientMockRecorder) UpdateUser(arg0 interface{}) *gomock.Call + type MockManager struct + func NewMockManager(ctrl *gomock.Controller) *MockManager + func (m *MockManager) AddConnectionObserver(arg0 pmapi.ConnectionObserver) + func (m *MockManager) AllowProxy() + func (m *MockManager) DisallowProxy() + func (m *MockManager) DownloadAndVerify(arg0 *crypto.KeyRing, arg1, arg2 string) ([]byte, error) + func (m *MockManager) EXPECT() *MockManagerMockRecorder + func (m *MockManager) NewClient(arg0, arg1, arg2 string, arg3 time.Time) pmapi.Client + func (m *MockManager) NewClientWithLogin(arg0 context.Context, arg1 string, arg2 []byte) (pmapi.Client, *pmapi.Auth, error) + func (m *MockManager) NewClientWithRefresh(arg0 context.Context, arg1, arg2 string) (pmapi.Client, *pmapi.AuthRefresh, error) + func (m *MockManager) ReportBug(arg0 context.Context, arg1 pmapi.ReportBugReq) error + func (m *MockManager) SendSimpleMetric(arg0 context.Context, arg1, arg2, arg3 string) error + func (m *MockManager) SetCookieJar(arg0 http.CookieJar) + func (m *MockManager) SetLogging(arg0 *logrus.Entry, arg1 bool) + func (m *MockManager) SetRetryCount(arg0 int) + func (m *MockManager) SetTransport(arg0 http.RoundTripper) + type MockManagerMockRecorder struct + func (mr *MockManagerMockRecorder) AddConnectionObserver(arg0 interface{}) *gomock.Call + func (mr *MockManagerMockRecorder) AllowProxy() *gomock.Call + func (mr *MockManagerMockRecorder) DisallowProxy() *gomock.Call + func (mr *MockManagerMockRecorder) DownloadAndVerify(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockManagerMockRecorder) NewClient(arg0, arg1, arg2, arg3 interface{}) *gomock.Call + func (mr *MockManagerMockRecorder) NewClientWithLogin(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockManagerMockRecorder) NewClientWithRefresh(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockManagerMockRecorder) ReportBug(arg0, arg1 interface{}) *gomock.Call + func (mr *MockManagerMockRecorder) SendSimpleMetric(arg0, arg1, arg2, arg3 interface{}) *gomock.Call + func (mr *MockManagerMockRecorder) SetCookieJar(arg0 interface{}) *gomock.Call + func (mr *MockManagerMockRecorder) SetLogging(arg0, arg1 interface{}) *gomock.Call + func (mr *MockManagerMockRecorder) SetRetryCount(arg0 interface{}) *gomock.Call + func (mr *MockManagerMockRecorder) SetTransport(arg0 interface{}) *gomock.Call