options

package
v1.18.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 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 WithNetworkPolicyCorrelation added in v1.18.0

func WithNetworkPolicyCorrelation(enabled bool) Option

WithNetworkPolicyCorrelation configures the Network Policy correlation of Hubble Flows.

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.

type Options

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

Options contains all parser options

Jump to

Keyboard shortcuts

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