builder

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFluentBitConfig

func BuildFluentBitConfig(pipeline *telemetryv1alpha1.LogPipeline, defaults PipelineDefaults) (string, error)

BuildFluentBitConfig merges Fluent Bit filters and outputs to a single Fluent Bit configuration.

func BuildFluentBitParsersConfig

func BuildFluentBitParsersConfig(logParsers *telemetryv1alpha1.LogParserList) string

BuildFluentBitParsersConfig merges Fluent Bit parsers to a single Fluent Bit configuration.

Types

type PipelineDefaults

type PipelineDefaults struct {
	InputTag          string
	MemoryBufferLimit string
	StorageType       string
	FsBufferLimit     string
}

type SectionBuilder

type SectionBuilder struct {
	// contains filtered or unexported fields
}

func NewFilterSectionBuilder

func NewFilterSectionBuilder() *SectionBuilder

func NewOutputSectionBuilder

func NewOutputSectionBuilder() *SectionBuilder

func (*SectionBuilder) AddConfigParam

func (sb *SectionBuilder) AddConfigParam(key string, value string) *SectionBuilder

func (*SectionBuilder) AddIfNotEmpty

func (sb *SectionBuilder) AddIfNotEmpty(key string, value string) *SectionBuilder

func (*SectionBuilder) AddIfNotEmptyOrDefault

func (sb *SectionBuilder) AddIfNotEmptyOrDefault(key string, value string, defaultValue string) *SectionBuilder

func (*SectionBuilder) Build

func (sb *SectionBuilder) Build() string

Jump to

Keyboard shortcuts

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