Documentation ¶
Index ¶
- Variables
- func InitApp(use, short, version string, def *models.PluginProvider, pc PluginConfig)
- func Leaving(e *models.Error)
- func ListObjects(prefix string) ([]*models.RawModel, *models.Error)
- func Publish(t, a, k string, o interface{})
- type PluginActor
- type PluginConfig
- type PluginPublisher
- type PluginStop
- type PluginUnpacker
- type PluginValidator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // App is the global cobra command structure. App = &cobra.Command{ Use: "replaceme", Short: "Replace ME!", } )
Functions ¶
func InitApp ¶
func InitApp(use, short, version string, def *models.PluginProvider, pc PluginConfig)
InitApp initializes the plugin system and makes the base actions available in cobra CLI.
Types ¶
type PluginActor ¶
PluginActor defines the Action routine used to invoke actions by the plugin.
type PluginConfig ¶
type PluginConfig interface {
Config(logger.Logger, *api.Client, map[string]interface{}) *models.Error
}
PluginConfig defines the Config routine used to configure a specific instance of a plugin.
type PluginPublisher ¶
PluginPublisher defines the Publish routine used to send events to a plugin.
type PluginStop ¶
PluginStop defines the Stop routine used to inform a plugin that it should stop.
type PluginUnpacker ¶
PluginUnpacker defines the Unpack routine used to unpack embedded assets to the specified path.
Click to show internal directories.
Click to hide internal directories.