plugin

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 9 Imported by: 0

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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