test

package
v5.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: BSD-3-Clause, BSD-3-Clause, BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaemonKBPKI

type DaemonKBPKI struct {
	idutil.KBPKI
	Daemon *idutil.DaemonLocal
}

DaemonKBPKI is a hacky way to make a KBPKI instance that uses some methods from KeybaseService.

func (*DaemonKBPKI) GetCurrentSession

func (d *DaemonKBPKI) GetCurrentSession(ctx context.Context) (
	idutil.SessionInfo, error)

GetCurrentSession implements the idutil.DaemonLocal interface for DaemonKBPKI.

func (*DaemonKBPKI) GetNormalizedUsername

GetNormalizedUsername implements the idutil.DaemonLocal interface for DaemonKBPKI.

func (*DaemonKBPKI) Identify

Identify implements the idutil.DaemonLocal interface for DaemonKBPKI.

func (*DaemonKBPKI) NormalizeSocialAssertion

func (d *DaemonKBPKI) NormalizeSocialAssertion(
	ctx context.Context, assertion string) (
	keybase1.SocialAssertion, error)

NormalizeSocialAssertion implements the idutil.DaemonLocal interface for DaemonKBPKI.

func (*DaemonKBPKI) Resolve

Resolve implements the idutil.DaemonLocal interface for DaemonKBPKI.

func (*DaemonKBPKI) ResolveImplicitTeam

func (d *DaemonKBPKI) ResolveImplicitTeam(
	ctx context.Context, assertions, suffix string, tlfType tlf.Type,
	offline keybase1.OfflineAvailability) (
	idutil.ImplicitTeamInfo, error)

ResolveImplicitTeam implements the idutil.DaemonLocal interface for DaemonKBPKI.

func (*DaemonKBPKI) ResolveTeamTLFID

func (d *DaemonKBPKI) ResolveTeamTLFID(
	ctx context.Context, teamID keybase1.TeamID,
	offline keybase1.OfflineAvailability) (tlf.ID, error)

ResolveTeamTLFID implements the idutil.DaemonLocal interface for DaemonKBPKI.

type IdentifyCountingKBPKI

type IdentifyCountingKBPKI struct {
	idutil.KBPKI
	// contains filtered or unexported fields
}

IdentifyCountingKBPKI is a KBPKI instance that counts calls to Identify.

func (*IdentifyCountingKBPKI) GetIdentifyCalls

func (ik *IdentifyCountingKBPKI) GetIdentifyCalls() int

GetIdentifyCalls returns the number of times Identify has been called.

func (*IdentifyCountingKBPKI) Identify

Identify implements the idutil.Identifier interface for IdentifyCountingKBPKI.

type NormalizedUsernameGetter

type NormalizedUsernameGetter map[keybase1.UserOrTeamID]kbname.NormalizedUsername

NormalizedUsernameGetter is a simple map of IDs -> usernames that can be useful for testing.

func (NormalizedUsernameGetter) GetNormalizedUsername

GetNormalizedUsername implements the idutil.NormalizedUsernameGetter interface for NormalizedUsernameGetter.

func (NormalizedUsernameGetter) UIDMap

UIDMap converts this getter into a typed map of user IDs -> normalized names.

Jump to

Keyboard shortcuts

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