plugins

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 4 Imported by: 0

README

Plugins

Plugins are triggered by actions defined on bolt.observer site.

Structure

Each plugin must be in it's own directory. Directory name must match action name defined on bolt.observer site. It must implement Plugin interface defined in entities/plugin.go.

Compile time enablement

We are using tag plugins so you can build agent without plugins too. By default plugins are enabled (go build -tags=plugins). To make everything work in Visual Studio Code, go to Settings / Settings / Gopls / Edit settings.json and add

"go.testTags": "plugins",
"gopls": {
    "build.buildFlags": ["-tags=plugins"]
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AllPluginFlags hold the extra flags for plugins
	AllPluginFlags []cli.Flag
	Plugins        map[string]agent_entities.Plugin
)

Functions

func InitPlugins

func InitPlugins(lnAPI api.NewAPICall, filter filter.FilteringInterface, cmdCtx *cli.Context, nodeDataInvalidator agent_entities.Invalidatable) error

Types

This section is empty.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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