tracer

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GadgetDesc added in v0.14.0

type GadgetDesc struct{}

func (*GadgetDesc) Category added in v0.14.0

func (g *GadgetDesc) Category() string

func (*GadgetDesc) Description added in v0.14.0

func (g *GadgetDesc) Description() string

func (*GadgetDesc) EventPrototype added in v0.14.0

func (g *GadgetDesc) EventPrototype() any

func (*GadgetDesc) Name added in v0.14.0

func (g *GadgetDesc) Name() string

func (*GadgetDesc) NewInstance added in v0.14.0

func (g *GadgetDesc) NewInstance() (gadgets.Gadget, error)

func (*GadgetDesc) ParamDescs added in v0.14.0

func (g *GadgetDesc) ParamDescs() params.ParamDescs

func (*GadgetDesc) Parser added in v0.14.0

func (g *GadgetDesc) Parser() parser.Parser

func (*GadgetDesc) Type added in v0.14.0

func (g *GadgetDesc) Type() gadgets.GadgetType

type Tracer

type Tracer struct {
	*networktracer.Tracer[types.Event]
	// contains filtered or unexported fields
}

func NewTracer

func NewTracer() (_ *Tracer, err error)

func (*Tracer) Close

func (t *Tracer) Close()

func (*Tracer) Init added in v0.14.0

func (t *Tracer) Init(gadgetCtx gadgets.GadgetContext) error

func (*Tracer) Run added in v0.15.0

func (t *Tracer) Run(gadgetCtx gadgets.GadgetContext) error

func (*Tracer) RunWorkaround added in v0.25.0

func (t *Tracer) RunWorkaround() error

RunWorkaround is used by pkg/gadget-collection/gadgets/trace/network/gadget.go to run the gadget after calling NewTracer(). Get rid of it once that file is removed.

Jump to

Keyboard shortcuts

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