test

package
v3.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: BSD-3-Clause, BSD-3-Clause, BSD-3-Clause Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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