plugin

package
v0.0.0-...-a556faa Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlePluginCommand

func HandlePluginCommand(args []string)

HandlePluginCommand обрабатывает команды для управления плагинами

Types

type Index

type Index struct {
	Plugins []Plugin `json:"plugins"`
}

type Plugin

type Plugin struct {
	Name         string   `json:"name"`
	Version      string   `json:"version"`
	Description  string   `json:"description"`
	URL          string   `json:"url"`
	Dependencies []string `json:"dependencies"`
}

type PluginController

type PluginController struct {
	ControllerVersion      string
	ExecutorPluginRegistry map[string]v1.Executor
	PluginRepositoryMap    map[string]string
	LocalRepositoryPath    string
	DefaultRepository      string
}

func (*PluginController) AddRepo

func (pc *PluginController) AddRepo(repoJsonURL string) error

func (*PluginController) DeletePlugin

func (pc *PluginController) DeletePlugin(pluginName string) error

func (*PluginController) DeleteRepo

func (pc *PluginController) DeleteRepo(repoName string) error

func (*PluginController) FindExecutorPlugin

func (pc *PluginController) FindExecutorPlugin(data interface{}) (v1.Executor, error)

func (*PluginController) InitPluginController

func (pc *PluginController) InitPluginController(pluginsPath string, repoPath string, defaultRepo string) (*PluginController, error)

func (*PluginController) InstallPlugin

func (pc *PluginController) InstallPlugin(pluginName string, repositoryURL string) error

func (*PluginController) SearchPlugin

func (pc *PluginController) SearchPlugin(pluginName string) error

Jump to

Keyboard shortcuts

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