resolve

package
v0.0.0-...-4e18fe8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(sourceName string, cmd plugin.Command) plugin.ResolvedCommand

Command creates a plugin.ResolvedCommand from the passed plugin.Command using the passed source name.

func Module

func Module(sourceName string, mod plugin.Module) plugin.ResolvedModule

Module creates a plugin.ResolvedModule from the passed plugin.Module using the passed source name.

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
	// UnavailableSources are the plugin.UnavailableSources the plugin provider
	// 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) Command

func (p *Provider) Command(id plugin.ID) plugin.ResolvedCommand

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) Module

func (p *Provider) Module(id plugin.ID) plugin.ResolvedModule

func (*Provider) Modules

func (p *Provider) Modules() []plugin.ResolvedModule

func (*Provider) PluginSources

func (p *Provider) PluginSources() []plugin.Source

func (*Provider) UnavailablePluginSources

func (p *Provider) UnavailablePluginSources() []plugin.UnavailableSource

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL