Documentation ¶
Index ¶
- func CanonicalTlfNameForTest(tlfName string) keybase1.CanonicalTlfName
- type ChatMockWorld
- type ChatRemoteMock
- func (m *ChatRemoteMock) GetConversationMetadataRemote(ctx context.Context, convID chat1.ConversationID) (res chat1.GetConversationMetadataRemoteRes, err 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) GetMessagesRemote(ctx context.Context, arg chat1.GetMessagesRemoteArg) (res chat1.GetMessagesRemoteRes, err error)
- func (m *ChatRemoteMock) GetS3Params(context.Context, chat1.ConversationID) (chat1.S3Params, error)
- func (m *ChatRemoteMock) GetThreadRemote(ctx context.Context, arg chat1.GetThreadRemoteArg) (res chat1.GetThreadRemoteRes, err 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) S3Sign(context.Context, chat1.S3SignArg) ([]byte, error)
- func (m *ChatRemoteMock) SetConversationStatus(ctx context.Context, arg chat1.SetConversationStatusArg) (res chat1.SetConversationStatusRes, err error)
- func (m *ChatRemoteMock) TlfFinalize(ctx context.Context, tlfID chat1.TLFID) error
- 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 TlfMock
- func (m TlfMock) CompleteAndCanonicalizePrivateTlfName(ctx context.Context, arg keybase1.TLFQuery) (res keybase1.CanonicalTLFNameAndIDWithBreaks, err error)
- func (m TlfMock) CryptKeys(ctx context.Context, arg keybase1.TLFQuery) (res keybase1.GetTLFCryptKeysRes, err error)
- func (m TlfMock) PublicCanonicalTLFNameAndID(ctx context.Context, arg keybase1.TLFQuery) (keybase1.CanonicalTLFNameAndIDWithBreaks, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalTlfNameForTest ¶ added in v1.0.18
func CanonicalTlfNameForTest(tlfName string) keybase1.CanonicalTlfName
Types ¶
type ChatMockWorld ¶ added in v1.0.18
type ChatMockWorld struct { Fc clockwork.FakeClock Tcs map[string]*libkb.TestContext 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
type ChatRemoteMock ¶ added in v1.0.18
type ChatRemoteMock struct {
// contains filtered or unexported fields
}
func NewChatRemoteMock ¶ added in v1.0.18
func NewChatRemoteMock(world *ChatMockWorld) (m *ChatRemoteMock)
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) 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) GetMessagesRemote ¶ added in v1.0.18
func (m *ChatRemoteMock) GetMessagesRemote(ctx context.Context, arg chat1.GetMessagesRemoteArg) (res chat1.GetMessagesRemoteRes, err error)
func (*ChatRemoteMock) GetS3Params ¶ added in v1.0.18
func (m *ChatRemoteMock) GetS3Params(context.Context, chat1.ConversationID) (chat1.S3Params, 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) 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) SetConversationStatus ¶ added in v1.0.18
func (m *ChatRemoteMock) SetConversationStatus(ctx context.Context, arg chat1.SetConversationStatusArg) (res chat1.SetConversationStatusRes, err error)
func (*ChatRemoteMock) TlfFinalize ¶ added in v1.0.18
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 ¶
func CreateAndSignupFakeUser ¶
func CreateAndSignupFakeUser(prefix string, g *libkb.GlobalContext) (*FakeUser, error)
func NewFakeUser ¶
func (*FakeUser) NewSecretUI ¶
func (fu *FakeUser) NewSecretUI() *libkb.TestSecretUI
type TlfMock ¶ added in v1.0.18
type TlfMock struct {
// contains filtered or unexported fields
}
func NewTlfMock ¶ added in v1.0.18
func NewTlfMock(world *ChatMockWorld) TlfMock
func (TlfMock) CompleteAndCanonicalizePrivateTlfName ¶ added in v1.0.18
func (m TlfMock) CompleteAndCanonicalizePrivateTlfName(ctx context.Context, arg keybase1.TLFQuery) (res keybase1.CanonicalTLFNameAndIDWithBreaks, err error)
Not used by service tests
func (TlfMock) PublicCanonicalTLFNameAndID ¶ added in v1.0.18
Click to show internal directories.
Click to hide internal directories.