options

package
v1.15.4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 3 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 Redact

func Redact(logger logrus.FieldLogger, httpQuery, httpUserInfo, kafkaApiKey bool, allowHeaders, denyHeaders []string) Option

Redact configures which data Hubble will redact.

type Options

type Options struct {
	CacheSize            int
	HubbleRedactSettings HubbleRedactSettings
}

Options contains all parser options

Jump to

Keyboard shortcuts

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