standalone

package
v0.13.0-nightly.20241016 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry is a directory registry of processor plugins, organized by plugin type, name and version. Every file in the specified directory is considered a plugin (directories are skipped).

func NewRegistry

func NewRegistry(logger log.CtxLogger, pluginDir string, schemaService pprocutils.SchemaService) (*Registry, error)

func (*Registry) List

func (r *Registry) List() map[plugin.FullName]sdk.Specification

func (*Registry) NewProcessor

func (r *Registry) NewProcessor(ctx context.Context, fullName plugin.FullName, id string) (sdk.Processor, error)

func (*Registry) Register added in v0.9.1

func (r *Registry) Register(ctx context.Context, path string) (plugin.FullName, error)

Register registers a standalone processor plugin from the specified path. If a plugin with the same name and version is already registered, it will return plugin.ErrPluginAlreadyRegistered.

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

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