Documentation ¶
Index ¶
- Constants
- type GadgetDesc
- func (g *GadgetDesc) Category() string
- func (g *GadgetDesc) Description() string
- func (g *GadgetDesc) EventPrototype() any
- func (g *GadgetDesc) Name() string
- func (g *GadgetDesc) NewInstance() (gadgets.Gadget, error)
- func (g *GadgetDesc) ParamDescs() params.ParamDescs
- func (g *GadgetDesc) Parser() parser.Parser
- func (g *GadgetDesc) SkipParams() []params.ValueHint
- func (g *GadgetDesc) SortByDefault() []string
- func (g *GadgetDesc) Type() gadgets.GadgetType
- type Tracer
- func (t *Tracer) AttachContainer(container *containercollection.Container) error
- func (t *Tracer) CloseIters()
- func (t *Tracer) DetachContainer(container *containercollection.Container) error
- func (t *Tracer) Run(gadgetCtx gadgets.GadgetContext) error
- func (t *Tracer) RunCollector(pid uint32, podname, namespace, node string) ([]*socketcollectortypes.Event, error)
- func (t *Tracer) SetEventHandlerArray(handler any)
Constants ¶
View Source
const ( ParamProto = "proto" ParamExtend = "extend" )
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) SkipParams ¶ added in v0.15.0
func (g *GadgetDesc) SkipParams() []params.ValueHint
func (*GadgetDesc) SortByDefault ¶ added in v0.14.0
func (g *GadgetDesc) SortByDefault() []string
func (*GadgetDesc) Type ¶ added in v0.14.0
func (g *GadgetDesc) Type() gadgets.GadgetType
type Tracer ¶ added in v0.14.0
type Tracer struct {
// contains filtered or unexported fields
}
func NewTracer ¶ added in v0.15.0
func NewTracer(protocols socketcollectortypes.Proto) (*Tracer, error)
func (*Tracer) AttachContainer ¶ added in v0.14.0
func (t *Tracer) AttachContainer(container *containercollection.Container) error
func (*Tracer) CloseIters ¶ added in v0.15.0
func (t *Tracer) CloseIters()
CloseIters is currently exported so it can be called from Collect()
func (*Tracer) DetachContainer ¶ added in v0.14.0
func (t *Tracer) DetachContainer(container *containercollection.Container) error
func (*Tracer) RunCollector ¶ added in v0.15.0
func (t *Tracer) RunCollector(pid uint32, podname, namespace, node string) ([]*socketcollectortypes.Event, error)
RunCollector is currently exported so it can be called from Collect()
func (*Tracer) SetEventHandlerArray ¶ added in v0.14.0
Click to show internal directories.
Click to hide internal directories.