Documentation ¶
Index ¶
- Constants
- func AttachTracepoint(tracepoint TracepointInfo) (link.Link, error)
- func ExtractConsistentHeaders(headers http.Header) map[string][]string
- func FromCString(in []byte) []byte
- func GetHttpData(bpfEvent *http_snifferHttpevent) (tracerhttptype.HTTPData, error)
- type Config
- type GadgetDesc
- type TracepointInfo
- type Tracer
Constants ¶
View Source
const ( EVENT_TYPE_CONNECT = iota EVENT_TYPE_ACCEPT EVENT_TYPE_REQUEST EVENT_TYPE_RESPONSE EVENT_TYPE_CLOSE )
Variables ¶
This section is empty.
Functions ¶
func AttachTracepoint ¶
func AttachTracepoint(tracepoint TracepointInfo) (link.Link, error)
func FromCString ¶
func GetHttpData ¶
func GetHttpData(bpfEvent *http_snifferHttpevent) (tracerhttptype.HTTPData, error)
Types ¶
type GadgetDesc ¶
type GadgetDesc struct{}
func (*GadgetDesc) NewInstance ¶
func (g *GadgetDesc) NewInstance() (gadgets.Gadget, error)
type TracepointInfo ¶
type TracepointInfo struct { Syscall string ObjFunc interface{} }
func GetTracepointDefinitions ¶
func GetTracepointDefinitions(objs *http_snifferPrograms) []TracepointInfo
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
func (*Tracer) ParseHTTP ¶
func (t *Tracer) ParseHTTP(rawSample []byte) (*tracerhttptype.Event, error)
func (*Tracer) SetEventHandler ¶
func (*Tracer) SetMountNsMap ¶
Click to show internal directories.
Click to hide internal directories.