cmkpluginregistry

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoPluginInCatalog = errors.New("no plugin in catalog")
View Source
var (
	ErrPluginCheckFailed = errors.New("plugin health check failed")
)

Functions

This section is empty.

Types

type Option added in v0.5.0

type Option func(catalog.BuiltInPluginRegistry)

func WithBuiltInPlugins added in v0.5.0

func WithBuiltInPlugins(plugins []catalog.BuiltInPlugin) Option

type PluginWatcher added in v0.9.0

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

func NewPluginWatcher added in v0.9.0

func NewPluginWatcher(catalog pluginLister, interval time.Duration) *PluginWatcher

func (*PluginWatcher) Start added in v0.9.0

func (w *PluginWatcher) Start(ctx context.Context)

type Registry

type Registry struct {
	serviceapi.Registry
	*plugincatalog.Catalog
}

func New

func New(ctx context.Context, cfg *config.Config, opts ...Option) (*Registry, error)

New creates a new instance of Catalog with the provided configuration.

func (*Registry) Close

func (p *Registry) Close() error

func (*Registry) WatchPlugins added in v0.9.0

func (p *Registry) WatchPlugins(ctx context.Context)

WatchPlugins starts the plugin health watcher as a background goroutine. On detecting a dead plugin it sends SIGTERM to trigger graceful shutdown.

Jump to

Keyboard shortcuts

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