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 ¶
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 = 10 LogSendDefaultBytesDesktop = 1024 * 1024 * 16 * AvgCompressionRatio // 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 * AvgCompressionRatio LogSendDefaultBytesMobileNoWifi = 1024 * 1024 * 1 * AvgCompressionRatio LogSendMaxBytes = 1024 * 1024 * 128 * AvgCompressionRatio )
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.