exporteroption

package
v1.14.0-snapshot.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 0 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 WithCompress

func WithCompress() Option

WithCompress specifies whether rotated files are compressed.

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
}

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