status

package
v4.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: BSD-3-Clause, BSD-3-Clause Imports: 27 Imported by: 0

Documentation

Index

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 DirSize

func DirSize(dirPath string) (size uint64, numFiles int, err error)

DirSize walks the file tree the size of the given directory

func GetConfig

func GetConfig(mctx libkb.MetaContext, forkType keybase1.ForkType) (c keybase1.Config, 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 GetFullStatus

func GetFullStatus(mctx libkb.MetaContext) (status *keybase1.FullStatus, err error)

func MergeStatusJSON

func MergeStatusJSON(obj interface{}, key, status string) string

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.

func (*LogSendContext) LogSend

func (l *LogSendContext) LogSend(sendLogs bool, numBytes int, mergeExtendedStatus bool) (id keybase1.LogSendID, err error)

LogSend sends the tails of log files to kb, and also the last few trace output files.

type Logs

type Logs struct {
	Desktop    string
	Kbfs       string
	Service    string
	EK         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

Jump to

Keyboard shortcuts

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