Documentation ¶
Index ¶
- Constants
- func CacheSizeInfo(g *libkb.GlobalContext) (info []keybase1.DirSizeInfo, err error)
- func DirSize(dirPath string) (size uint64, numFiles int, err error)
- func GetConfig(mctx libkb.MetaContext, forkType keybase1.ForkType) (c keybase1.Config, err error)
- func GetCurrentStatus(mctx libkb.MetaContext) (res keybase1.CurrentStatus, err error)
- func GetExtendedStatus(mctx libkb.MetaContext) (res keybase1.ExtendedStatus, err error)
- func GetFirstClient(v []keybase1.ClientStatus, typ keybase1.ClientType) *keybase1.ClientDetails
- func GetFullStatus(mctx libkb.MetaContext) (status *keybase1.FullStatus, err error)
- func MergeStatusJSON(obj interface{}, key, status string) string
- type LogSendContext
- type Logs
Constants ¶
View Source
const ( LogSendDefaultBytesDesktop = 1024 * 1024 * 16 // NOTE: If you increase LogSendDefaultBytesMobile, check // go/libkb/env.go:Env.GetLogFileConfig to make sure we store at least that // much. LogSendDefaultBytesMobile = 1024 * 1024 * 10 LogSendMaxBytes = 1024 * 1024 * 128 )
Variables ¶
This section is empty.
Functions ¶
func CacheSizeInfo ¶
func CacheSizeInfo(g *libkb.GlobalContext) (info []keybase1.DirSizeInfo, err error)
func GetCurrentStatus ¶
func GetCurrentStatus(mctx libkb.MetaContext) (res keybase1.CurrentStatus, err error)
func GetExtendedStatus ¶
func GetExtendedStatus(mctx libkb.MetaContext) (res keybase1.ExtendedStatus, err error)
func GetFirstClient ¶
func GetFirstClient(v []keybase1.ClientStatus, typ keybase1.ClientType) *keybase1.ClientDetails
func GetFullStatus ¶
func GetFullStatus(mctx libkb.MetaContext) (status *keybase1.FullStatus, err error)
func MergeStatusJSON ¶
MergeStatusJSON merges the given `obj` into the given `status` JSON blob. If any errors occur the original `status` is returned. Otherwise a new JSON blob is created of the form {"status": status, key: obj}
Types ¶
type LogSendContext ¶
type LogSendContext struct { libkb.Contextified InstallID libkb.InstallID UID keybase1.UID StatusJSON string Feedback string Logs Logs // contains filtered or unexported fields }
LogSendContext for LogSend
func NewLogSendContext ¶
func NewLogSendContext(g *libkb.GlobalContext, fstatus *keybase1.FullStatus, statusJSON, feedback string) *LogSendContext
func (*LogSendContext) Clear ¶
func (l *LogSendContext) Clear()
Clear removes any log data that we don't want to stick around until the next time LogSend is called, in case sendLogs is false the next time.
Click to show internal directories.
Click to hide internal directories.