Documentation
¶
Index ¶
- func WithJsonInput() goTemplateOption
- func WithStringInput() goTemplateOption
- func WithTemplate(tmp *template.Template) goTemplateOption
- func WithTemplatePattern(pattern string) goTemplateOption
- func WithYamlInput() goTemplateOption
- type Func
- type GoTemplateConfig
- type Map
- type Plugin
- type Transformer
- func Base64Decode() Transformer
- func GoTemplate[OPT goTemplateOption](opt ...OPT) (Transformer, error)
- func GoTemplateWithConfig(config GoTemplateConfig) (Transformer, error)
- func InsertString(insert string) Transformer
- func NewTransform(name string, config yaml.Node) (Transformer, error)
- func Regex(regexpPattern string, n int) (Transformer, error)
- func Split(sep string) Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithJsonInput ¶
func WithJsonInput() goTemplateOption
func WithStringInput ¶
func WithStringInput() goTemplateOption
func WithTemplate ¶
func WithTemplatePattern ¶
func WithTemplatePattern(pattern string) goTemplateOption
func WithYamlInput ¶
func WithYamlInput() goTemplateOption
Types ¶
type GoTemplateConfig ¶
type Transformer ¶
type Transformer interface {
// Transform takes a value and returns a transformed version of it.
Transform(input []byte) ([][]byte, error)
}
func Base64Decode ¶
func Base64Decode() Transformer
func GoTemplate ¶
func GoTemplate[OPT goTemplateOption](opt ...OPT) (Transformer, error)
func GoTemplateWithConfig ¶
func GoTemplateWithConfig(config GoTemplateConfig) (Transformer, error)
func InsertString ¶
func InsertString(insert string) Transformer
func NewTransform ¶
func NewTransform(name string, config yaml.Node) (Transformer, error)
func Split ¶
func Split(sep string) Transformer
Click to show internal directories.
Click to hide internal directories.