tracer

package
v0.14.0-rc Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 21 Imported by: 3

Documentation

Index

Constants

View Source
const (
	BPFSocketAttach = 50
)

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 {

	// Cache to store already enriched events from terminated (detached)
	// containers.
	sync.Mutex
	// contains filtered or unexported fields
}

func NewTracer

func NewTracer(enricher gadgets.DataEnricherByNetNs) (_ *Tracer, err error)

func (*Tracer) Attach

func (t *Tracer) Attach(pid uint32) (err error)

func (*Tracer) AttachContainer added in v0.14.0

func (t *Tracer) AttachContainer(container *containercollection.Container) error

func (*Tracer) Close

func (t *Tracer) Close()

func (*Tracer) Detach

func (t *Tracer) Detach(pid uint32) error

func (*Tracer) DetachContainer added in v0.14.0

func (t *Tracer) DetachContainer(container *containercollection.Container) error

func (*Tracer) Init added in v0.14.0

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

func (*Tracer) Pop

func (t *Tracer) Pop() (events []*types.Event, err error)

func (*Tracer) SetEventHandler added in v0.14.0

func (t *Tracer) SetEventHandler(handler any)

func (*Tracer) Start added in v0.14.0

func (t *Tracer) Start() error

func (*Tracer) Stop added in v0.14.0

func (t *Tracer) Stop()

Jump to

Keyboard shortcuts

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