plugin

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDoc added in v0.5.0

func GenerateDoc(pluginName string, specDirs []string, port int)

func GetInstallDir added in v0.3.0

func GetInstallDir(pluginName, version string) (string, error)

GetInstallDir returns the install directory of given plugin and a given version.

func GetLanguageJSONFilePath added in v0.3.0

func GetLanguageJSONFilePath(language string) (string, error)

func GetPluginDescriptor

func GetPluginDescriptor(pluginID, pluginVersion string) (*pluginDescriptor, error)

func GetPluginDescriptorFromJSON added in v0.3.0

func GetPluginDescriptorFromJSON(pluginJSON string) (*pluginDescriptor, error)

func IsLanguagePlugin added in v0.9.0

func IsLanguagePlugin(plugin string) bool

func IsPluginAdded

func IsPluginAdded(manifest *manifest.Manifest, descriptor *pluginDescriptor) bool

func IsPluginInstalled

func IsPluginInstalled(pluginName, pluginVersion string) bool

func PluginsWithoutScope added in v0.9.3

func PluginsWithoutScope() (infos []pluginInfo.PluginInfo)

func QueryParams added in v0.4.0

func QueryParams() string

func SetEnvForPlugin

func SetEnvForPlugin(action pluginScope, pd *pluginDescriptor, manifest *manifest.Manifest, pluginEnvVars map[string]string) error

func StartPlugin

func StartPlugin(pd *pluginDescriptor, action pluginScope) (*plugin, error)

Types

type GaugePlugins added in v0.8.5

type GaugePlugins struct {
	// contains filtered or unexported fields
}

func (*GaugePlugins) GracefullyKillPlugins added in v0.8.5

func (gp *GaugePlugins) GracefullyKillPlugins()

func (*GaugePlugins) NotifyPlugins added in v0.8.5

func (gp *GaugePlugins) NotifyPlugins(message *gauge_messages.Message)

type Handler added in v0.3.0

type Handler interface {
	NotifyPlugins(*gauge_messages.Message)
	GracefullyKillPlugins()
}

func StartPlugins

func StartPlugins(manifest *manifest.Manifest) Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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