Documentation ¶
Index ¶
- type PluginConfig
- func (c *PluginConfig) Close()
- func (c *PluginConfig) GetPluginPath() string
- func (c *PluginConfig) ListCommands() []string
- func (c *PluginConfig) Plugins() map[string]PluginMetadata
- func (c *PluginConfig) RemovePlugin(name string)
- func (c *PluginConfig) SetPlugin(name string, metadata PluginMetadata)
- type PluginConfiguration
- type PluginData
- type PluginMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginConfig ¶
type PluginConfig struct {
// contains filtered or unexported fields
}
func NewPluginConfig ¶
func NewPluginConfig(errorHandler func(error), persistor configuration.Persistor, pluginPath string) *PluginConfig
func (*PluginConfig) Close ¶
func (c *PluginConfig) Close()
func (*PluginConfig) GetPluginPath ¶
func (c *PluginConfig) GetPluginPath() string
func (*PluginConfig) ListCommands ¶
func (c *PluginConfig) ListCommands() []string
func (*PluginConfig) Plugins ¶
func (c *PluginConfig) Plugins() map[string]PluginMetadata
func (*PluginConfig) RemovePlugin ¶
func (c *PluginConfig) RemovePlugin(name string)
func (*PluginConfig) SetPlugin ¶
func (c *PluginConfig) SetPlugin(name string, metadata PluginMetadata)
type PluginConfiguration ¶
type PluginConfiguration interface { Plugins() map[string]PluginMetadata SetPlugin(string, PluginMetadata) GetPluginPath() string RemovePlugin(string) ListCommands() []string }
type PluginData ¶
type PluginData struct {
Plugins map[string]PluginMetadata
}
func NewData ¶
func NewData() *PluginData
func (*PluginData) JSONMarshalV3 ¶
func (pd *PluginData) JSONMarshalV3() (output []byte, err error)
func (*PluginData) JSONUnmarshalV3 ¶
func (pd *PluginData) JSONUnmarshalV3(input []byte) (err error)
type PluginMetadata ¶
type PluginMetadata struct { Location string Version plugin.VersionType Commands []plugin.Command }
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.