Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandPathToString ¶
Types ¶
type CommandProvider ¶
type Plugin ¶
type Plugin interface {
GetCommand() *cobra.Command
GetCommandPath() []string
Init(CommandProvider) error
GetServiceAssociated() string
}
Plugin interface represents the functionality that plugins can provide.
type PluginOption ¶
type PluginOption func(*plugin) error
func AssociateService ¶
func AssociateService(service string) PluginOption
Use this to associate a plugin with a service. So if failed to load service, this plugin won't load. A plugin is considerated Service associated if get a service command and modify its behaviour
Click to show internal directories.
Click to hide internal directories.