plugin_api

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 1 Imported by: 7

README

k8spacket - plugin-api

API for integration with k8spacket as a plugin according to https://pkg.go.dev/plugin

See: https://github.com/k8spacket/plugins

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginManager

type PluginManager interface {
	RegisterPlugin(plugin StreamPlugin)
	RegisterHttpHandler(pattern string, handler func(http.ResponseWriter, *http.Request))
}

type ReassembledStream

type ReassembledStream struct {
	StreamId      uint32
	Src           string
	SrcPort       string
	SrcName       string
	SrcNamespace  string
	Dst           string
	DstPort       string
	DstName       string
	DstNamespace  string
	Closed        bool
	BytesSent     float64
	BytesReceived float64
	Duration      float64
}

type StreamPlugin

type StreamPlugin interface {
	InitPlugin(manager PluginManager)
	DistributeReassembledStream(stream ReassembledStream)
	DistributeTCPPacketPayload(tcpPacket TCPPacketPayload)
}

type TCPPacketPayload

type TCPPacketPayload struct {
	StreamId uint32
	Payload  []byte
}

Jump to

Keyboard shortcuts

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