mocks

package
v1.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	// contains filtered or unexported fields
}

MockClient is a mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance

func (*MockClient) AddAuthRefreshHandler added in v1.8.0

func (m *MockClient) AddAuthRefreshHandler(arg0 pmapi.AuthRefreshHandler)

AddAuthRefreshHandler mocks base method

func (*MockClient) Addresses

func (m *MockClient) Addresses() pmapi.AddressList

Addresses mocks base method

func (*MockClient) Auth2FA

func (m *MockClient) Auth2FA(arg0 context.Context, arg1 string) error

Auth2FA mocks base method

func (*MockClient) AuthDelete added in v1.8.0

func (m *MockClient) AuthDelete(arg0 context.Context) error

AuthDelete mocks base method

func (*MockClient) AuthSalt

func (m *MockClient) AuthSalt(arg0 context.Context) (string, error)

AuthSalt mocks base method

func (*MockClient) CountMessages

func (m *MockClient) CountMessages(arg0 context.Context, arg1 string) ([]*pmapi.MessagesCount, error)

CountMessages mocks base method

func (*MockClient) CreateAttachment

func (m *MockClient) CreateAttachment(arg0 context.Context, arg1 *pmapi.Attachment, arg2, arg3 io.Reader) (*pmapi.Attachment, error)

CreateAttachment mocks base method

func (*MockClient) CreateDraft

func (m *MockClient) CreateDraft(arg0 context.Context, arg1 *pmapi.Message, arg2 string, arg3 int) (*pmapi.Message, error)

CreateDraft mocks base method

func (*MockClient) CreateLabel

func (m *MockClient) CreateLabel(arg0 context.Context, arg1 *pmapi.Label) (*pmapi.Label, error)

CreateLabel mocks base method

func (*MockClient) CurrentUser

func (m *MockClient) CurrentUser(arg0 context.Context) (*pmapi.User, error)

CurrentUser mocks base method

func (*MockClient) DecryptAndVerifyCards

func (m *MockClient) DecryptAndVerifyCards(arg0 []pmapi.Card) ([]pmapi.Card, error)

DecryptAndVerifyCards mocks base method

func (*MockClient) DeleteLabel

func (m *MockClient) DeleteLabel(arg0 context.Context, arg1 string) error

DeleteLabel mocks base method

func (*MockClient) DeleteMessages

func (m *MockClient) DeleteMessages(arg0 context.Context, arg1 []string) error

DeleteMessages mocks base method

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockClient) EmptyFolder

func (m *MockClient) EmptyFolder(arg0 context.Context, arg1, arg2 string) error

EmptyFolder mocks base method

func (*MockClient) GetAddresses

func (m *MockClient) GetAddresses(arg0 context.Context) (pmapi.AddressList, error)

GetAddresses mocks base method

func (*MockClient) GetAttachment

func (m *MockClient) GetAttachment(arg0 context.Context, arg1 string) (io.ReadCloser, error)

GetAttachment mocks base method

func (*MockClient) GetContactByID

func (m *MockClient) GetContactByID(arg0 context.Context, arg1 string) (pmapi.Contact, error)

GetContactByID mocks base method

func (*MockClient) GetContactEmailByEmail

func (m *MockClient) GetContactEmailByEmail(arg0 context.Context, arg1 string, arg2, arg3 int) ([]pmapi.ContactEmail, error)

GetContactEmailByEmail mocks base method

func (*MockClient) GetEvent

func (m *MockClient) GetEvent(arg0 context.Context, arg1 string) (*pmapi.Event, error)

GetEvent mocks base method

func (*MockClient) GetMailSettings

func (m *MockClient) GetMailSettings(arg0 context.Context) (pmapi.MailSettings, error)

GetMailSettings mocks base method

func (*MockClient) GetMessage

func (m *MockClient) GetMessage(arg0 context.Context, arg1 string) (*pmapi.Message, error)

GetMessage mocks base method

func (*MockClient) GetPublicKeysForEmail

func (m *MockClient) GetPublicKeysForEmail(arg0 context.Context, arg1 string) ([]pmapi.PublicKey, bool, error)

GetPublicKeysForEmail mocks base method

func (*MockClient) Import

func (m *MockClient) Import(arg0 context.Context, arg1 pmapi.ImportMsgReqs) ([]*pmapi.ImportMsgRes, error)

Import mocks base method

func (*MockClient) IsUnlocked

func (m *MockClient) IsUnlocked() bool

IsUnlocked mocks base method

func (*MockClient) KeyRingForAddressID

func (m *MockClient) KeyRingForAddressID(arg0 string) (*crypto.KeyRing, error)

KeyRingForAddressID mocks base method

func (*MockClient) LabelMessages

func (m *MockClient) LabelMessages(arg0 context.Context, arg1 []string, arg2 string) error

LabelMessages mocks base method

func (*MockClient) ListLabels

func (m *MockClient) ListLabels(arg0 context.Context) ([]*pmapi.Label, error)

ListLabels mocks base method

func (*MockClient) ListMessages

func (m *MockClient) ListMessages(arg0 context.Context, arg1 *pmapi.MessagesFilter) ([]*pmapi.Message, int, error)

ListMessages mocks base method

func (*MockClient) MarkMessagesRead

func (m *MockClient) MarkMessagesRead(arg0 context.Context, arg1 []string) error

MarkMessagesRead mocks base method

func (*MockClient) MarkMessagesUnread

func (m *MockClient) MarkMessagesUnread(arg0 context.Context, arg1 []string) error

MarkMessagesUnread mocks base method

func (*MockClient) ReloadKeys

func (m *MockClient) ReloadKeys(arg0 context.Context, arg1 []byte) error

ReloadKeys mocks base method

func (*MockClient) ReorderAddresses

func (m *MockClient) ReorderAddresses(arg0 context.Context, arg1 []string) error

ReorderAddresses mocks base method

func (*MockClient) SendMessage

func (m *MockClient) SendMessage(arg0 context.Context, arg1 string, arg2 *pmapi.SendMessageReq) (*pmapi.Message, *pmapi.Message, error)

SendMessage mocks base method

func (*MockClient) UnlabelMessages

func (m *MockClient) UnlabelMessages(arg0 context.Context, arg1 []string, arg2 string) error

UnlabelMessages mocks base method

func (*MockClient) Unlock

func (m *MockClient) Unlock(arg0 context.Context, arg1 []byte) error

Unlock mocks base method

func (*MockClient) UpdateLabel

func (m *MockClient) UpdateLabel(arg0 context.Context, arg1 *pmapi.Label) (*pmapi.Label, error)

UpdateLabel mocks base method

func (*MockClient) UpdateUser

func (m *MockClient) UpdateUser(arg0 context.Context) (*pmapi.User, error)

UpdateUser mocks base method

type MockClientMockRecorder

type MockClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockClientMockRecorder is the mock recorder for MockClient

func (*MockClientMockRecorder) AddAuthRefreshHandler added in v1.8.0

func (mr *MockClientMockRecorder) AddAuthRefreshHandler(arg0 interface{}) *gomock.Call

AddAuthRefreshHandler indicates an expected call of AddAuthRefreshHandler

func (*MockClientMockRecorder) Addresses

func (mr *MockClientMockRecorder) Addresses() *gomock.Call

Addresses indicates an expected call of Addresses

func (*MockClientMockRecorder) Auth2FA

func (mr *MockClientMockRecorder) Auth2FA(arg0, arg1 interface{}) *gomock.Call

Auth2FA indicates an expected call of Auth2FA

func (*MockClientMockRecorder) AuthDelete added in v1.8.0

func (mr *MockClientMockRecorder) AuthDelete(arg0 interface{}) *gomock.Call

AuthDelete indicates an expected call of AuthDelete

func (*MockClientMockRecorder) AuthSalt

func (mr *MockClientMockRecorder) AuthSalt(arg0 interface{}) *gomock.Call

AuthSalt indicates an expected call of AuthSalt

func (*MockClientMockRecorder) CountMessages

func (mr *MockClientMockRecorder) CountMessages(arg0, arg1 interface{}) *gomock.Call

CountMessages indicates an expected call of CountMessages

func (*MockClientMockRecorder) CreateAttachment

func (mr *MockClientMockRecorder) CreateAttachment(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CreateAttachment indicates an expected call of CreateAttachment

func (*MockClientMockRecorder) CreateDraft

func (mr *MockClientMockRecorder) CreateDraft(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CreateDraft indicates an expected call of CreateDraft

func (*MockClientMockRecorder) CreateLabel

func (mr *MockClientMockRecorder) CreateLabel(arg0, arg1 interface{}) *gomock.Call

CreateLabel indicates an expected call of CreateLabel

func (*MockClientMockRecorder) CurrentUser

func (mr *MockClientMockRecorder) CurrentUser(arg0 interface{}) *gomock.Call

CurrentUser indicates an expected call of CurrentUser

func (*MockClientMockRecorder) DecryptAndVerifyCards

func (mr *MockClientMockRecorder) DecryptAndVerifyCards(arg0 interface{}) *gomock.Call

DecryptAndVerifyCards indicates an expected call of DecryptAndVerifyCards

func (*MockClientMockRecorder) DeleteLabel

func (mr *MockClientMockRecorder) DeleteLabel(arg0, arg1 interface{}) *gomock.Call

DeleteLabel indicates an expected call of DeleteLabel

func (*MockClientMockRecorder) DeleteMessages

func (mr *MockClientMockRecorder) DeleteMessages(arg0, arg1 interface{}) *gomock.Call

DeleteMessages indicates an expected call of DeleteMessages

func (*MockClientMockRecorder) EmptyFolder

func (mr *MockClientMockRecorder) EmptyFolder(arg0, arg1, arg2 interface{}) *gomock.Call

EmptyFolder indicates an expected call of EmptyFolder

func (*MockClientMockRecorder) GetAddresses

func (mr *MockClientMockRecorder) GetAddresses(arg0 interface{}) *gomock.Call

GetAddresses indicates an expected call of GetAddresses

func (*MockClientMockRecorder) GetAttachment

func (mr *MockClientMockRecorder) GetAttachment(arg0, arg1 interface{}) *gomock.Call

GetAttachment indicates an expected call of GetAttachment

func (*MockClientMockRecorder) GetContactByID

func (mr *MockClientMockRecorder) GetContactByID(arg0, arg1 interface{}) *gomock.Call

GetContactByID indicates an expected call of GetContactByID

func (*MockClientMockRecorder) GetContactEmailByEmail

func (mr *MockClientMockRecorder) GetContactEmailByEmail(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetContactEmailByEmail indicates an expected call of GetContactEmailByEmail

func (*MockClientMockRecorder) GetEvent

func (mr *MockClientMockRecorder) GetEvent(arg0, arg1 interface{}) *gomock.Call

GetEvent indicates an expected call of GetEvent

func (*MockClientMockRecorder) GetMailSettings

func (mr *MockClientMockRecorder) GetMailSettings(arg0 interface{}) *gomock.Call

GetMailSettings indicates an expected call of GetMailSettings

func (*MockClientMockRecorder) GetMessage

func (mr *MockClientMockRecorder) GetMessage(arg0, arg1 interface{}) *gomock.Call

GetMessage indicates an expected call of GetMessage

func (*MockClientMockRecorder) GetPublicKeysForEmail

func (mr *MockClientMockRecorder) GetPublicKeysForEmail(arg0, arg1 interface{}) *gomock.Call

GetPublicKeysForEmail indicates an expected call of GetPublicKeysForEmail

func (*MockClientMockRecorder) Import

func (mr *MockClientMockRecorder) Import(arg0, arg1 interface{}) *gomock.Call

Import indicates an expected call of Import

func (*MockClientMockRecorder) IsUnlocked

func (mr *MockClientMockRecorder) IsUnlocked() *gomock.Call

IsUnlocked indicates an expected call of IsUnlocked

func (*MockClientMockRecorder) KeyRingForAddressID

func (mr *MockClientMockRecorder) KeyRingForAddressID(arg0 interface{}) *gomock.Call

KeyRingForAddressID indicates an expected call of KeyRingForAddressID

func (*MockClientMockRecorder) LabelMessages

func (mr *MockClientMockRecorder) LabelMessages(arg0, arg1, arg2 interface{}) *gomock.Call

LabelMessages indicates an expected call of LabelMessages

func (*MockClientMockRecorder) ListLabels

func (mr *MockClientMockRecorder) ListLabels(arg0 interface{}) *gomock.Call

ListLabels indicates an expected call of ListLabels

func (*MockClientMockRecorder) ListMessages

func (mr *MockClientMockRecorder) ListMessages(arg0, arg1 interface{}) *gomock.Call

ListMessages indicates an expected call of ListMessages

func (*MockClientMockRecorder) MarkMessagesRead

func (mr *MockClientMockRecorder) MarkMessagesRead(arg0, arg1 interface{}) *gomock.Call

MarkMessagesRead indicates an expected call of MarkMessagesRead

func (*MockClientMockRecorder) MarkMessagesUnread

func (mr *MockClientMockRecorder) MarkMessagesUnread(arg0, arg1 interface{}) *gomock.Call

MarkMessagesUnread indicates an expected call of MarkMessagesUnread

func (*MockClientMockRecorder) ReloadKeys

func (mr *MockClientMockRecorder) ReloadKeys(arg0, arg1 interface{}) *gomock.Call

ReloadKeys indicates an expected call of ReloadKeys

func (*MockClientMockRecorder) ReorderAddresses

func (mr *MockClientMockRecorder) ReorderAddresses(arg0, arg1 interface{}) *gomock.Call

ReorderAddresses indicates an expected call of ReorderAddresses

func (*MockClientMockRecorder) SendMessage

func (mr *MockClientMockRecorder) SendMessage(arg0, arg1, arg2 interface{}) *gomock.Call

SendMessage indicates an expected call of SendMessage

func (*MockClientMockRecorder) UnlabelMessages

func (mr *MockClientMockRecorder) UnlabelMessages(arg0, arg1, arg2 interface{}) *gomock.Call

UnlabelMessages indicates an expected call of UnlabelMessages

func (*MockClientMockRecorder) Unlock

func (mr *MockClientMockRecorder) Unlock(arg0, arg1 interface{}) *gomock.Call

Unlock indicates an expected call of Unlock

func (*MockClientMockRecorder) UpdateLabel

func (mr *MockClientMockRecorder) UpdateLabel(arg0, arg1 interface{}) *gomock.Call

UpdateLabel indicates an expected call of UpdateLabel

func (*MockClientMockRecorder) UpdateUser

func (mr *MockClientMockRecorder) UpdateUser(arg0 interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser

type MockManager added in v1.8.0

type MockManager struct {
	// contains filtered or unexported fields
}

MockManager is a mock of Manager interface

func NewMockManager added in v1.8.0

func NewMockManager(ctrl *gomock.Controller) *MockManager

NewMockManager creates a new mock instance

func (*MockManager) AddConnectionObserver added in v1.8.0

func (m *MockManager) AddConnectionObserver(arg0 pmapi.ConnectionObserver)

AddConnectionObserver mocks base method

func (*MockManager) AllowProxy added in v1.8.0

func (m *MockManager) AllowProxy()

AllowProxy mocks base method

func (*MockManager) DisallowProxy added in v1.8.0

func (m *MockManager) DisallowProxy()

DisallowProxy mocks base method

func (*MockManager) DownloadAndVerify added in v1.8.0

func (m *MockManager) DownloadAndVerify(arg0 *crypto.KeyRing, arg1, arg2 string) ([]byte, error)

DownloadAndVerify mocks base method

func (*MockManager) EXPECT added in v1.8.0

func (m *MockManager) EXPECT() *MockManagerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockManager) NewClient added in v1.8.0

func (m *MockManager) NewClient(arg0, arg1, arg2 string, arg3 time.Time) pmapi.Client

NewClient mocks base method

func (*MockManager) NewClientWithLogin added in v1.8.0

func (m *MockManager) NewClientWithLogin(arg0 context.Context, arg1, arg2 string) (pmapi.Client, *pmapi.Auth, error)

NewClientWithLogin mocks base method

func (*MockManager) NewClientWithRefresh added in v1.8.0

func (m *MockManager) NewClientWithRefresh(arg0 context.Context, arg1, arg2 string) (pmapi.Client, *pmapi.AuthRefresh, error)

NewClientWithRefresh mocks base method

func (*MockManager) ReportBug added in v1.8.0

func (m *MockManager) ReportBug(arg0 context.Context, arg1 pmapi.ReportBugReq) error

ReportBug mocks base method

func (*MockManager) SendSimpleMetric added in v1.8.0

func (m *MockManager) SendSimpleMetric(arg0 context.Context, arg1, arg2, arg3 string) error

SendSimpleMetric mocks base method

func (*MockManager) SetCookieJar added in v1.8.0

func (m *MockManager) SetCookieJar(arg0 http.CookieJar)

SetCookieJar mocks base method

func (*MockManager) SetLogging added in v1.8.0

func (m *MockManager) SetLogging(arg0 *logrus.Entry, arg1 bool)

SetLogging mocks base method

func (*MockManager) SetRetryCount added in v1.8.0

func (m *MockManager) SetRetryCount(arg0 int)

SetRetryCount mocks base method

func (*MockManager) SetTransport added in v1.8.0

func (m *MockManager) SetTransport(arg0 http.RoundTripper)

SetTransport mocks base method

type MockManagerMockRecorder added in v1.8.0

type MockManagerMockRecorder struct {
	// contains filtered or unexported fields
}

MockManagerMockRecorder is the mock recorder for MockManager

func (*MockManagerMockRecorder) AddConnectionObserver added in v1.8.0

func (mr *MockManagerMockRecorder) AddConnectionObserver(arg0 interface{}) *gomock.Call

AddConnectionObserver indicates an expected call of AddConnectionObserver

func (*MockManagerMockRecorder) AllowProxy added in v1.8.0

func (mr *MockManagerMockRecorder) AllowProxy() *gomock.Call

AllowProxy indicates an expected call of AllowProxy

func (*MockManagerMockRecorder) DisallowProxy added in v1.8.0

func (mr *MockManagerMockRecorder) DisallowProxy() *gomock.Call

DisallowProxy indicates an expected call of DisallowProxy

func (*MockManagerMockRecorder) DownloadAndVerify added in v1.8.0

func (mr *MockManagerMockRecorder) DownloadAndVerify(arg0, arg1, arg2 interface{}) *gomock.Call

DownloadAndVerify indicates an expected call of DownloadAndVerify

func (*MockManagerMockRecorder) NewClient added in v1.8.0

func (mr *MockManagerMockRecorder) NewClient(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

NewClient indicates an expected call of NewClient

func (*MockManagerMockRecorder) NewClientWithLogin added in v1.8.0

func (mr *MockManagerMockRecorder) NewClientWithLogin(arg0, arg1, arg2 interface{}) *gomock.Call

NewClientWithLogin indicates an expected call of NewClientWithLogin

func (*MockManagerMockRecorder) NewClientWithRefresh added in v1.8.0

func (mr *MockManagerMockRecorder) NewClientWithRefresh(arg0, arg1, arg2 interface{}) *gomock.Call

NewClientWithRefresh indicates an expected call of NewClientWithRefresh

func (*MockManagerMockRecorder) ReportBug added in v1.8.0

func (mr *MockManagerMockRecorder) ReportBug(arg0, arg1 interface{}) *gomock.Call

ReportBug indicates an expected call of ReportBug

func (*MockManagerMockRecorder) SendSimpleMetric added in v1.8.0

func (mr *MockManagerMockRecorder) SendSimpleMetric(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SendSimpleMetric indicates an expected call of SendSimpleMetric

func (*MockManagerMockRecorder) SetCookieJar added in v1.8.0

func (mr *MockManagerMockRecorder) SetCookieJar(arg0 interface{}) *gomock.Call

SetCookieJar indicates an expected call of SetCookieJar

func (*MockManagerMockRecorder) SetLogging added in v1.8.0

func (mr *MockManagerMockRecorder) SetLogging(arg0, arg1 interface{}) *gomock.Call

SetLogging indicates an expected call of SetLogging

func (*MockManagerMockRecorder) SetRetryCount added in v1.8.0

func (mr *MockManagerMockRecorder) SetRetryCount(arg0 interface{}) *gomock.Call

SetRetryCount indicates an expected call of SetRetryCount

func (*MockManagerMockRecorder) SetTransport added in v1.8.0

func (mr *MockManagerMockRecorder) SetTransport(arg0 interface{}) *gomock.Call

SetTransport indicates an expected call of SetTransport

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL