plugins

package
v0.0.0-...-76e78dc Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PluginsLock = new(sync.RWMutex)
	Plugins     = make([]*Plugin, 0)
)

Functions

func ForceResetPlugin

func ForceResetPlugin() error

func GetCurrentPluginVersion

func GetCurrentPluginVersion() (string, error)

func RunPlugins

func RunPlugins(dirs []string, plugins []model.PluginParam)

func SyncConfig

func SyncConfig(pluginVer string, pluginDirs []string, plugins []model.PluginParam)

func TryUpdateAgent

func TryUpdateAgent() error

func UpdatePlugin

func UpdatePlugin(ver string) error

Types

type Plugin

type Plugin struct {
	FilePath string
	Step     int
	Params   []model.PluginParam
	// contains filtered or unexported fields
}

func (*Plugin) Kill

func (p *Plugin) Kill()

func (*Plugin) Run

func (p *Plugin) Run()

func (*Plugin) RunOnce

func (p *Plugin) RunOnce()

Jump to

Keyboard shortcuts

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