Documentation ¶
Index ¶
- type DaemonKBPKI
- func (d *DaemonKBPKI) GetCurrentSession(ctx context.Context) (idutil.SessionInfo, error)
- func (d *DaemonKBPKI) GetNormalizedUsername(ctx context.Context, id keybase1.UserOrTeamID, ...) (kbname.NormalizedUsername, error)
- func (d *DaemonKBPKI) Identify(ctx context.Context, assertion, reason string, ...) (kbname.NormalizedUsername, keybase1.UserOrTeamID, error)
- func (d *DaemonKBPKI) NormalizeSocialAssertion(ctx context.Context, assertion string) (keybase1.SocialAssertion, error)
- func (d *DaemonKBPKI) Resolve(ctx context.Context, assertion string, offline keybase1.OfflineAvailability) (kbname.NormalizedUsername, keybase1.UserOrTeamID, error)
- func (d *DaemonKBPKI) ResolveImplicitTeam(ctx context.Context, assertions, suffix string, tlfType tlf.Type, ...) (idutil.ImplicitTeamInfo, error)
- func (d *DaemonKBPKI) ResolveTeamTLFID(ctx context.Context, teamID keybase1.TeamID, ...) (tlf.ID, error)
- type IdentifyCountingKBPKI
- type NormalizedUsernameGetter
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 ¶
func (d *DaemonKBPKI) GetNormalizedUsername( ctx context.Context, id keybase1.UserOrTeamID, offline keybase1.OfflineAvailability) (kbname.NormalizedUsername, error)
GetNormalizedUsername implements the idutil.DaemonLocal interface for DaemonKBPKI.
func (*DaemonKBPKI) Identify ¶
func (d *DaemonKBPKI) Identify( ctx context.Context, assertion, reason string, offline keybase1.OfflineAvailability) ( kbname.NormalizedUsername, keybase1.UserOrTeamID, error)
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 ¶
func (d *DaemonKBPKI) Resolve( ctx context.Context, assertion string, offline keybase1.OfflineAvailability) ( kbname.NormalizedUsername, keybase1.UserOrTeamID, error)
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 ¶
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 ¶
func (ik *IdentifyCountingKBPKI) Identify( ctx context.Context, assertion, reason string, offline keybase1.OfflineAvailability) ( kbname.NormalizedUsername, keybase1.UserOrTeamID, error)
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 ¶
func (g NormalizedUsernameGetter) GetNormalizedUsername( ctx context.Context, id keybase1.UserOrTeamID, _ keybase1.OfflineAvailability) (kbname.NormalizedUsername, error)
GetNormalizedUsername implements the idutil.NormalizedUsernameGetter interface for NormalizedUsernameGetter.
func (NormalizedUsernameGetter) UIDMap ¶
func (g NormalizedUsernameGetter) UIDMap() map[keybase1.UserOrTeamID]kbname.NormalizedUsername
UIDMap converts this getter into a typed map of user IDs -> normalized names.