plugin

package
v0.0.0-...-621658c Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 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]interface{}) (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() function.
	// e.g. github.com/Azure/emojitransforms/pkg/transforms
	ImportName string
}

Jump to

Keyboard shortcuts

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