trace

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBindCmd

func NewBindCmd(runCmd func(*cobra.Command, []string) error, flags *BindFlags) *cobra.Command

func NewCapabilitiesCmd

func NewCapabilitiesCmd(runCmd func(*cobra.Command, []string) error, flags *CapabilitiesFlags) *cobra.Command

func NewCommonTraceCmd

func NewCommonTraceCmd() *cobra.Command

func NewDNSCmd

func NewDNSCmd(runCmd func(*cobra.Command, []string) error) *cobra.Command

func NewExecCmd

func NewExecCmd(runCmd func(*cobra.Command, []string) error) *cobra.Command

func NewFsSlowerCmd

func NewFsSlowerCmd(runCmd func(*cobra.Command, []string) error, flags *FsSlowerFlags) *cobra.Command

func NewMountCmd

func NewMountCmd(runCmd func(*cobra.Command, []string) error) *cobra.Command

func NewNetworkCmd

func NewNetworkCmd(runCmd func(*cobra.Command, []string) error) *cobra.Command

func NewOOMKillCmd

func NewOOMKillCmd(runCmd func(*cobra.Command, []string) error) *cobra.Command

func NewOpenCmd

func NewOpenCmd(runCmd func(*cobra.Command, []string) error) *cobra.Command

func NewSNICmd added in v0.11.0

func NewSNICmd(runCmd func(*cobra.Command, []string) error) *cobra.Command

func NewSignalCmd

func NewSignalCmd(runCmd func(*cobra.Command, []string) error, flags *SignalFlags) *cobra.Command

func NewTCPCmd

func NewTCPCmd(runCmd func(*cobra.Command, []string) error) *cobra.Command

func NewTcpconnectCmd

func NewTcpconnectCmd(runCmd func(*cobra.Command, []string) error) *cobra.Command

Types

type BindFlags

type BindFlags struct {
	TargetPid    int32
	IgnoreErrors bool
	TargetPorts  []uint

	// It is necessary because pflag doesn't support []uint16 flags.
	ValidatedTargetPorts []uint16
}

type CapabilitiesFlags

type CapabilitiesFlags struct {
	AuditOnly bool
	Unique    bool
}

type FsSlowerFlags

type FsSlowerFlags struct {
	MinLatency uint
	Filesystem string
}

type SignalFlags

type SignalFlags struct {
	Pid    uint64
	Sig    string
	Failed bool
}

type TraceEvent

type TraceEvent interface {
	any

	// The Go compiler does not support accessing a struct field x.f where x is
	// of type parameter type even if all types in the type parameter's type set
	// have a field f. We may remove this restriction in Go 1.19. See
	// https://tip.golang.org/doc/go1.18#generics.
	GetBaseEvent() *eventtypes.Event
}

type TraceParser

type TraceParser[Event any] interface {
	// Transform is called to transform an event to columns.
	TransformIntoColumns(event *Event) string

	// BuildColumnsHeader returns a header to be used when the user requests to
	// present the output in columns.
	BuildColumnsHeader() string
}

TraceParser defines the interface that every trace-gadget parser has to implement.

Jump to

Keyboard shortcuts

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