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 ( // After gzipping the logs we compress by this factor on avg. We use this // to calculate the amount of raw log bytes we should read when sending. AvgCompressionRatio = 5 LogSendDefaultBytesDesktop = 1024 * 1024 * 16 // NOTE: On mobile we may store less than the number of bytes we attempt to // send. See go/libkb/env.go:Env.GetLogFileConfig LogSendDefaultBytesMobileWifi = 1024 * 1024 * 10 LogSendDefaultBytesMobileNoWifi = 1024 * 1024 * 1 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 NetworkStatsJSON string Feedback string Logs Logs // contains filtered or unexported fields }
LogSendContext for LogSend
func NewLogSendContext ¶
func NewLogSendContext(g *libkb.GlobalContext, fstatus *keybase1.FullStatus, statusJSON, networkStatsJSON, 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.
type Logs ¶
type Logs struct { GUI string Kbfs string Service string EK string Perf string KbfsPerf string GitPerf string Updater string Start string Install string System string Git string Trace string CPUProfile string Watchdog string Processes string }
Logs is the struct to specify the path of log files
Click to show internal directories.
Click to hide internal directories.