service

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2016 License: BSD-3-Clause, BSD-3-Clause Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSession = errors.New("no current session")

Functions

func GetCommands

func GetCommands(cl *libcmdline.CommandLine, g *libkb.GlobalContext) []cli.Command

func NewGregorMsgID added in v1.0.17

func NewGregorMsgID() (gregor1.MsgID, error)

Types

type APIServerHandler added in v1.0.17

type APIServerHandler struct {
	*BaseHandler
	libkb.Contextified
}

func NewAPIServerHandler added in v1.0.17

func NewAPIServerHandler(xp rpc.Transporter, g *libkb.GlobalContext) *APIServerHandler

func (*APIServerHandler) Get added in v1.0.17

func (*APIServerHandler) Post added in v1.0.17

func (*APIServerHandler) PostJSON added in v1.0.17

type AccountHandler

type AccountHandler struct {
	*BaseHandler
	libkb.Contextified
}

func NewAccountHandler

func NewAccountHandler(xp rpc.Transporter, g *libkb.GlobalContext) *AccountHandler

func (*AccountHandler) PassphraseChange

func (h *AccountHandler) PassphraseChange(_ context.Context, arg keybase1.PassphraseChangeArg) error

func (*AccountHandler) PassphrasePrompt

type BTCHandler

type BTCHandler struct {
	*BaseHandler
	libkb.Contextified
}

func NewBTCHandler

func NewBTCHandler(xp rpc.Transporter, g *libkb.GlobalContext) *BTCHandler

func (*BTCHandler) RegisterBTC

func (h *BTCHandler) RegisterBTC(_ context.Context, arg keybase1.RegisterBTCArg) error

BTC creates a BTCEngine and runs it.

type BadTrackSessionError

type BadTrackSessionError struct {
	// contains filtered or unexported fields
}

func (BadTrackSessionError) Error

func (e BadTrackSessionError) Error() string

func (BadTrackSessionError) ToStatus

func (e BadTrackSessionError) ToStatus() keybase1.Status

type BaseHandler

type BaseHandler struct {
	// contains filtered or unexported fields
}

func NewBaseHandler

func NewBaseHandler(xp rpc.Transporter) *BaseHandler

func (*BaseHandler) NewRemoteIdentifyUI

func (h *BaseHandler) NewRemoteIdentifyUI(sessionID int, g *libkb.GlobalContext) *RemoteIdentifyUI

func (*BaseHandler) NewRemoteSkipPromptIdentifyUI

func (h *BaseHandler) NewRemoteSkipPromptIdentifyUI(sessionID int, g *libkb.GlobalContext) *RemoteIdentifyUI

type ConfigHandler

type ConfigHandler struct {
	libkb.Contextified
	// contains filtered or unexported fields
}

func (ConfigHandler) CheckAPIServerOutOfDateWarning added in v1.0.17

func (h ConfigHandler) CheckAPIServerOutOfDateWarning(_ context.Context) (keybase1.OutOfDateInfo, error)

func (ConfigHandler) ClearValue

func (h ConfigHandler) ClearValue(_ context.Context, path string) error

func (ConfigHandler) GetConfig

func (h ConfigHandler) GetConfig(_ context.Context, sessionID int) (keybase1.Config, error)

func (ConfigHandler) GetCurrentStatus

func (h ConfigHandler) GetCurrentStatus(_ context.Context, sessionID int) (res keybase1.GetCurrentStatusRes, err error)

func (ConfigHandler) GetExtendedStatus

func (h ConfigHandler) GetExtendedStatus(_ context.Context, sessionID int) (res keybase1.ExtendedStatus, err error)

func (ConfigHandler) GetValue

func (h ConfigHandler) GetValue(_ context.Context, path string) (ret keybase1.ConfigValue, err error)

func (ConfigHandler) HelloIAm

func (ConfigHandler) SetPath

func (ConfigHandler) SetUserConfig

func (h ConfigHandler) SetUserConfig(_ context.Context, arg keybase1.SetUserConfigArg) (err error)

func (ConfigHandler) SetValue

func (h ConfigHandler) SetValue(_ context.Context, arg keybase1.SetValueArg) (err error)

type CryptoHandler

type CryptoHandler struct {
	libkb.Contextified
}

func NewCryptoHandler

func NewCryptoHandler(g *libkb.GlobalContext) *CryptoHandler

func (*CryptoHandler) SignED25519

func (*CryptoHandler) SignToString

func (c *CryptoHandler) SignToString(_ context.Context, arg keybase1.SignToStringArg) (string, error)

func (*CryptoHandler) UnboxBytes32

func (*CryptoHandler) UnboxBytes32Any

type CtlHandler

type CtlHandler struct {
	libkb.Contextified

	*BaseHandler
	// contains filtered or unexported fields
}

func NewCtlHandler

func NewCtlHandler(xp rpc.Transporter, v *Service, g *libkb.GlobalContext) *CtlHandler

func (*CtlHandler) AppExit added in v1.0.17

func (c *CtlHandler) AppExit(_ context.Context, sessionID int) error

func (*CtlHandler) DbNuke

func (c *CtlHandler) DbNuke(_ context.Context, sessionID int) error

func (*CtlHandler) LogRotate

func (c *CtlHandler) LogRotate(_ context.Context, sessionID int) error

func (*CtlHandler) Reload

func (c *CtlHandler) Reload(_ context.Context, sessionID int) error

func (*CtlHandler) Stop

func (c *CtlHandler) Stop(_ context.Context, args keybase1.StopArg) error

Stop is called on the rpc keybase.1.ctl.stop, which shuts down the service.

type DebuggingHandler

type DebuggingHandler struct {
	*BaseHandler
}

func NewDebuggingHandler

func NewDebuggingHandler(xp rpc.Transporter) *DebuggingHandler

func (DebuggingHandler) FirstStep

func (t DebuggingHandler) FirstStep(ctx context.Context, arg keybase1.FirstStepArg) (result keybase1.FirstStepResult, err error)

func (DebuggingHandler) Increment

func (t DebuggingHandler) Increment(_ context.Context, arg keybase1.IncrementArg) (val int, err error)

func (DebuggingHandler) SecondStep

func (t DebuggingHandler) SecondStep(_ context.Context, arg keybase1.SecondStepArg) (val int, err error)

type DelegateUICtlHandler

type DelegateUICtlHandler struct {
	libkb.Contextified
	*BaseHandler
	// contains filtered or unexported fields
}

DelegateUICtlHandler is the RPC handler for notify control messages

func NewDelegateUICtlHandler

func NewDelegateUICtlHandler(xp rpc.Transporter, id libkb.ConnectionID, g *libkb.GlobalContext) *DelegateUICtlHandler

NewDelegateUICtlHandler creates a new handler for setting up notification channels

func (*DelegateUICtlHandler) RegisterGregorFirehose added in v1.0.17

func (d *DelegateUICtlHandler) RegisterGregorFirehose(_ context.Context) error

func (*DelegateUICtlHandler) RegisterIdentifyUI

func (d *DelegateUICtlHandler) RegisterIdentifyUI(_ context.Context) error

func (*DelegateUICtlHandler) RegisterRekeyUI added in v1.0.17

func (d *DelegateUICtlHandler) RegisterRekeyUI(_ context.Context) error

func (*DelegateUICtlHandler) RegisterSecretUI

func (d *DelegateUICtlHandler) RegisterSecretUI(_ context.Context) error

func (*DelegateUICtlHandler) RegisterUpdateUI

func (d *DelegateUICtlHandler) RegisterUpdateUI(_ context.Context) error

type DeviceHandler

type DeviceHandler struct {
	*BaseHandler
	libkb.Contextified
}

DeviceHandler is the RPC handler for the device interface.

func NewDeviceHandler

func NewDeviceHandler(xp rpc.Transporter, g *libkb.GlobalContext) *DeviceHandler

NewDeviceHandler creates a DeviceHandler for the xp transport.

func (*DeviceHandler) CheckDeviceNameFormat

func (h *DeviceHandler) CheckDeviceNameFormat(_ context.Context, arg keybase1.CheckDeviceNameFormatArg) (bool, error)

CheckDeviceNameFormat verifies that the device name has a valid format.

func (*DeviceHandler) DeviceAdd

func (h *DeviceHandler) DeviceAdd(c context.Context, sessionID int) error

DeviceAdd starts the kex2 device provisioning on the provisioner (device X/C1)

func (*DeviceHandler) DeviceHistoryList added in v1.0.16

func (h *DeviceHandler) DeviceHistoryList(nctx context.Context, sessionID int) ([]keybase1.DeviceDetail, error)

DeviceHistoryList returns a list of all the devices for a user, with detailed history and provisioner, revoker information.

func (*DeviceHandler) DeviceList

func (h *DeviceHandler) DeviceList(_ context.Context, sessionID int) ([]keybase1.Device, error)

DeviceList returns a list of all the devices for a user.

type FavoriteHandler

type FavoriteHandler struct {
	*BaseHandler
	libkb.Contextified
}

FavoriteHandler implements the keybase1.Favorite protocol

func NewFavoriteHandler

func NewFavoriteHandler(xp rpc.Transporter, g *libkb.GlobalContext) *FavoriteHandler

NewFavoriteHandler creates a FavoriteHandler with the xp protocol.

func (*FavoriteHandler) FavoriteAdd

FavoriteAdd handles the favoriteAdd RPC.

func (*FavoriteHandler) FavoriteIgnore added in v1.0.17

func (h *FavoriteHandler) FavoriteIgnore(_ context.Context, arg keybase1.FavoriteIgnoreArg) error

FavoriteIgnore handles the favoriteIgnore RPC.

func (*FavoriteHandler) GetFavorites added in v1.0.17

func (h *FavoriteHandler) GetFavorites(_ context.Context, sessionID int) (keybase1.FavoritesResult, error)

FavoriteList handles the favoriteList RPC.

type GenericArg added in v1.0.17

type GenericArg interface {
	GetEndpoint() string
	GetHTTPArgs() []keybase1.StringKVPair
	GetHttpStatuses() []int
	GetAppStatusCodes() []int
}

type IdentifyHandler

type IdentifyHandler struct {
	*BaseHandler
	libkb.Contextified
	// contains filtered or unexported fields
}

func NewIdentifyHandler

func NewIdentifyHandler(xp rpc.Transporter, g *libkb.GlobalContext) *IdentifyHandler

func (*IdentifyHandler) Identify

func (*IdentifyHandler) Identify2

func (*IdentifyHandler) Resolve

func (h *IdentifyHandler) Resolve(_ context.Context, arg string) (uid keybase1.UID, err error)

func (*IdentifyHandler) Resolve2

func (h *IdentifyHandler) Resolve2(_ context.Context, arg string) (u keybase1.User, err error)

type IdentifyUIHandler added in v1.0.17

type IdentifyUIHandler struct {
	libkb.Contextified
	// contains filtered or unexported fields
}

func NewIdentifyUIHandler added in v1.0.17

func NewIdentifyUIHandler(g *libkb.GlobalContext, connID libkb.ConnectionID) IdentifyUIHandler

func (IdentifyUIHandler) Create added in v1.0.17

func (h IdentifyUIHandler) Create(ctx context.Context, cli gregor1.IncomingInterface, category string,
	item gregor.Item) (bool, error)

func (IdentifyUIHandler) Dismiss added in v1.0.17

func (h IdentifyUIHandler) Dismiss(ctx context.Context, cli gregor1.IncomingInterface, category string,
	item gregor.Item) (bool, error)

func (IdentifyUIHandler) IsAlive added in v1.0.17

func (h IdentifyUIHandler) IsAlive() bool

func (IdentifyUIHandler) Name added in v1.0.17

func (h IdentifyUIHandler) Name() string

type KBFSHandler

type KBFSHandler struct {
	*BaseHandler
	libkb.Contextified
}

func NewKBFSHandler

func NewKBFSHandler(xp rpc.Transporter, g *libkb.GlobalContext) *KBFSHandler

func (*KBFSHandler) FSEvent

type LogHandler

type LogHandler struct {
	*BaseHandler

	libkb.Contextified
	// contains filtered or unexported fields
}

LogHandler is the RPC handler for the log interface.

func NewLogHandler

func NewLogHandler(xp rpc.Transporter, logReg *logRegister, g *libkb.GlobalContext) *LogHandler

NewLogHandler creates a LogHandler for the xp transport.

func (*LogHandler) RegisterLogger

func (h *LogHandler) RegisterLogger(_ context.Context, arg keybase1.RegisterLoggerArg) (err error)

type LogUI

type LogUI struct {
	// contains filtered or unexported fields
}

func (*LogUI) Critical

func (l *LogUI) Critical(format string, args ...interface{})

func (*LogUI) Debug

func (l *LogUI) Debug(format string, args ...interface{})

func (*LogUI) Errorf

func (l *LogUI) Errorf(format string, args ...interface{})

func (*LogUI) Info

func (l *LogUI) Info(format string, args ...interface{})

func (*LogUI) Log

func (l *LogUI) Log(level keybase1.LogLevel, format string, args []interface{})

func (*LogUI) Notice

func (l *LogUI) Notice(format string, args ...interface{})

func (*LogUI) Warning

func (l *LogUI) Warning(format string, args ...interface{})

type LoginHandler

type LoginHandler struct {
	libkb.Contextified
	*BaseHandler
	// contains filtered or unexported fields
}

func NewLoginHandler

func NewLoginHandler(xp rpc.Transporter, g *libkb.GlobalContext) *LoginHandler

func (*LoginHandler) ClearStoredSecret

func (h *LoginHandler) ClearStoredSecret(_ context.Context, arg keybase1.ClearStoredSecretArg) error

func (*LoginHandler) Deprovision

func (h *LoginHandler) Deprovision(_ context.Context, arg keybase1.DeprovisionArg) error

func (*LoginHandler) GetConfiguredAccounts

func (h *LoginHandler) GetConfiguredAccounts(_ context.Context, sessionID int) ([]keybase1.ConfiguredAccount, error)

func (*LoginHandler) Login

func (h *LoginHandler) Login(ctx context.Context, arg keybase1.LoginArg) error

func (*LoginHandler) Logout

func (h *LoginHandler) Logout(_ context.Context, sessionID int) error

func (*LoginHandler) PGPProvision added in v1.0.17

func (h *LoginHandler) PGPProvision(ctx context.Context, arg keybase1.PGPProvisionArg) error

func (*LoginHandler) PaperKey

func (h *LoginHandler) PaperKey(_ context.Context, sessionID int) error

func (*LoginHandler) PaperKeySubmit added in v1.0.17

func (h *LoginHandler) PaperKeySubmit(_ context.Context, arg keybase1.PaperKeySubmitArg) error

func (*LoginHandler) RecoverAccountFromEmailAddress

func (h *LoginHandler) RecoverAccountFromEmailAddress(_ context.Context, email string) error

func (*LoginHandler) Unlock

func (h *LoginHandler) Unlock(_ context.Context, sessionID int) error

func (*LoginHandler) UnlockWithPassphrase

func (h *LoginHandler) UnlockWithPassphrase(_ context.Context, arg keybase1.UnlockWithPassphraseArg) error

type LoginUI

type LoginUI struct {
	// contains filtered or unexported fields
}

func (*LoginUI) DisplayPaperKeyPhrase

func (u *LoginUI) DisplayPaperKeyPhrase(ctx context.Context, arg keybase1.DisplayPaperKeyPhraseArg) error

func (*LoginUI) DisplayPrimaryPaperKey

func (u *LoginUI) DisplayPrimaryPaperKey(ctx context.Context, arg keybase1.DisplayPrimaryPaperKeyArg) error

func (*LoginUI) GetEmailOrUsername

func (u *LoginUI) GetEmailOrUsername(ctx context.Context, _ int) (string, error)

func (*LoginUI) PromptRevokePaperKeys

func (u *LoginUI) PromptRevokePaperKeys(ctx context.Context, arg keybase1.PromptRevokePaperKeysArg) (bool, error)

type NotConnectedError

type NotConnectedError struct{}

func (NotConnectedError) Error

func (e NotConnectedError) Error() string

type NotifyCtlHandler

type NotifyCtlHandler struct {
	libkb.Contextified
	*BaseHandler
	// contains filtered or unexported fields
}

NotifyCtlHandler is the RPC handler for notify control messages

func NewNotifyCtlHandler

func NewNotifyCtlHandler(xp rpc.Transporter, id libkb.ConnectionID, g *libkb.GlobalContext) *NotifyCtlHandler

NewNotifyCtlHandler creates a new handler for setting up notification channels

func (*NotifyCtlHandler) SetNotifications

type PGPHandler

type PGPHandler struct {
	*BaseHandler
	libkb.Contextified
}

func NewPGPHandler

func NewPGPHandler(xp rpc.Transporter, g *libkb.GlobalContext) *PGPHandler

func (*PGPHandler) PGPDecrypt

func (*PGPHandler) PGPDeletePrimary

func (h *PGPHandler) PGPDeletePrimary(_ context.Context, sessionID int) (err error)

func (*PGPHandler) PGPEncrypt

func (h *PGPHandler) PGPEncrypt(_ context.Context, arg keybase1.PGPEncryptArg) error

func (*PGPHandler) PGPExport

func (h *PGPHandler) PGPExport(_ context.Context, arg keybase1.PGPExportArg) (ret []keybase1.KeyInfo, err error)

func (*PGPHandler) PGPExportByFingerprint

func (h *PGPHandler) PGPExportByFingerprint(_ context.Context, arg keybase1.PGPExportByFingerprintArg) (ret []keybase1.KeyInfo, err error)

func (*PGPHandler) PGPExportByKID

func (h *PGPHandler) PGPExportByKID(_ context.Context, arg keybase1.PGPExportByKIDArg) (ret []keybase1.KeyInfo, err error)

func (*PGPHandler) PGPImport

func (h *PGPHandler) PGPImport(_ context.Context, arg keybase1.PGPImportArg) error

func (*PGPHandler) PGPKeyGen

func (h *PGPHandler) PGPKeyGen(_ context.Context, arg keybase1.PGPKeyGenArg) error

func (*PGPHandler) PGPPull

func (h *PGPHandler) PGPPull(_ context.Context, arg keybase1.PGPPullArg) error

func (*PGPHandler) PGPSelect

func (h *PGPHandler) PGPSelect(_ context.Context, sarg keybase1.PGPSelectArg) error

func (*PGPHandler) PGPSign

func (h *PGPHandler) PGPSign(_ context.Context, arg keybase1.PGPSignArg) (err error)

func (*PGPHandler) PGPUpdate

func (h *PGPHandler) PGPUpdate(_ context.Context, arg keybase1.PGPUpdateArg) error

func (*PGPHandler) PGPVerify

type PaperProvisionHandler added in v1.0.16

type PaperProvisionHandler struct {
	*BaseHandler
	libkb.Contextified
}

func NewPaperProvisionHandler added in v1.0.16

func NewPaperProvisionHandler(xp rpc.Transporter, g *libkb.GlobalContext) *PaperProvisionHandler

func (*PaperProvisionHandler) PaperProvision added in v1.0.16

type ProveHandler

type ProveHandler struct {
	*BaseHandler
	libkb.Contextified
}

ProveHandler is the service side of proving ownership of social media accounts like Twitter and Github.

func NewProveHandler

func NewProveHandler(xp rpc.Transporter, g *libkb.GlobalContext) *ProveHandler

NewProveHandler makes a new ProveHandler object from an RPC transport.

func (*ProveHandler) CheckProof

func (*ProveHandler) StartProof

Prove handles the `keybase.1.startProof` RPC.

type RekeyHandler added in v1.0.17

type RekeyHandler struct {
	libkb.Contextified
	*BaseHandler
	// contains filtered or unexported fields
}

func NewRekeyHandler added in v1.0.17

func NewRekeyHandler(xp rpc.Transporter, g *libkb.GlobalContext, gregor *gregorHandler) *RekeyHandler

func (*RekeyHandler) DebugShowRekeyStatus added in v1.0.17

func (h *RekeyHandler) DebugShowRekeyStatus(ctx context.Context, sessionID int) error

func (*RekeyHandler) GetPendingRekeyStatus added in v1.0.17

func (h *RekeyHandler) GetPendingRekeyStatus(ctx context.Context, sessionID int) (keybase1.ProblemSetDevices, error)

func (*RekeyHandler) RekeyStatusFinish added in v1.0.17

func (h *RekeyHandler) RekeyStatusFinish(ctx context.Context, sessionID int) (keybase1.Outcome, error)

func (*RekeyHandler) ShowPendingRekeyStatus added in v1.0.17

func (h *RekeyHandler) ShowPendingRekeyStatus(ctx context.Context, sessionID int) error

func (*RekeyHandler) Shutdown added in v1.0.17

func (h *RekeyHandler) Shutdown()

type RekeyLogHandler added in v1.0.17

type RekeyLogHandler struct {
	libkb.Contextified
}

RekeyLogHandler is a gregor inband message handler that logs all kbfs_tlf_rekey_needed items.

func (*RekeyLogHandler) Create added in v1.0.17

func (r *RekeyLogHandler) Create(ctx context.Context, cli gregor1.IncomingInterface, category string, item gregor.Item) (bool, error)

func (*RekeyLogHandler) Dismiss added in v1.0.17

func (r *RekeyLogHandler) Dismiss(ctx context.Context, cli gregor1.IncomingInterface, category string, item gregor.Item) (bool, error)

func (*RekeyLogHandler) IsAlive added in v1.0.17

func (r *RekeyLogHandler) IsAlive() bool

func (*RekeyLogHandler) Name added in v1.0.17

func (r *RekeyLogHandler) Name() string

type RekeyUI added in v1.0.17

type RekeyUI struct {
	libkb.Contextified
	// contains filtered or unexported fields
}

func (*RekeyUI) DelegateRekeyUI added in v1.0.17

func (r *RekeyUI) DelegateRekeyUI(ctx context.Context) (int, error)

DelegateRekeyUI shouldn't be called on this object since it should already have a sessionID.

func (*RekeyUI) Refresh added in v1.0.17

func (r *RekeyUI) Refresh(ctx context.Context, arg keybase1.RefreshArg) error

type RekeyUIHandler added in v1.0.17

type RekeyUIHandler struct {
	libkb.Contextified
	// contains filtered or unexported fields
}

func NewRekeyUIHandler added in v1.0.17

func NewRekeyUIHandler(g *libkb.GlobalContext, connID libkb.ConnectionID) *RekeyUIHandler

func (*RekeyUIHandler) Create added in v1.0.17

func (r *RekeyUIHandler) Create(ctx context.Context, cli gregor1.IncomingInterface, category string,
	item gregor.Item) (bool, error)

func (*RekeyUIHandler) Dismiss added in v1.0.17

func (r *RekeyUIHandler) Dismiss(ctx context.Context, cli gregor1.IncomingInterface, category string,
	item gregor.Item) (bool, error)

func (*RekeyUIHandler) IsAlive added in v1.0.17

func (r *RekeyUIHandler) IsAlive() bool

func (*RekeyUIHandler) Name added in v1.0.17

func (r *RekeyUIHandler) Name() string

func (*RekeyUIHandler) RekeyReharass added in v1.0.17

func (r *RekeyUIHandler) RekeyReharass(ctx context.Context, pset keybase1.ProblemSetDevices) error

func (*RekeyUIHandler) RekeyStatusFinish added in v1.0.17

func (r *RekeyUIHandler) RekeyStatusFinish(ctx context.Context, sessionID int) (keybase1.Outcome, error)

type RemoteGPGUI

type RemoteGPGUI struct {
	// contains filtered or unexported fields
}

func NewRemoteGPGUI

func NewRemoteGPGUI(sessionID int, c *rpc.Client) *RemoteGPGUI

func (*RemoteGPGUI) ConfirmDuplicateKeyChosen

func (r *RemoteGPGUI) ConfirmDuplicateKeyChosen(ctx context.Context, _ int) (bool, error)

func (*RemoteGPGUI) SelectKey

func (r *RemoteGPGUI) SelectKey(ctx context.Context, arg keybase1.SelectKeyArg) (string, error)

func (*RemoteGPGUI) SelectKeyAndPushOption

func (*RemoteGPGUI) Sign

func (r *RemoteGPGUI) Sign(ctx context.Context, arg keybase1.SignArg) (string, error)

func (*RemoteGPGUI) WantToAddGPGKey

func (r *RemoteGPGUI) WantToAddGPGKey(ctx context.Context, _ int) (bool, error)

type RemoteIdentifyUI

type RemoteIdentifyUI struct {
	libkb.Contextified
	// contains filtered or unexported fields
}

func (*RemoteIdentifyUI) Confirm

func (*RemoteIdentifyUI) Dismiss added in v1.0.16

func (u *RemoteIdentifyUI) Dismiss(username string, reason keybase1.DismissReason) error

func (*RemoteIdentifyUI) DisplayCryptocurrency

func (u *RemoteIdentifyUI) DisplayCryptocurrency(c keybase1.Cryptocurrency) error

func (*RemoteIdentifyUI) DisplayKey

func (u *RemoteIdentifyUI) DisplayKey(key keybase1.IdentifyKey) error

func (*RemoteIdentifyUI) DisplayTLFCreateWithInvite added in v1.0.16

func (u *RemoteIdentifyUI) DisplayTLFCreateWithInvite(arg keybase1.DisplayTLFCreateWithInviteArg) error

func (*RemoteIdentifyUI) DisplayTrackStatement

func (u *RemoteIdentifyUI) DisplayTrackStatement(s string) error

func (*RemoteIdentifyUI) DisplayUserCard

func (u *RemoteIdentifyUI) DisplayUserCard(card keybase1.UserCard) error

func (*RemoteIdentifyUI) Finish

func (u *RemoteIdentifyUI) Finish() error

func (*RemoteIdentifyUI) FinishSocialProofCheck

func (u *RemoteIdentifyUI) FinishSocialProofCheck(p keybase1.RemoteProof, lcr keybase1.LinkCheckResult) error

func (*RemoteIdentifyUI) FinishWebProofCheck

func (u *RemoteIdentifyUI) FinishWebProofCheck(p keybase1.RemoteProof, lcr keybase1.LinkCheckResult) error

func (*RemoteIdentifyUI) LaunchNetworkChecks

func (u *RemoteIdentifyUI) LaunchNetworkChecks(id *keybase1.Identity, user *keybase1.User) error

func (*RemoteIdentifyUI) ReportLastTrack

func (u *RemoteIdentifyUI) ReportLastTrack(t *keybase1.TrackSummary) error

func (*RemoteIdentifyUI) ReportTrackToken

func (u *RemoteIdentifyUI) ReportTrackToken(token keybase1.TrackToken) error

func (*RemoteIdentifyUI) SetStrict

func (u *RemoteIdentifyUI) SetStrict(b bool)

func (*RemoteIdentifyUI) Start

func (u *RemoteIdentifyUI) Start(username string, reason keybase1.IdentifyReason) error

type RemotePgpUI

type RemotePgpUI struct {
	// contains filtered or unexported fields
}

func NewRemotePgpUI

func NewRemotePgpUI(sessionID int, c *rpc.Client) *RemotePgpUI

func (*RemotePgpUI) OutputSignatureSuccess

func (u *RemotePgpUI) OutputSignatureSuccess(ctx context.Context, arg keybase1.OutputSignatureSuccessArg) error

type RemoteProvisionUI

type RemoteProvisionUI struct {
	// contains filtered or unexported fields
}

func NewRemoteProvisionUI

func NewRemoteProvisionUI(sessionID int, c *rpc.Client) *RemoteProvisionUI

func (*RemoteProvisionUI) ChooseDevice

func (*RemoteProvisionUI) ChooseDeviceType

func (*RemoteProvisionUI) ChooseGPGMethod

func (*RemoteProvisionUI) ChooseProvisioningMethod

func (*RemoteProvisionUI) DisplayAndPromptSecret

func (*RemoteProvisionUI) DisplaySecretExchanged

func (u *RemoteProvisionUI) DisplaySecretExchanged(ctx context.Context, _ int) error

func (*RemoteProvisionUI) PromptNewDeviceName

func (u *RemoteProvisionUI) PromptNewDeviceName(ctx context.Context, arg keybase1.PromptNewDeviceNameArg) (string, error)

func (*RemoteProvisionUI) ProvisioneeSuccess

func (u *RemoteProvisionUI) ProvisioneeSuccess(ctx context.Context, arg keybase1.ProvisioneeSuccessArg) error

func (*RemoteProvisionUI) ProvisionerSuccess

func (u *RemoteProvisionUI) ProvisionerSuccess(ctx context.Context, arg keybase1.ProvisionerSuccessArg) error

func (*RemoteProvisionUI) SwitchToGPGSignOK

func (u *RemoteProvisionUI) SwitchToGPGSignOK(ctx context.Context, arg keybase1.SwitchToGPGSignOKArg) (bool, error)

type RemoteSaltpackUI

type RemoteSaltpackUI struct {
	// contains filtered or unexported fields
}

func NewRemoteSaltpackUI

func NewRemoteSaltpackUI(sessionID int, c *rpc.Client) *RemoteSaltpackUI

func (*RemoteSaltpackUI) SaltpackPromptForDecrypt

func (r *RemoteSaltpackUI) SaltpackPromptForDecrypt(ctx context.Context, arg keybase1.SaltpackPromptForDecryptArg, usedDelegateUI bool) (err error)

func (*RemoteSaltpackUI) SaltpackVerifySuccess

func (r *RemoteSaltpackUI) SaltpackVerifySuccess(ctx context.Context, arg keybase1.SaltpackVerifySuccessArg) (err error)

type RevokeHandler

type RevokeHandler struct {
	*BaseHandler
	libkb.Contextified
}

func NewRevokeHandler

func NewRevokeHandler(xp rpc.Transporter, g *libkb.GlobalContext) *RevokeHandler

func (*RevokeHandler) RevokeDevice

func (h *RevokeHandler) RevokeDevice(_ context.Context, arg keybase1.RevokeDeviceArg) error

func (*RevokeHandler) RevokeKey

func (h *RevokeHandler) RevokeKey(_ context.Context, arg keybase1.RevokeKeyArg) error

func (*RevokeHandler) RevokeSigs

func (h *RevokeHandler) RevokeSigs(_ context.Context, arg keybase1.RevokeSigsArg) error

type SaltpackHandler

type SaltpackHandler struct {
	*BaseHandler
	libkb.Contextified
}

func NewSaltpackHandler

func NewSaltpackHandler(xp rpc.Transporter, g *libkb.GlobalContext) *SaltpackHandler

func (*SaltpackHandler) SaltpackDecrypt

func (*SaltpackHandler) SaltpackEncrypt

func (h *SaltpackHandler) SaltpackEncrypt(_ context.Context, arg keybase1.SaltpackEncryptArg) error

func (*SaltpackHandler) SaltpackSign

func (h *SaltpackHandler) SaltpackSign(_ context.Context, arg keybase1.SaltpackSignArg) error

func (*SaltpackHandler) SaltpackVerify

func (h *SaltpackHandler) SaltpackVerify(_ context.Context, arg keybase1.SaltpackVerifyArg) error

type SecretKeysHandler

type SecretKeysHandler struct {
	*BaseHandler
	libkb.Contextified
}

func NewSecretKeysHandler

func NewSecretKeysHandler(xp rpc.Transporter, g *libkb.GlobalContext) *SecretKeysHandler

func (*SecretKeysHandler) GetSecretKeys

func (h *SecretKeysHandler) GetSecretKeys(_ context.Context, sessionID int) (keybase1.SecretKeys, error)

type SecretUI

type SecretUI struct {
	libkb.Contextified
	// contains filtered or unexported fields
}

func (*SecretUI) GetPassphrase

func (u *SecretUI) GetPassphrase(pinentry keybase1.GUIEntryArg, terminal *keybase1.SecretEntryArg) (keybase1.GetPassphraseRes, error)

GetPassphrase gets the current keybase passphrase from delegated pinentry.

type Service

type Service struct {
	libkb.Contextified

	ForkType keybase1.ForkType
	// contains filtered or unexported fields
}

func NewService

func NewService(g *libkb.GlobalContext, isDaemon bool) *Service

func (*Service) ConfigRPCServer

func (d *Service) ConfigRPCServer() (l net.Listener, err error)

func (*Service) GetExclusiveLock

func (d *Service) GetExclusiveLock() error

GetExclusiveLock grabs the exclusive lock over running keybase and then installs a shutdown hook to release the lock automatically on shutdown.

func (*Service) GetExclusiveLockWithoutAutoUnlock

func (d *Service) GetExclusiveLockWithoutAutoUnlock() error

GetExclusiveLockWithoutAutoUnlock grabs the exclusive lock over running keybase and continues to hold the lock. The caller is then required to manually release this lock via ReleaseLock()

func (*Service) GetStartChannel

func (d *Service) GetStartChannel() <-chan struct{}

func (*Service) GetUsage

func (d *Service) GetUsage() libkb.Usage

func (*Service) GregorDismiss added in v1.0.17

func (d *Service) GregorDismiss(id gregor.MsgID) error

func (*Service) GregorInject added in v1.0.17

func (d *Service) GregorInject(cat string, body []byte) (gregor.MsgID, error)

func (*Service) GregorInjectOutOfBandMessage added in v1.0.17

func (d *Service) GregorInjectOutOfBandMessage(sys string, body []byte) error

func (*Service) Handle

func (d *Service) Handle(c net.Conn)

func (*Service) HasGregor added in v1.0.17

func (d *Service) HasGregor() bool

func (*Service) ListenLoop

func (d *Service) ListenLoop(l net.Listener) (err error)

func (*Service) ListenLoopWithStopper

func (d *Service) ListenLoopWithStopper(l net.Listener) (exitCode keybase1.ExitCode, err error)

func (*Service) OnLogin added in v1.0.16

func (d *Service) OnLogin() error

func (*Service) OnLogout added in v1.0.16

func (d *Service) OnLogout() error

func (*Service) OpenSocket

func (d *Service) OpenSocket() error

func (*Service) ParseArgv

func (d *Service) ParseArgv(ctx *cli.Context) error

func (*Service) RegisterProtocols

func (d *Service) RegisterProtocols(srv *rpc.Server, xp rpc.Transporter, connID libkb.ConnectionID, logReg *logRegister, g *libkb.GlobalContext) (shutdowners []Shutdowner, err error)

func (*Service) ReleaseLock

func (d *Service) ReleaseLock() error

ReleaseLock releases the locking pidfile by closing, unlocking and deleting it.

func (*Service) Run

func (d *Service) Run() (err error)

func (*Service) SetGregorPushStateFilter added in v1.0.17

func (d *Service) SetGregorPushStateFilter(f func(m gregor.Message) bool)

func (*Service) SimulateGregorCrashForTesting added in v1.0.17

func (d *Service) SimulateGregorCrashForTesting()

func (*Service) StartLoopbackServer

func (d *Service) StartLoopbackServer() error

func (*Service) Stop

func (d *Service) Stop(exitCode keybase1.ExitCode)

type SessionHandler

type SessionHandler struct {
	libkb.Contextified
	*BaseHandler
}

SessionHandler is the RPC handler for the session interface.

func NewSessionHandler

func NewSessionHandler(xp rpc.Transporter, g *libkb.GlobalContext) *SessionHandler

NewSessionHandler creates a SessionHandler for the xp transport.

func (*SessionHandler) CurrentSession

func (h *SessionHandler) CurrentSession(_ context.Context, sessionID int) (keybase1.Session, error)

CurrentSession uses the global session to find the session. If the user isn't logged in, it returns ErrNoSession.

type Shutdowner added in v1.0.17

type Shutdowner interface {
	Shutdown()
}

type SignupHandler

type SignupHandler struct {
	*BaseHandler
	libkb.Contextified
}

func NewSignupHandler

func NewSignupHandler(xp rpc.Transporter, g *libkb.GlobalContext) *SignupHandler

func (*SignupHandler) CheckInvitationCode

func (h *SignupHandler) CheckInvitationCode(_ context.Context, arg keybase1.CheckInvitationCodeArg) (err error)

func (*SignupHandler) CheckUsernameAvailable

func (h *SignupHandler) CheckUsernameAvailable(_ context.Context, arg keybase1.CheckUsernameAvailableArg) error

func (*SignupHandler) InviteRequest

func (h *SignupHandler) InviteRequest(_ context.Context, arg keybase1.InviteRequestArg) (err error)

func (*SignupHandler) Signup

func (h *SignupHandler) Signup(_ context.Context, arg keybase1.SignupArg) (res keybase1.SignupRes, err error)

type SigsHandler

type SigsHandler struct {
	*BaseHandler
	libkb.Contextified
}

SigsHandler is the RPC handler for the sigs interface.

func NewSigsHandler

func NewSigsHandler(xp rpc.Transporter, g *libkb.GlobalContext) *SigsHandler

NewSigsHandler creates a SigsHandler for the xp transport.

func (*SigsHandler) SigList

func (h *SigsHandler) SigList(_ context.Context, arg keybase1.SigListArg) ([]keybase1.Sig, error)

func (*SigsHandler) SigListJSON

func (h *SigsHandler) SigListJSON(_ context.Context, arg keybase1.SigListJSONArg) (string, error)

type TestHandler

type TestHandler struct {
	*BaseHandler
	libkb.Contextified
}

func NewTestHandler

func NewTestHandler(xp rpc.Transporter, g *libkb.GlobalContext) *TestHandler

func (TestHandler) Panic

func (t TestHandler) Panic(_ context.Context, message string) error

func (TestHandler) Test

func (t TestHandler) Test(ctx context.Context, arg keybase1.TestArg) (test keybase1.Test, err error)

func (TestHandler) TestCallback

func (t TestHandler) TestCallback(_ context.Context, arg keybase1.TestCallbackArg) (s string, err error)

type TrackHandler

type TrackHandler struct {
	*BaseHandler
	libkb.Contextified
	// contains filtered or unexported fields
}

TrackHandler is the RPC handler for the track interface.

func NewTrackHandler

func NewTrackHandler(xp rpc.Transporter, g *libkb.GlobalContext) *TrackHandler

NewTrackHandler creates a TrackHandler for the xp transport.

func (*TrackHandler) CheckTracking

func (h *TrackHandler) CheckTracking(_ context.Context, sessionID int) error

func (*TrackHandler) DismissWithToken added in v1.0.16

func (h *TrackHandler) DismissWithToken(_ context.Context, arg keybase1.DismissWithTokenArg) error

func (*TrackHandler) FakeTrackingChanged

func (h *TrackHandler) FakeTrackingChanged(_ context.Context, arg keybase1.FakeTrackingChangedArg) error

func (*TrackHandler) Track

Track creates a TrackEngine and runs it.

func (*TrackHandler) TrackWithToken

func (h *TrackHandler) TrackWithToken(_ context.Context, arg keybase1.TrackWithTokenArg) error

func (*TrackHandler) Untrack

func (h *TrackHandler) Untrack(_ context.Context, arg keybase1.UntrackArg) error

Untrack creates an UntrackEngine and runs it.

type UIRouter

type UIRouter struct {
	libkb.Contextified
	// contains filtered or unexported fields
}

func NewUIRouter

func NewUIRouter(g *libkb.GlobalContext) *UIRouter

func (*UIRouter) GetIdentifyUI

func (u *UIRouter) GetIdentifyUI() (libkb.IdentifyUI, error)

func (*UIRouter) GetRekeyUI added in v1.0.17

func (u *UIRouter) GetRekeyUI() (keybase1.RekeyUIInterface, int, error)

func (*UIRouter) GetRekeyUINoSessionID added in v1.0.17

func (u *UIRouter) GetRekeyUINoSessionID() (keybase1.RekeyUIInterface, error)

func (*UIRouter) GetSecretUI

func (u *UIRouter) GetSecretUI(sessionID int) (ui libkb.SecretUI, err error)

func (*UIRouter) SetUI

func (u *UIRouter) SetUI(c libkb.ConnectionID, k libkb.UIKind)

func (*UIRouter) Shutdown

func (u *UIRouter) Shutdown()

type UpdateUI

type UpdateUI struct {
	// contains filtered or unexported fields
}

func (*UpdateUI) UpdateAppInUse

func (*UpdateUI) UpdatePrompt

func (*UpdateUI) UpdateQuit

func (u *UpdateUI) UpdateQuit(ctx context.Context, arg keybase1.UpdateQuitArg) (res keybase1.UpdateQuitRes, err error)

type UserHandler

type UserHandler struct {
	*BaseHandler
	libkb.Contextified
}

UserHandler is the RPC handler for the user interface.

func NewUserHandler

func NewUserHandler(xp rpc.Transporter, g *libkb.GlobalContext) *UserHandler

NewUserHandler creates a UserHandler for the xp transport.

func (*UserHandler) ListTrackers

ListTrackers gets the list of trackers for a user by uid.

func (*UserHandler) ListTrackers2 added in v1.0.17

func (h *UserHandler) ListTrackers2(_ context.Context, arg keybase1.ListTrackers2Arg) (res keybase1.UserSummary2Set, err error)

func (*UserHandler) ListTrackersByName

func (h *UserHandler) ListTrackersByName(_ context.Context, arg keybase1.ListTrackersByNameArg) ([]keybase1.Tracker, error)

ListTrackersByName gets the list of trackers for a user by username.

func (*UserHandler) ListTrackersSelf

func (h *UserHandler) ListTrackersSelf(_ context.Context, sessionID int) ([]keybase1.Tracker, error)

ListTrackersSelf gets the list of trackers for the logged in user.

func (*UserHandler) ListTracking

func (h *UserHandler) ListTracking(_ context.Context, arg keybase1.ListTrackingArg) (res []keybase1.UserSummary, err error)

func (*UserHandler) ListTrackingJSON

func (h *UserHandler) ListTrackingJSON(_ context.Context, arg keybase1.ListTrackingJSONArg) (res string, err error)

func (*UserHandler) LoadAllPublicKeysUnverified added in v1.0.17

func (h *UserHandler) LoadAllPublicKeysUnverified(_ context.Context,
	arg keybase1.LoadAllPublicKeysUnverifiedArg) (keys []keybase1.PublicKey, err error)

func (*UserHandler) LoadPublicKeys

func (h *UserHandler) LoadPublicKeys(_ context.Context, arg keybase1.LoadPublicKeysArg) (keys []keybase1.PublicKey, err error)

func (*UserHandler) LoadUncheckedUserSummaries

func (h *UserHandler) LoadUncheckedUserSummaries(_ context.Context, arg keybase1.LoadUncheckedUserSummariesArg) ([]keybase1.UserSummary, error)

func (*UserHandler) LoadUser

func (h *UserHandler) LoadUser(_ context.Context, arg keybase1.LoadUserArg) (user keybase1.User, err error)

func (*UserHandler) LoadUserByName added in v1.0.17

func (h *UserHandler) LoadUserByName(_ context.Context, arg keybase1.LoadUserByNameArg) (user keybase1.User, err error)

func (*UserHandler) LoadUserPlusKeys

func (*UserHandler) Search

func (h *UserHandler) Search(_ context.Context, arg keybase1.SearchArg) (results []keybase1.SearchResult, err error)

Jump to

Keyboard shortcuts

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