loader

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

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

func New

func New(discovery discovery.Discoverer, bootstrap bootstrap.Bootstrapper, validation validation.Validator,
	initializer initialization.Initializer, termination termination.Terminator) *Loader

func (*Loader) Load

func (l *Loader) Load(ctx context.Context, src plugins.PluginSource) ([]*plugins.Plugin, error)

func (*Loader) Unload

func (l *Loader) Unload(ctx context.Context, p *plugins.Plugin) (*plugins.Plugin, error)

type Service

type Service interface {
	// Load will return a list of plugins found in the provided file system paths.
	Load(ctx context.Context, src plugins.PluginSource) ([]*plugins.Plugin, error)
	// Unload will unload a specified plugin from the file system.
	Unload(ctx context.Context, p *plugins.Plugin) (*plugins.Plugin, error)
}

Service is responsible for loading plugins from the file system.

Directories

Path Synopsis
angular

Jump to

Keyboard shortcuts

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