Documentation
¶
Index ¶
- type PluginFn
- type PluginGetter
- type SDKPlugin
- type SDKPluginBinder
- type SDKPluginBinderFn
- type SDKPluginLoader
- type SDKPluginLoaderFn
- type SdkPluginW
- func (w *SdkPluginW) Current(ctx context.Context, args []string) error
- func (w *SdkPluginW) Download(ctx context.Context, args []string) error
- func (w *SdkPluginW) GetPlugin() *plugin.Plugin
- func (w *SdkPluginW) Install(ctx context.Context, args []string) error
- func (w *SdkPluginW) List(ctx context.Context, args []string) error
- func (w *SdkPluginW) Lookup(symName string) (sym plugin.Symbol, err error)
- func (w *SdkPluginW) PluginName() string
- func (w *SdkPluginW) SetStdout(writer io.Writer) error
- func (w *SdkPluginW) Use(ctx context.Context, args []string) error
- type SymbolLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginGetter ¶
func LoadSDKPlugin ¶
func LoadSDKPlugin(elfModule string) (plug PluginGetter, err error)
type SDKPlugin ¶
type SDKPlugin interface {
SetStdout(io.Writer) error
PluginName() string
Install(ctx context.Context, args []string) error
Download(ctx context.Context, args []string) error
List(ctx context.Context, args []string) error
Current(ctx context.Context, args []string) error
Use(ctx context.Context, args []string) error
}
type SDKPluginBinder ¶
type SDKPluginBinderFn ¶
SDKPluginBinderFn already implements interface SDKPluginBinder
type SDKPluginLoader ¶
type SDKPluginLoader interface {
LoadSDKPlugin(elfModule string) (plug PluginGetter, err error)
}
type SDKPluginLoaderFn ¶
type SDKPluginLoaderFn func(elfModule string) (plug PluginGetter, err error)
func (*SDKPluginLoaderFn) LoadSDKPlugin ¶
func (loaderFnP *SDKPluginLoaderFn) LoadSDKPlugin(elfModule string) (plug PluginGetter, err error)
type SdkPluginW ¶
type SdkPluginW struct {
Plug plugin.Plugin
NameFn func() string
InstallFn PluginFn
DownloadFn PluginFn
ListFn PluginFn
CurrentFn PluginFn
UseFn PluginFn
OutFn func(writer io.Writer) error
}
func (*SdkPluginW) Download ¶
func (w *SdkPluginW) Download(ctx context.Context, args []string) error
func (*SdkPluginW) GetPlugin ¶
func (w *SdkPluginW) GetPlugin() *plugin.Plugin
func (*SdkPluginW) Lookup ¶
func (w *SdkPluginW) Lookup(symName string) (sym plugin.Symbol, err error)
func (*SdkPluginW) PluginName ¶
func (w *SdkPluginW) PluginName() string
Click to show internal directories.
Click to hide internal directories.