plugins

package
v3.7.7 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBuiltins

func RegisterBuiltins(reg pkgplugins.Registry)

Types

type Loader

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

func NewLoader

func NewLoader(paths []string) *Loader

func (*Loader) Load

func (l *Loader) Load(ctx context.Context, reg pkgplugins.Registry)

func (*Loader) WithGlob

func (l *Loader) WithGlob(glob string) *Loader

type Option

type Option func(*Registry)

func WithForceSource

func WithForceSource(src string) Option

type Registry

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

func NewRegistry

func NewRegistry(opts ...Option) *Registry

func (*Registry) AddPlugin

func (r *Registry) AddPlugin(info pkgplugins.PluginInfo, providers []pkgplugins.SpecProvider)

func (*Registry) Funcs

func (r *Registry) Funcs() map[string]any

func (*Registry) Groups

func (*Registry) Hooks

func (r *Registry) Hooks(group string) []pkgplugins.Func

Hooks returns functions filtered by Group.

func (*Registry) Plugins

func (r *Registry) Plugins(ctx context.Context) []pkgplugins.PluginInfo

Jump to

Keyboard shortcuts

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