exporteroption

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: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = Options{
	Path:       "",
	MaxSizeMB:  10,
	MaxBackups: 5,
	Compress:   false,
}

Default specifies default values for Hubble exporter options.

Functions

This section is empty.

Types

type Option

type Option func(o *Options) error

Option customizes the configuration of the hubble server.

func WithAllowList

func WithAllowList(f []*flowpb.FlowFilter) Option

WithAllowListFilter sets allowlist filter for the exporter.

func WithCompress

func WithCompress() Option

WithCompress specifies whether rotated files are compressed.

func WithDenyList

func WithDenyList(f []*flowpb.FlowFilter) Option

WithDenyListFilter sets denylist filter for the exporter.

func WithFieldMask

func WithFieldMask(paths []string) Option

WithFieldMask sets fieldmask for the exporter.

func WithMaxBackups

func WithMaxBackups(backups int) Option

WithMaxSizeMB sets the number of rotated Hubble export files to keep.

func WithMaxSizeMB

func WithMaxSizeMB(size int) Option

WithMaxSizeMB sets the size in MB at which to rotate the Hubble export file.

func WithPath

func WithPath(path string) Option

WithPath sets the Hubble export filepath. It's set to an empty string by default, which disables Hubble export.

type Options

type Options struct {
	Path       string
	MaxSizeMB  int
	MaxBackups int
	Compress   bool

	AllowList, DenyList filters.FilterFuncs
	FieldMask           fieldmask.FieldMask
}

Options stores all the configurations values for Hubble exporter.

Jump to

Keyboard shortcuts

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