Documentation ¶
Index ¶
- Constants
- func AssertProvisioned(tc libkb.TestContext) error
- func CanonicalTlfNameForTest(tlfName string) keybase1.CanonicalTlfName
- func CheckTeamMiscNotifications(tc libkb.TestContext, notifications *TeamNotifyListener)
- func DeleteAccount(tc libkb.TestContext, u *FakeUser)
- func Logout(tc libkb.TestContext)
- func NewMetaContextForTest(c ChatTestContext) libkb.MetaContext
- func ResetAccount(tc libkb.TestContext, u *FakeUser)
- type ByUsername
- type ChatMockWorld
- type ChatRemoteMock
- func (m *ChatRemoteMock) DeleteConversation(ctx context.Context, convID chat1.ConversationID) (chat1.DeleteConversationRemoteRes, error)
- func (m *ChatRemoteMock) GetConversationMetadataRemote(ctx context.Context, convID chat1.ConversationID) (res chat1.GetConversationMetadataRemoteRes, err error)
- func (m *ChatRemoteMock) GetGlobalAppNotificationSettings(ctx context.Context) (chat1.GlobalAppNotificationSettings, error)
- func (m *ChatRemoteMock) GetInboxByTLFIDRemote(ctx context.Context, tlfID chat1.TLFID) (res chat1.GetInboxByTLFIDRemoteRes, err error)
- func (m *ChatRemoteMock) GetInboxRemote(ctx context.Context, arg chat1.GetInboxRemoteArg) (res chat1.GetInboxRemoteRes, err error)
- func (m *ChatRemoteMock) GetInboxVersion(ctx context.Context, uid gregor1.UID) (chat1.InboxVers, error)
- func (m *ChatRemoteMock) GetMessageBefore(ctx context.Context, arg chat1.GetMessageBeforeArg) (chat1.GetMessageBeforeRes, error)
- func (m *ChatRemoteMock) GetMessagesRemote(ctx context.Context, arg chat1.GetMessagesRemoteArg) (res chat1.GetMessagesRemoteRes, err error)
- func (m *ChatRemoteMock) GetPublicConversations(ctx context.Context, arg chat1.GetPublicConversationsArg) (res chat1.GetPublicConversationsRes, err error)
- func (m *ChatRemoteMock) GetS3Params(context.Context, chat1.ConversationID) (chat1.S3Params, error)
- func (m *ChatRemoteMock) GetTLFConversations(ctx context.Context, arg chat1.GetTLFConversationsArg) (chat1.GetTLFConversationsRes, error)
- func (m *ChatRemoteMock) GetThreadRemote(ctx context.Context, arg chat1.GetThreadRemoteArg) (res chat1.GetThreadRemoteRes, err error)
- func (m *ChatRemoteMock) GetUnreadUpdateFull(ctx context.Context, inboxVers chat1.InboxVers) (chat1.UnreadUpdateFull, error)
- func (m *ChatRemoteMock) JoinConversation(ctx context.Context, convID chat1.ConversationID) (chat1.JoinLeaveConversationRemoteRes, error)
- func (m *ChatRemoteMock) LeaveConversation(ctx context.Context, convID chat1.ConversationID) (chat1.JoinLeaveConversationRemoteRes, error)
- func (m *ChatRemoteMock) MarkAsRead(ctx context.Context, arg chat1.MarkAsReadArg) (res chat1.MarkAsReadRes, err error)
- func (m *ChatRemoteMock) NewConversationRemote(ctx context.Context, arg chat1.ConversationIDTriple) (res chat1.NewConversationRemoteRes, err error)
- func (m *ChatRemoteMock) NewConversationRemote2(ctx context.Context, arg chat1.NewConversationRemote2Arg) (res chat1.NewConversationRemoteRes, err error)
- func (m *ChatRemoteMock) PostRemote(ctx context.Context, arg chat1.PostRemoteArg) (res chat1.PostRemoteRes, err error)
- func (m *ChatRemoteMock) PreviewConversation(ctx context.Context, convID chat1.ConversationID) (chat1.JoinLeaveConversationRemoteRes, error)
- func (m *ChatRemoteMock) PublishReadMessage(ctx context.Context, arg chat1.PublishReadMessageArg) error
- func (m *ChatRemoteMock) PublishSetConversationStatus(ctx context.Context, arg chat1.PublishSetConversationStatusArg) error
- func (m *ChatRemoteMock) RemoteNotificationSuccessful(ctx context.Context, arg chat1.RemoteNotificationSuccessfulArg) error
- func (m *ChatRemoteMock) RetentionSweepConv(ctx context.Context, convID chat1.ConversationID) (res chat1.SweepRes, err error)
- func (m *ChatRemoteMock) S3Sign(context.Context, chat1.S3SignArg) ([]byte, error)
- func (m *ChatRemoteMock) SetAppNotificationSettings(ctx context.Context, arg chat1.SetAppNotificationSettingsArg) (res chat1.SetAppNotificationSettingsRes, err error)
- func (m *ChatRemoteMock) SetConvRetention(ctx context.Context, _ chat1.SetConvRetentionArg) (res chat1.SetRetentionRes, err error)
- func (m *ChatRemoteMock) SetConversationStatus(ctx context.Context, arg chat1.SetConversationStatusArg) (res chat1.SetConversationStatusRes, err error)
- func (m *ChatRemoteMock) SetCurrentUser(uid gregor1.UID)
- func (m *ChatRemoteMock) SetGlobalAppNotificationSettings(ctx context.Context, arg chat1.GlobalAppNotificationSettings) error
- func (m *ChatRemoteMock) SetTeamRetention(ctx context.Context, _ chat1.SetTeamRetentionArg) (res chat1.SetRetentionRes, err error)
- func (m *ChatRemoteMock) SyncAll(ctx context.Context, arg chat1.SyncAllArg) (res chat1.SyncAllResult, err error)
- func (m *ChatRemoteMock) SyncChat(ctx context.Context, vers chat1.InboxVers) (chat1.SyncChatRes, error)
- func (m *ChatRemoteMock) SyncInbox(ctx context.Context, vers chat1.InboxVers) (chat1.SyncInboxRes, error)
- func (m *ChatRemoteMock) TlfFinalize(ctx context.Context, arg chat1.TlfFinalizeArg) error
- func (m *ChatRemoteMock) TlfResolve(ctx context.Context, arg chat1.TlfResolveArg) error
- func (m *ChatRemoteMock) UpdateTypingRemote(ctx context.Context, arg chat1.UpdateTypingRemoteArg) error
- func (m *ChatRemoteMock) UpgradeKBFSToImpteam(ctx context.Context, tlfID chat1.TLFID) error
- type ChatTestContext
- type ChatUI
- func (c *ChatUI) ChatAttachmentDownloadDone(context.Context) error
- func (c *ChatUI) ChatAttachmentDownloadProgress(ctx context.Context, arg chat1.ChatAttachmentDownloadProgressArg) error
- func (c *ChatUI) ChatAttachmentDownloadStart(context.Context) error
- func (c *ChatUI) ChatAttachmentPreviewUploadDone(context.Context) error
- func (c *ChatUI) ChatAttachmentPreviewUploadStart(context.Context, chat1.AssetMetadata) error
- func (c *ChatUI) ChatAttachmentUploadDone(context.Context) error
- func (c *ChatUI) ChatAttachmentUploadOutboxID(ctx context.Context, arg chat1.ChatAttachmentUploadOutboxIDArg) error
- func (c *ChatUI) ChatAttachmentUploadProgress(ctx context.Context, arg chat1.ChatAttachmentUploadProgressArg) error
- func (c *ChatUI) ChatAttachmentUploadStart(context.Context, chat1.AssetMetadata, chat1.MessageID) error
- func (c *ChatUI) ChatConfirmChannelDelete(ctx context.Context, arg chat1.ChatConfirmChannelDeleteArg) (bool, error)
- func (c *ChatUI) ChatInboxConversation(ctx context.Context, arg chat1.ChatInboxConversationArg) error
- func (c *ChatUI) ChatInboxFailed(ctx context.Context, arg chat1.ChatInboxFailedArg) error
- func (c *ChatUI) ChatInboxUnverified(ctx context.Context, arg chat1.ChatInboxUnverifiedArg) error
- func (c *ChatUI) ChatSearchDone(ctx context.Context, arg chat1.ChatSearchDoneArg) error
- func (c *ChatUI) ChatSearchHit(ctx context.Context, arg chat1.ChatSearchHitArg) error
- func (c *ChatUI) ChatThreadCached(ctx context.Context, arg chat1.ChatThreadCachedArg) error
- func (c *ChatUI) ChatThreadFull(ctx context.Context, arg chat1.ChatThreadFullArg) error
- type DummyAssetDeleter
- type FakeIdentifyUI
- func (ui *FakeIdentifyUI) Cancel() error
- func (ui *FakeIdentifyUI) Confirm(outcome *keybase1.IdentifyOutcome) (result keybase1.ConfirmResult, err error)
- func (ui *FakeIdentifyUI) Dismiss(_ string, _ keybase1.DismissReason) error
- func (ui *FakeIdentifyUI) DisplayCryptocurrency(keybase1.Cryptocurrency) error
- func (ui *FakeIdentifyUI) DisplayKey(ik keybase1.IdentifyKey) error
- func (ui *FakeIdentifyUI) DisplayTLFCreateWithInvite(arg keybase1.DisplayTLFCreateWithInviteArg) error
- func (ui *FakeIdentifyUI) DisplayTrackStatement(string) error
- func (ui *FakeIdentifyUI) DisplayUserCard(keybase1.UserCard) error
- func (ui *FakeIdentifyUI) Finish() error
- func (ui *FakeIdentifyUI) FinishSocialProofCheck(proof keybase1.RemoteProof, result keybase1.LinkCheckResult) error
- func (ui *FakeIdentifyUI) FinishWebProofCheck(proof keybase1.RemoteProof, result keybase1.LinkCheckResult) error
- func (ui *FakeIdentifyUI) LaunchNetworkChecks(id *keybase1.Identity, user *keybase1.User) error
- func (ui *FakeIdentifyUI) ReportLastTrack(*keybase1.TrackSummary) error
- func (ui *FakeIdentifyUI) ReportTrackToken(tok keybase1.TrackToken) error
- func (ui *FakeIdentifyUI) SetStrict(b bool)
- func (ui *FakeIdentifyUI) Start(username string, _ keybase1.IdentifyReason, forceDisplay bool) error
- type FakeUser
- type NonblockInboxResult
- type NonblockSearchResult
- type NonblockThreadResult
- type TeamNotifyListener
- type TestProvisionUI
- func (u *TestProvisionUI) ChooseDevice(_ context.Context, arg keybase1.ChooseDeviceArg) (keybase1.DeviceID, error)
- func (u *TestProvisionUI) ChooseDeviceType(_ context.Context, _ keybase1.ChooseDeviceTypeArg) (keybase1.DeviceType, error)
- func (u *TestProvisionUI) ChooseGPGMethod(_ context.Context, _ keybase1.ChooseGPGMethodArg) (keybase1.GPGMethod, error)
- func (u *TestProvisionUI) ChooseProvisioningMethod(_ context.Context, _ keybase1.ChooseProvisioningMethodArg) (keybase1.ProvisionMethod, error)
- func (u *TestProvisionUI) DisplayAndPromptSecret(_ context.Context, arg keybase1.DisplayAndPromptSecretArg) (keybase1.SecretResponse, error)
- func (u *TestProvisionUI) DisplaySecretExchanged(_ context.Context, _ int) error
- func (u *TestProvisionUI) PromptNewDeviceName(_ context.Context, arg keybase1.PromptNewDeviceNameArg) (string, error)
- func (u *TestProvisionUI) ProvisioneeSuccess(_ context.Context, _ keybase1.ProvisioneeSuccessArg) error
- func (u *TestProvisionUI) ProvisionerSuccess(_ context.Context, _ keybase1.ProvisionerSuccessArg) error
- func (u *TestProvisionUI) SwitchToGPGSignOK(ctx context.Context, arg keybase1.SwitchToGPGSignOKArg) (bool, error)
- type TlfMock
- func (m *TlfMock) CompleteAndCanonicalizePrivateTlfName(ctx context.Context, tlfName string) (keybase1.CanonicalTLFNameAndIDWithBreaks, error)
- func (m *TlfMock) CryptKeys(ctx context.Context, tlfName string) (res keybase1.GetTLFCryptKeysRes, err error)
- func (m *TlfMock) DecryptionKeys(ctx context.Context, tlfName string, tlfID chat1.TLFID, ...) (*types.NameInfo, error)
- func (m *TlfMock) EncryptionKeys(ctx context.Context, tlfName string, tlfID chat1.TLFID, ...) (*types.NameInfo, error)
- func (m *TlfMock) EphemeralDecryptionKey(ctx context.Context, tlfName string, tlfID chat1.TLFID, ...) (keybase1.TeamEk, error)
- func (m *TlfMock) EphemeralEncryptionKey(ctx context.Context, tlfName string, tlfID chat1.TLFID, ...) (keybase1.TeamEk, error)
- func (m *TlfMock) Lookup(ctx context.Context, tlfName string, public bool) (res *types.NameInfo, err error)
- func (m *TlfMock) PublicCanonicalTLFNameAndID(ctx context.Context, tlfName string) (keybase1.CanonicalTLFNameAndIDWithBreaks, error)
Constants ¶
View Source
const DefaultDeviceName = "my device"
Variables ¶
This section is empty.
Functions ¶
func AssertProvisioned ¶ added in v1.0.27
func AssertProvisioned(tc libkb.TestContext) error
func CanonicalTlfNameForTest ¶ added in v1.0.18
func CanonicalTlfNameForTest(tlfName string) keybase1.CanonicalTlfName
func CheckTeamMiscNotifications ¶ added in v1.0.42
func CheckTeamMiscNotifications(tc libkb.TestContext, notifications *TeamNotifyListener)
func DeleteAccount ¶ added in v1.0.48
func DeleteAccount(tc libkb.TestContext, u *FakeUser)
func NewMetaContextForTest ¶
func NewMetaContextForTest(c ChatTestContext) libkb.MetaContext
func ResetAccount ¶ added in v1.0.27
func ResetAccount(tc libkb.TestContext, u *FakeUser)
copied from engine/common_test.go
Types ¶
type ByUsername ¶ added in v1.0.19
type ByUsername []*FakeUser
func (ByUsername) Len ¶ added in v1.0.19
func (m ByUsername) Len() int
func (ByUsername) Less ¶ added in v1.0.19
func (m ByUsername) Less(i, j int) bool
func (ByUsername) Swap ¶ added in v1.0.19
func (m ByUsername) Swap(i, j int)
type ChatMockWorld ¶ added in v1.0.18
type ChatMockWorld struct { Fc clockwork.FakeClock T testing.TB Tcs map[string]*ChatTestContext TcsByID map[string]*ChatTestContext Users map[string]*FakeUser // each slice should always be sorted by message ID in desc, i.e. newest messages first Msgs map[string][]*chat1.MessageBoxed // contains filtered or unexported fields }
func NewChatMockWorld ¶ added in v1.0.18
func NewChatMockWorld(t *testing.T, name string, numUsers int) (world *ChatMockWorld)
func (*ChatMockWorld) Cleanup ¶ added in v1.0.18
func (w *ChatMockWorld) Cleanup()
func (*ChatMockWorld) GetConversationByID ¶ added in v1.0.18
func (w *ChatMockWorld) GetConversationByID(convID chat1.ConversationID) *chat1.Conversation
func (*ChatMockWorld) GetUsers ¶ added in v1.0.19
func (w *ChatMockWorld) GetUsers() (res []*FakeUser)
type ChatRemoteMock ¶ added in v1.0.18
type ChatRemoteMock struct { CacheBodiesVersion int CacheInboxVersion int SyncInboxFunc func(m *ChatRemoteMock, ctx context.Context, vers chat1.InboxVers) (chat1.SyncInboxRes, error) // contains filtered or unexported fields }
func NewChatRemoteMock ¶ added in v1.0.18
func NewChatRemoteMock(world *ChatMockWorld) (m *ChatRemoteMock)
func (*ChatRemoteMock) DeleteConversation ¶ added in v1.0.31
func (m *ChatRemoteMock) DeleteConversation(ctx context.Context, convID chat1.ConversationID) (chat1.DeleteConversationRemoteRes, error)
func (*ChatRemoteMock) GetConversationMetadataRemote ¶ added in v1.0.18
func (m *ChatRemoteMock) GetConversationMetadataRemote(ctx context.Context, convID chat1.ConversationID) (res chat1.GetConversationMetadataRemoteRes, err error)
func (*ChatRemoteMock) GetGlobalAppNotificationSettings ¶ added in v1.0.27
func (m *ChatRemoteMock) GetGlobalAppNotificationSettings(ctx context.Context) (chat1.GlobalAppNotificationSettings, error)
func (*ChatRemoteMock) GetInboxByTLFIDRemote ¶ added in v1.0.18
func (m *ChatRemoteMock) GetInboxByTLFIDRemote(ctx context.Context, tlfID chat1.TLFID) (res chat1.GetInboxByTLFIDRemoteRes, err error)
func (*ChatRemoteMock) GetInboxRemote ¶ added in v1.0.18
func (m *ChatRemoteMock) GetInboxRemote(ctx context.Context, arg chat1.GetInboxRemoteArg) (res chat1.GetInboxRemoteRes, err error)
func (*ChatRemoteMock) GetInboxVersion ¶ added in v1.0.19
func (*ChatRemoteMock) GetMessageBefore ¶ added in v1.0.40
func (m *ChatRemoteMock) GetMessageBefore(ctx context.Context, arg chat1.GetMessageBeforeArg) (chat1.GetMessageBeforeRes, error)
func (*ChatRemoteMock) GetMessagesRemote ¶ added in v1.0.18
func (m *ChatRemoteMock) GetMessagesRemote(ctx context.Context, arg chat1.GetMessagesRemoteArg) (res chat1.GetMessagesRemoteRes, err error)
func (*ChatRemoteMock) GetPublicConversations ¶ added in v1.0.19
func (m *ChatRemoteMock) GetPublicConversations(ctx context.Context, arg chat1.GetPublicConversationsArg) (res chat1.GetPublicConversationsRes, err error)
func (*ChatRemoteMock) GetS3Params ¶ added in v1.0.18
func (m *ChatRemoteMock) GetS3Params(context.Context, chat1.ConversationID) (chat1.S3Params, error)
func (*ChatRemoteMock) GetTLFConversations ¶ added in v1.0.27
func (m *ChatRemoteMock) GetTLFConversations(ctx context.Context, arg chat1.GetTLFConversationsArg) (chat1.GetTLFConversationsRes, error)
func (*ChatRemoteMock) GetThreadRemote ¶ added in v1.0.18
func (m *ChatRemoteMock) GetThreadRemote(ctx context.Context, arg chat1.GetThreadRemoteArg) (res chat1.GetThreadRemoteRes, err error)
func (*ChatRemoteMock) GetUnreadUpdateFull ¶ added in v1.0.19
func (m *ChatRemoteMock) GetUnreadUpdateFull(ctx context.Context, inboxVers chat1.InboxVers) (chat1.UnreadUpdateFull, error)
func (*ChatRemoteMock) JoinConversation ¶ added in v1.0.27
func (m *ChatRemoteMock) JoinConversation(ctx context.Context, convID chat1.ConversationID) (chat1.JoinLeaveConversationRemoteRes, error)
func (*ChatRemoteMock) LeaveConversation ¶ added in v1.0.27
func (m *ChatRemoteMock) LeaveConversation(ctx context.Context, convID chat1.ConversationID) (chat1.JoinLeaveConversationRemoteRes, error)
func (*ChatRemoteMock) MarkAsRead ¶ added in v1.0.18
func (m *ChatRemoteMock) MarkAsRead(ctx context.Context, arg chat1.MarkAsReadArg) (res chat1.MarkAsReadRes, err error)
func (*ChatRemoteMock) NewConversationRemote ¶ added in v1.0.18
func (m *ChatRemoteMock) NewConversationRemote(ctx context.Context, arg chat1.ConversationIDTriple) (res chat1.NewConversationRemoteRes, err error)
func (*ChatRemoteMock) NewConversationRemote2 ¶ added in v1.0.18
func (m *ChatRemoteMock) NewConversationRemote2(ctx context.Context, arg chat1.NewConversationRemote2Arg) (res chat1.NewConversationRemoteRes, err error)
func (*ChatRemoteMock) PostRemote ¶ added in v1.0.18
func (m *ChatRemoteMock) PostRemote(ctx context.Context, arg chat1.PostRemoteArg) (res chat1.PostRemoteRes, err error)
func (*ChatRemoteMock) PreviewConversation ¶ added in v1.0.34
func (m *ChatRemoteMock) PreviewConversation(ctx context.Context, convID chat1.ConversationID) (chat1.JoinLeaveConversationRemoteRes, error)
func (*ChatRemoteMock) PublishReadMessage ¶ added in v1.0.19
func (m *ChatRemoteMock) PublishReadMessage(ctx context.Context, arg chat1.PublishReadMessageArg) error
func (*ChatRemoteMock) PublishSetConversationStatus ¶ added in v1.0.19
func (m *ChatRemoteMock) PublishSetConversationStatus(ctx context.Context, arg chat1.PublishSetConversationStatusArg) error
func (*ChatRemoteMock) RemoteNotificationSuccessful ¶ added in v1.0.27
func (m *ChatRemoteMock) RemoteNotificationSuccessful(ctx context.Context, arg chat1.RemoteNotificationSuccessfulArg) error
func (*ChatRemoteMock) RetentionSweepConv ¶ added in v1.0.42
func (m *ChatRemoteMock) RetentionSweepConv(ctx context.Context, convID chat1.ConversationID) (res chat1.SweepRes, err error)
func (*ChatRemoteMock) SetAppNotificationSettings ¶ added in v1.0.27
func (m *ChatRemoteMock) SetAppNotificationSettings(ctx context.Context, arg chat1.SetAppNotificationSettingsArg) (res chat1.SetAppNotificationSettingsRes, err error)
func (*ChatRemoteMock) SetConvRetention ¶ added in v1.0.40
func (m *ChatRemoteMock) SetConvRetention(ctx context.Context, _ chat1.SetConvRetentionArg) (res chat1.SetRetentionRes, err error)
func (*ChatRemoteMock) SetConversationStatus ¶ added in v1.0.18
func (m *ChatRemoteMock) SetConversationStatus(ctx context.Context, arg chat1.SetConversationStatusArg) (res chat1.SetConversationStatusRes, err error)
func (*ChatRemoteMock) SetCurrentUser ¶ added in v1.0.19
func (m *ChatRemoteMock) SetCurrentUser(uid gregor1.UID)
func (*ChatRemoteMock) SetGlobalAppNotificationSettings ¶ added in v1.0.27
func (m *ChatRemoteMock) SetGlobalAppNotificationSettings(ctx context.Context, arg chat1.GlobalAppNotificationSettings) error
func (*ChatRemoteMock) SetTeamRetention ¶ added in v1.0.40
func (m *ChatRemoteMock) SetTeamRetention(ctx context.Context, _ chat1.SetTeamRetentionArg) (res chat1.SetRetentionRes, err error)
func (*ChatRemoteMock) SyncAll ¶ added in v1.0.21
func (m *ChatRemoteMock) SyncAll(ctx context.Context, arg chat1.SyncAllArg) (res chat1.SyncAllResult, err error)
func (*ChatRemoteMock) SyncChat ¶ added in v1.0.21
func (m *ChatRemoteMock) SyncChat(ctx context.Context, vers chat1.InboxVers) (chat1.SyncChatRes, error)
func (*ChatRemoteMock) SyncInbox ¶ added in v1.0.21
func (m *ChatRemoteMock) SyncInbox(ctx context.Context, vers chat1.InboxVers) (chat1.SyncInboxRes, error)
func (*ChatRemoteMock) TlfFinalize ¶ added in v1.0.18
func (m *ChatRemoteMock) TlfFinalize(ctx context.Context, arg chat1.TlfFinalizeArg) error
func (*ChatRemoteMock) TlfResolve ¶ added in v1.0.19
func (m *ChatRemoteMock) TlfResolve(ctx context.Context, arg chat1.TlfResolveArg) error
func (*ChatRemoteMock) UpdateTypingRemote ¶ added in v1.0.27
func (m *ChatRemoteMock) UpdateTypingRemote(ctx context.Context, arg chat1.UpdateTypingRemoteArg) error
func (*ChatRemoteMock) UpgradeKBFSToImpteam ¶ added in v1.0.41
type ChatTestContext ¶ added in v1.0.19
type ChatTestContext struct { libkb.TestContext ChatG *globals.ChatContext }
func (ChatTestContext) Cleanup ¶ added in v1.0.19
func (c ChatTestContext) Cleanup()
func (ChatTestContext) Context ¶ added in v1.0.22
func (c ChatTestContext) Context() *globals.Context
type ChatUI ¶ added in v1.0.19
type ChatUI struct {
// contains filtered or unexported fields
}
func NewChatUI ¶ added in v1.0.19
func NewChatUI(inboxCb chan NonblockInboxResult, threadCb chan NonblockThreadResult, searchHitCb chan chat1.ChatSearchHitArg, searchDoneCb chan chat1.ChatSearchDoneArg) *ChatUI
func (*ChatUI) ChatAttachmentDownloadDone ¶ added in v1.0.19
func (*ChatUI) ChatAttachmentDownloadProgress ¶ added in v1.0.19
func (*ChatUI) ChatAttachmentDownloadStart ¶ added in v1.0.19
func (*ChatUI) ChatAttachmentPreviewUploadDone ¶ added in v1.0.19
func (*ChatUI) ChatAttachmentPreviewUploadStart ¶ added in v1.0.19
func (*ChatUI) ChatAttachmentUploadDone ¶ added in v1.0.19
func (*ChatUI) ChatAttachmentUploadOutboxID ¶ added in v1.0.21
func (*ChatUI) ChatAttachmentUploadProgress ¶ added in v1.0.19
func (*ChatUI) ChatAttachmentUploadStart ¶ added in v1.0.19
func (*ChatUI) ChatConfirmChannelDelete ¶ added in v1.0.31
func (*ChatUI) ChatInboxConversation ¶ added in v1.0.19
func (*ChatUI) ChatInboxFailed ¶ added in v1.0.19
func (*ChatUI) ChatInboxUnverified ¶ added in v1.0.19
func (*ChatUI) ChatSearchDone ¶ added in v1.0.42
func (*ChatUI) ChatSearchHit ¶ added in v1.0.42
func (*ChatUI) ChatThreadCached ¶ added in v1.0.21
func (*ChatUI) ChatThreadFull ¶ added in v1.0.21
type DummyAssetDeleter ¶
type DummyAssetDeleter struct{}
func NewDummyAssetDeleter ¶
func NewDummyAssetDeleter() DummyAssetDeleter
func (DummyAssetDeleter) DeleteAssets ¶
func (d DummyAssetDeleter) DeleteAssets(ctx context.Context, uid gregor1.UID, convID chat1.ConversationID, assets []chat1.Asset)
DeleteAssets implements github.com/keybase/go/chat/storage/storage.AssetDeleter interface.
type FakeIdentifyUI ¶ added in v1.0.16
type FakeIdentifyUI struct { Proofs map[string]string ProofResults map[string]keybase1.LinkCheckResult User *keybase1.User Confirmed bool Keys map[libkb.PGPFingerprint]*keybase1.TrackDiff DisplayKeyCalls int Outcome *keybase1.IdentifyOutcome StartCount int Token keybase1.TrackToken BrokenTracking bool DisplayTLFArg keybase1.DisplayTLFCreateWithInviteArg DisplayTLFCount int sync.Mutex }
func (*FakeIdentifyUI) Cancel ¶ added in v1.0.18
func (ui *FakeIdentifyUI) Cancel() error
func (*FakeIdentifyUI) Confirm ¶ added in v1.0.16
func (ui *FakeIdentifyUI) Confirm(outcome *keybase1.IdentifyOutcome) (result keybase1.ConfirmResult, err error)
func (*FakeIdentifyUI) Dismiss ¶ added in v1.0.16
func (ui *FakeIdentifyUI) Dismiss(_ string, _ keybase1.DismissReason) error
func (*FakeIdentifyUI) DisplayCryptocurrency ¶ added in v1.0.16
func (ui *FakeIdentifyUI) DisplayCryptocurrency(keybase1.Cryptocurrency) error
func (*FakeIdentifyUI) DisplayKey ¶ added in v1.0.16
func (ui *FakeIdentifyUI) DisplayKey(ik keybase1.IdentifyKey) error
func (*FakeIdentifyUI) DisplayTLFCreateWithInvite ¶ added in v1.0.16
func (ui *FakeIdentifyUI) DisplayTLFCreateWithInvite(arg keybase1.DisplayTLFCreateWithInviteArg) error
func (*FakeIdentifyUI) DisplayTrackStatement ¶ added in v1.0.16
func (ui *FakeIdentifyUI) DisplayTrackStatement(string) error
func (*FakeIdentifyUI) DisplayUserCard ¶ added in v1.0.16
func (ui *FakeIdentifyUI) DisplayUserCard(keybase1.UserCard) error
func (*FakeIdentifyUI) Finish ¶ added in v1.0.16
func (ui *FakeIdentifyUI) Finish() error
func (*FakeIdentifyUI) FinishSocialProofCheck ¶ added in v1.0.16
func (ui *FakeIdentifyUI) FinishSocialProofCheck(proof keybase1.RemoteProof, result keybase1.LinkCheckResult) error
func (*FakeIdentifyUI) FinishWebProofCheck ¶ added in v1.0.16
func (ui *FakeIdentifyUI) FinishWebProofCheck(proof keybase1.RemoteProof, result keybase1.LinkCheckResult) error
func (*FakeIdentifyUI) LaunchNetworkChecks ¶ added in v1.0.16
func (*FakeIdentifyUI) ReportLastTrack ¶ added in v1.0.16
func (ui *FakeIdentifyUI) ReportLastTrack(*keybase1.TrackSummary) error
func (*FakeIdentifyUI) ReportTrackToken ¶ added in v1.0.16
func (ui *FakeIdentifyUI) ReportTrackToken(tok keybase1.TrackToken) error
func (*FakeIdentifyUI) SetStrict ¶ added in v1.0.16
func (ui *FakeIdentifyUI) SetStrict(b bool)
func (*FakeIdentifyUI) Start ¶ added in v1.0.16
func (ui *FakeIdentifyUI) Start(username string, _ keybase1.IdentifyReason, forceDisplay bool) error
type FakeUser ¶
type FakeUser struct { Username string Email string Passphrase string User *libkb.User EldestSeqno keybase1.Seqno }
func CreateAndSignupFakeUser ¶
func CreateAndSignupFakeUser(prefix string, g *libkb.GlobalContext) (*FakeUser, error)
func CreateAndSignupFakeUserPaper ¶ added in v1.0.30
func CreateAndSignupFakeUserPaper(prefix string, g *libkb.GlobalContext) (*FakeUser, error)
func NewFakeUser ¶
func (*FakeUser) GetUserVersion ¶ added in v1.0.27
func (fu *FakeUser) GetUserVersion() keybase1.UserVersion
func (*FakeUser) NewSecretUI ¶
func (fu *FakeUser) NewSecretUI() *libkb.TestSecretUI
func (FakeUser) NormalizedUsername ¶
func (fu FakeUser) NormalizedUsername() libkb.NormalizedUsername
type NonblockInboxResult ¶ added in v1.0.19
type NonblockInboxResult struct { ConvID chat1.ConversationID Err error ConvRes *chat1.InboxUIItem InboxRes *chat1.UnverifiedInboxUIItems }
type NonblockSearchResult ¶ added in v1.0.42
type NonblockSearchResult struct {
chat1.ChatSearchHitArg
}
type NonblockThreadResult ¶ added in v1.0.21
type NonblockThreadResult struct { Thread *chat1.UIMessages Full bool }
type TeamNotifyListener ¶ added in v1.0.42
type TeamNotifyListener struct { libkb.NoopNotifyListener // contains filtered or unexported fields }
func NewTeamNotifyListener ¶ added in v1.0.42
func NewTeamNotifyListener() *TeamNotifyListener
func (*TeamNotifyListener) TeamChangedByID ¶ added in v1.0.42
func (n *TeamNotifyListener) TeamChangedByID(teamID keybase1.TeamID, latestSeqno keybase1.Seqno, implicitTeam bool, changes keybase1.TeamChangeSet)
func (*TeamNotifyListener) TeamChangedByName ¶ added in v1.0.42
func (n *TeamNotifyListener) TeamChangedByName(teamName string, latestSeqno keybase1.Seqno, implicitTeam bool, changes keybase1.TeamChangeSet)
type TestProvisionUI ¶ added in v1.0.47
func (*TestProvisionUI) ChooseDevice ¶ added in v1.0.47
func (u *TestProvisionUI) ChooseDevice(_ context.Context, arg keybase1.ChooseDeviceArg) (keybase1.DeviceID, error)
func (*TestProvisionUI) ChooseDeviceType ¶ added in v1.0.47
func (u *TestProvisionUI) ChooseDeviceType(_ context.Context, _ keybase1.ChooseDeviceTypeArg) (keybase1.DeviceType, error)
func (*TestProvisionUI) ChooseGPGMethod ¶ added in v1.0.47
func (u *TestProvisionUI) ChooseGPGMethod(_ context.Context, _ keybase1.ChooseGPGMethodArg) (keybase1.GPGMethod, error)
func (*TestProvisionUI) ChooseProvisioningMethod ¶ added in v1.0.47
func (u *TestProvisionUI) ChooseProvisioningMethod(_ context.Context, _ keybase1.ChooseProvisioningMethodArg) (keybase1.ProvisionMethod, error)
func (*TestProvisionUI) DisplayAndPromptSecret ¶ added in v1.0.47
func (u *TestProvisionUI) DisplayAndPromptSecret(_ context.Context, arg keybase1.DisplayAndPromptSecretArg) (keybase1.SecretResponse, error)
func (*TestProvisionUI) DisplaySecretExchanged ¶ added in v1.0.47
func (u *TestProvisionUI) DisplaySecretExchanged(_ context.Context, _ int) error
func (*TestProvisionUI) PromptNewDeviceName ¶ added in v1.0.47
func (u *TestProvisionUI) PromptNewDeviceName(_ context.Context, arg keybase1.PromptNewDeviceNameArg) (string, error)
func (*TestProvisionUI) ProvisioneeSuccess ¶ added in v1.0.47
func (u *TestProvisionUI) ProvisioneeSuccess(_ context.Context, _ keybase1.ProvisioneeSuccessArg) error
func (*TestProvisionUI) ProvisionerSuccess ¶ added in v1.0.47
func (u *TestProvisionUI) ProvisionerSuccess(_ context.Context, _ keybase1.ProvisionerSuccessArg) error
func (*TestProvisionUI) SwitchToGPGSignOK ¶ added in v1.0.47
func (u *TestProvisionUI) SwitchToGPGSignOK(ctx context.Context, arg keybase1.SwitchToGPGSignOKArg) (bool, error)
type TlfMock ¶ added in v1.0.18
func NewTlfMock ¶ added in v1.0.18
func NewTlfMock(world *ChatMockWorld) *TlfMock
func (*TlfMock) CompleteAndCanonicalizePrivateTlfName ¶ added in v1.0.18
func (*TlfMock) DecryptionKeys ¶ added in v1.0.42
func (*TlfMock) EncryptionKeys ¶ added in v1.0.42
func (*TlfMock) EphemeralDecryptionKey ¶ added in v1.0.48
func (*TlfMock) EphemeralEncryptionKey ¶ added in v1.0.48
func (*TlfMock) PublicCanonicalTLFNameAndID ¶ added in v1.0.18
Click to show internal directories.
Click to hide internal directories.