plugin

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2017 License: GPL-3.0, GPL-3.0 Imports: 22 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 QueryParams added in v0.4.0

func QueryParams() string

func SetEnvForPlugin

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

func StartPlugin

func StartPlugin(pd *pluginDescriptor, action string) (*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

type PluginInfo added in v0.3.0

type PluginInfo struct {
	Name    string
	Version *version.Version
	Path    string
}

func GetAllInstalledPluginsWithVersion added in v0.3.0

func GetAllInstalledPluginsWithVersion() ([]PluginInfo, error)

func GetPluginsInfo added in v0.3.0

func GetPluginsInfo() []PluginInfo

func PluginsWithoutScope added in v0.9.3

func PluginsWithoutScope() (infos []PluginInfo)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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