Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // for plugin installation, discovery & sync on both client and server PluginsDir = ".plugins" PluginsArchiveName = "yaml-plugins.zip" )
Functions ¶
func Initialize ¶
func Initialize(pluginLogger hclog.Logger, arg ...string) (*models.PluginRepository, error)
func InstallPlugins ¶
func InstallPlugins(conf *config.ServerConfig) error
used during server start also exposed as cmd
Types ¶
type Factory ¶
type Factory func(log hclog.Logger) interface{}
Factory returns a new plugin instance
type IPluginManager ¶
type PluginManager ¶
type PluginManager struct {
// contains filtered or unexported fields
}
func NewPluginManager ¶
func NewPluginManager() *PluginManager
func (*PluginManager) Archive ¶
func (p *PluginManager) Archive(archiveName string) error
func (*PluginManager) Install ¶
func (p *PluginManager) Install(dst string, sources ...string) error
func (*PluginManager) UnArchive ¶
func (p *PluginManager) UnArchive(src, dest string) error
Click to show internal directories.
Click to hide internal directories.