plugin

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CompilePlugins = CompileAllPlugins

CompilePlugins is a function variable that points to CompileAllPlugins by default. It can be overridden in tests to mock plugin compilation.

Functions

func CheckDirForGoFiles added in v0.2.1

func CheckDirForGoFiles(dirPath string) (bool, error)

CheckDirForGoFiles checks if a directory contains any .go files.

func CompileAllPlugins added in v0.2.0

func CompileAllPlugins(pluginsSourceDir, pluginsOutputDir string, logger logf.Logger) error

CompileAllPlugins finds Go plugin source directories and compiles them.

Types

type Manager

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

func NewManager

func NewManager(log logf.Logger) *Manager

func (*Manager) GetPlugins

func (m *Manager) GetPlugins() []pluginapi.SimulationPlugin

func (*Manager) LoadPlugin

func (m *Manager) LoadPlugin(pluginPath string) error

Jump to

Keyboard shortcuts

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