plugin

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2016 License: GPL-3.0, GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 Handler added in v0.3.0

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

func StartPlugins

func StartPlugins(manifest *manifest.Manifest) *Handler

func (*Handler) GracefullyKillPlugins added in v0.3.0

func (handler *Handler) GracefullyKillPlugins()

func (*Handler) NotifyPlugins added in v0.3.0

func (handler *Handler) NotifyPlugins(message *gauge_messages.Message)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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