transformtypes

package
v0.0.0-...-b47ff69 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package transformtypes defines common data types for other packages.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnsupportedTransformerType occurs when the transformer type is not supported.
	ErrUnsupportedTransformerType = errors.New("unsupported transformer type")
	// ErrTemplateContentRequired occurs when the template content is empty.
	ErrTemplateContentRequired = errors.New("template content must not be empty")
)

Functions

This section is empty.

Types

type TemplateTransformerConfig

type TemplateTransformerConfig interface {
	// Type returns type of the transformer.
	Type() TransformTemplateType
	// Validate checks if the config is valid.
	Validate() error
}

TemplateTransformerConfig abstracts the interface of a template transformer config.

type TransformTemplateType

type TransformTemplateType string

TransformTemplateType represents the type of transform template enum.

const (
	// TransformTemplateJMESPath is the transform template using JMESPath.
	TransformTemplateJMESPath TransformTemplateType = "jmespath"
	// TransformTemplateGo is the transform template using the standard text/template in Go.
	TransformTemplateGo TransformTemplateType = "gotmpl"
)

Jump to

Keyboard shortcuts

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