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" )
Click to show internal directories.
Click to hide internal directories.