plugin

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2016 License: GPL-3.0, GPL-3.0 Imports: 23 Imported by: 32

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)

func GetLanguageJSONFilePath added in v0.3.0

func GetLanguageJSONFilePath(language string) (string, error)

func GetLatestInstalledPluginVersionPath added in v0.3.0

func GetLatestInstalledPluginVersionPath(pluginDir 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 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 ByPluginName added in v0.3.0

type ByPluginName []PluginInfo

func (ByPluginName) Len added in v0.3.0

func (a ByPluginName) Len() int

func (ByPluginName) Less added in v0.3.0

func (a ByPluginName) Less(i, j int) bool

func (ByPluginName) Swap added in v0.3.0

func (a ByPluginName) Swap(i, j int)

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
}

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