options

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugCaptureDecoderFunc added in v1.19.0

type DebugCaptureDecoderFunc func(data []byte, decoded *pb.Flow) (*monitor.DebugCapture, error)

type DebugMsgDecoderFunc added in v1.19.0

type DebugMsgDecoderFunc func(data []byte) (*monitor.DebugMsg, error)

type DropNotifyDecoderFunc added in v1.19.0

type DropNotifyDecoderFunc func(data []byte, decoded *pb.Flow) (*monitor.DropNotify, error)

type HttpHeadersList added in v1.15.0

type HttpHeadersList struct {
	Allow map[string]struct{}
	Deny  map[string]struct{}
}

HttpHeadersList contains the allow/deny list of headers

type HubbleRedactSettings added in v1.15.0

type HubbleRedactSettings struct {
	Enabled            bool
	RedactHTTPQuery    bool
	RedactHTTPUserInfo bool
	RedactKafkaAPIKey  bool
	RedactHttpHeaders  HttpHeadersList
}

HubbleRedactSettings contains all hubble redact related options

type L34PacketDecoder added in v1.19.0

type L34PacketDecoder interface {
	DecodePacket(payload []byte, decoded *pb.Flow, isL3Device, isIPv6, isVXLAN, isGeneve bool) (
		sourceIP, destinationIP netip.Addr,
		sourcePort, destinationPort uint16,
		err error,
	)
}

type Option

type Option func(*Options)

Option is used to configure parsers

func CacheSize

func CacheSize(size int) Option

CacheSize configures the amount of L7 requests cached for latency calculation

func WithDebugCaptureDecoder added in v1.19.0

func WithDebugCaptureDecoder(decode DebugCaptureDecoderFunc) Option

func WithDebugMsgDecoder added in v1.19.0

func WithDebugMsgDecoder(decode DebugMsgDecoderFunc) Option

func WithDropNotifyDecoder added in v1.19.0

func WithDropNotifyDecoder(decode DropNotifyDecoderFunc) Option

func WithL34PacketDecoder added in v1.19.0

func WithL34PacketDecoder(decoder L34PacketDecoder) Option

func WithNetworkPolicyCorrelation added in v1.18.0

func WithNetworkPolicyCorrelation(enabled bool) Option

WithNetworkPolicyCorrelation configures the Network Policy correlation of Hubble Flows.

func WithPolicyVerdictNotifyDecoder added in v1.19.0

func WithPolicyVerdictNotifyDecoder(decode PolicyVerdictNotifyDecoderFunc) Option

func WithRedact added in v1.18.0

func WithRedact(httpQuery, httpUserInfo, kafkaApiKey bool, allowHeaders, denyHeaders []string) Option

WithRedact configures which data Hubble will redact.

func WithSkipUnknownCGroupIDs added in v1.18.0

func WithSkipUnknownCGroupIDs(enabled bool) Option

WithSkipUnknownCGroupIDs configures whether Hubble will skip events with unknown CGroup IDs.

func WithTraceNotifyDecoder added in v1.19.0

func WithTraceNotifyDecoder(decode TraceNotifyDecoderFunc) Option

func WithTraceSockNotifyDecoder added in v1.19.0

func WithTraceSockNotifyDecoder(decode TraceSockNotifyDecoderFunc) Option

type Options

type Options struct {
	CacheSize                      int
	HubbleRedactSettings           HubbleRedactSettings
	EnableNetworkPolicyCorrelation bool
	SkipUnknownCGroupIDs           bool

	DropNotifyDecoder          DropNotifyDecoderFunc
	DebugMsgDecoder            DebugMsgDecoderFunc
	DebugCaptureDecoder        DebugCaptureDecoderFunc
	TraceNotifyDecoder         TraceNotifyDecoderFunc
	PolicyVerdictNotifyDecoder PolicyVerdictNotifyDecoderFunc
	TraceSockNotifyDecoder     TraceSockNotifyDecoderFunc
	L34PacketDecoder           L34PacketDecoder
}

Options contains all parser options

type PolicyVerdictNotifyDecoderFunc added in v1.19.0

type PolicyVerdictNotifyDecoderFunc func(data []byte, decoded *pb.Flow) (*monitor.PolicyVerdictNotify, error)

type TraceNotifyDecoderFunc added in v1.19.0

type TraceNotifyDecoderFunc func(data []byte, decoded *pb.Flow) (*monitor.TraceNotify, error)

type TraceSockNotifyDecoderFunc added in v1.19.0

type TraceSockNotifyDecoderFunc func(data []byte, decoded *pb.Flow) (*monitor.TraceSockNotify, error)

Jump to

Keyboard shortcuts

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