Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Symbols = map[string]map[string]reflect.Value{}
Symbols maps packages -> exported symbols -> reflect.Value for the symbol Consumed by yaegi's interpreter for mapping shared types
Functions ¶
func FromConfigMap ¶
func FromConfigMap(config map[string]any) (types.Transformer, error)
func NewTransform ¶
func NewTransform(config TransformConfig) (types.Transformer, error)
Types ¶
type TransformConfig ¶
type TransformConfig struct {
// Path on disk that contains the plugin.
// This expects a directory with a src directory at the base.
GoPath string
// Import package of the plugin that contains the New(config map[string]any) function.
// e.g. github.com/Azure/emojitransforms/pkg/transforms
ImportName string
// Config passed to the plugin New(config map[string]any) function.
Config map[string]any
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.