plugin_api

package module
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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 Address

type Address struct {
	Addr      string
	Port      uint16
	Name      string
	Namespace string
}

type ConsumerPlugin

type ConsumerPlugin interface {
	InitPlugin(manager PluginManager)
}

type PluginManager

type PluginManager interface {
	RegisterTCPPlugin(plugin TCPConsumerPlugin)
	RegisterTLSPlugin(plugin TLSConsumerPlugin)
	RegisterHttpHandler(pattern string, handler func(http.ResponseWriter, *http.Request))
}

type TCPConsumerPlugin

type TCPConsumerPlugin interface {
	ConsumerPlugin
	DistributeTCPEvent(tcpEvent TCPEvent)
}

type TCPEvent

type TCPEvent struct {
	Client  Address
	Server  Address
	TxB     uint64
	RxB     uint64
	DeltaUs uint64
}

type TLSConsumerPlugin

type TLSConsumerPlugin interface {
	ConsumerPlugin
	DistributeTLSEvent(tlsEvent TLSEvent)
}

type TLSEvent

type TLSEvent struct {
	Client         Address
	Server         Address
	TlsVersions    []uint16
	Ciphers        []uint16
	ServerName     string
	UsedTlsVersion uint16
	UsedCipher     uint16
}

Jump to

Keyboard shortcuts

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