plugins

package
v0.0.0-...-95e8c34 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPluginConfig

func NewPluginConfig(pluginDir string) (*pluginConfig, error)

Types

type Plugin

type Plugin struct {
	Id      string       `json:"id"`
	Dir     string       `json:"dir"`
	Config  pluginConfig `json:"config"`
	Script  string       `json:"script"`
	Enabled bool         `json:"enabled"`
}

type PluginMap

type PluginMap = map[string]Plugin

type Plugins

type Plugins struct {
	PluginMap PluginMap
	// contains filtered or unexported fields
}

func NewPlugins

func NewPlugins(crksftConfig *config.CrksftConfig, pluginsDir string) (*Plugins, error)

func (*Plugins) RebuildPlugin

func (p *Plugins) RebuildPlugin(pluginId string) error

func (*Plugins) Reload

func (p *Plugins) Reload() error

func (*Plugins) RemovePlugin

func (p *Plugins) RemovePlugin(pluginId string) error

func (*Plugins) SetEnabled

func (p *Plugins) SetEnabled(pluginId string, enabled bool) error

Jump to

Keyboard shortcuts

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