bugtool

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bugtool

func Bugtool(outFname string, bpftool string, gops string) error

Bugtool gathers information and writes it as a tar archive in the given filename

func SaveInitInfo

func SaveInitInfo(info *InitInfo) error

SaveInitInfo saves InitInfo to the info file

Types

type InitInfo

type InitInfo struct {
	ExportFname string `json:"export_fname"`
	LibDir      string `json:"lib_dir"`
	BtfFname    string `json:"btf_fname"`
	ServerAddr  string `json:"server_address"`
	MetricsAddr string `json:"metrics_address"`
	GopsAddr    string `json:"gops_address"`
	MapDir      string `json:"map_dir"`
	BpfToolPath string `json:"bpftool_path"`
	GopsPath    string `json:"gops_path"`
}

InitInfo contains information about how Tetragon was initialized.

func LoadInitInfo

func LoadInitInfo() (*InitInfo, error)

LoadInitInfo returns the InitInfo by reading the info file from its default location

type MultiLog

type MultiLog struct {
	Logs []logrus.FieldLogger
}

MultiLog maintains multiple loggers

func (*MultiLog) Info

func (ml *MultiLog) Info(args ...interface{})

func (*MultiLog) Infof

func (ml *MultiLog) Infof(format string, args ...interface{})

func (*MultiLog) Warn

func (ml *MultiLog) Warn(args ...interface{})

func (*MultiLog) Warnf

func (ml *MultiLog) Warnf(format string, args ...interface{})

func (*MultiLog) WithError

func (ml *MultiLog) WithError(err error) *MultiLogEntry

WithError adds err as a single field (using ErrorKey)

func (*MultiLog) WithField

func (ml *MultiLog) WithField(key string, value interface{}) *MultiLogEntry

WithField creates a new entry and adds a field to it.

type MultiLogEntry

type MultiLogEntry struct {
	Entries []*logrus.Entry
}

MultiLogEntry maintains entries generated using a MultiLog

func (*MultiLogEntry) Info

func (mle *MultiLogEntry) Info(args ...interface{})

Info logs at the Info level

func (*MultiLogEntry) Infof

func (mle *MultiLogEntry) Infof(format string, args ...interface{})

func (*MultiLogEntry) Warn

func (mle *MultiLogEntry) Warn(args ...interface{})

Warn logs at the Warning level

func (*MultiLogEntry) Warnf

func (mle *MultiLogEntry) Warnf(format string, args ...interface{})

func (*MultiLogEntry) WithError

func (mle *MultiLogEntry) WithError(err error) *MultiLogEntry

WithError adds err as a single field (using ErrorKey)

func (*MultiLogEntry) WithField

func (mle *MultiLogEntry) WithField(key string, value interface{}) *MultiLogEntry

WithField creates a new entry by adding a field to an existing one

Jump to

Keyboard shortcuts

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