plugin

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VatzPlugin

type VatzPlugin struct {
	Name        string    `json:"name"`
	IsEnabled   bool      `json:"is_enabled"`
	Location    string    `json:"location"`
	Repository  string    `json:"repository"`
	Version     string    `json:"version"`
	InstalledAt time.Time `json:"installed_at"`
}

VatzPlugin describes plugin information

type VatzPluginManager

type VatzPluginManager interface {
	Init(runType tp.Initializer) error
	Get(name string) (VatzPlugin, error)
	Install(repo, name, version string) error
	Uninstall(name string) error
	List() ([]VatzPlugin, error)

	SetEnabled(pluginID string, isEnabled bool) error

	Start(name, args string, logfile *os.File) error
	Stop(name string) error
}

VatzPluginManager provides management functions for plugin.

func NewManager

func NewManager(vatzHome string) VatzPluginManager

NewManager creates new plugin manager.

Jump to

Keyboard shortcuts

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