Documentation ¶
Index ¶
- func Command(sourceName string, cmd plugin.Command) plugin.ResolvedCommand
- func Module(sourceName string, mod plugin.Module) plugin.ResolvedModule
- type Provider
- func (p *Provider) Command(id plugin.ID) plugin.ResolvedCommand
- func (p *Provider) Commands() []plugin.ResolvedCommand
- func (p *Provider) FindCommand(invoke string) plugin.ResolvedCommand
- func (p *Provider) FindCommandWithArgs(invoke string) (cmd plugin.ResolvedCommand, args string)
- func (p *Provider) FindModule(invoke string) plugin.ResolvedModule
- func (p *Provider) Module(id plugin.ID) plugin.ResolvedModule
- func (p *Provider) Modules() []plugin.ResolvedModule
- func (p *Provider) PluginSources() []plugin.Source
- func (p *Provider) UnavailablePluginSources() []plugin.UnavailableSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider struct { // Sources are the plugin.CustomSources the plugin provider provides. // // Modifying this after using one of the Providers methods will have no // effect. Sources []plugin.Source // could not provide. // // Modifying this after using one of the Providers methods will have no // effect. UnavailableSources []plugin.UnavailableSource // contains filtered or unexported fields }
Provider mocks the plugin.Provider interface.
func (*Provider) Commands ¶
func (p *Provider) Commands() []plugin.ResolvedCommand
func (*Provider) FindCommand ¶
func (p *Provider) FindCommand(invoke string) plugin.ResolvedCommand
func (*Provider) FindCommandWithArgs ¶
func (p *Provider) FindCommandWithArgs(invoke string) (cmd plugin.ResolvedCommand, args string)
func (*Provider) FindModule ¶
func (p *Provider) FindModule(invoke string) plugin.ResolvedModule
func (*Provider) Modules ¶
func (p *Provider) Modules() []plugin.ResolvedModule
func (*Provider) PluginSources ¶
func (*Provider) UnavailablePluginSources ¶
func (p *Provider) UnavailablePluginSources() []plugin.UnavailableSource
Click to show internal directories.
Click to hide internal directories.