trim

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(flags *pflag.FlagSet)

AddFlags registers persistent flags.

Types

type Config

type Config struct {
	// Prefixes contains the mapping between distinct kparam names and the prefixes that will get trimmed from their values.
	Prefixes []Trim `mapstructure:"prefixes"`
	// Suffixes contains the mapping between distinct kparam names and the suffixes that will get trimmed from their values.
	Suffixes []Trim `mapstructure:"suffixes"`
	// Enabled determines whether trim transformer is enabled or disabled.
	Enabled bool `mapstructure:"enabled"`
}

Config stores the configuration for the trim transformer.

type Trim

type Trim struct {
	Name string `mapstructure:"kparam"`
	Trim string `mapstructure:"trim"`
}

Trim defines the trim configuration for a single event parameter.

Jump to

Keyboard shortcuts

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