Help us shape the future of Go! Take the 2026 Go Developer Survey

plugins

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor added in v0.9.0

type Executor interface {
	plugins.Plugin
	ExecuteCommand(ctx context.Context, root string, args []string) error
}

type NoOpPlugin added in v0.9.0

type NoOpPlugin struct {
	Out io.Writer
}

func (NoOpPlugin) ExecuteCommand added in v0.9.0

func (p NoOpPlugin) ExecuteCommand(_ context.Context, root string, args []string) error

func (NoOpPlugin) PluginName added in v0.9.0

func (NoOpPlugin) PluginName() string

type Plugin added in v0.9.0

type Plugin interface {
	PluginName() string
}

type SDKPlugin

type SDKPlugin interface {
	StdoutNeeder
	Plugin
	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 StdoutNeeder added in v0.9.0

type StdoutNeeder interface {
	SetStdout(io.Writer) error
}

type TestNoOpPlugin added in v0.9.0

type TestNoOpPlugin struct {
	NoOpPlugin
	// contains filtered or unexported fields
}

func (TestNoOpPlugin) ExecuteCommand added in v0.9.0

func (t TestNoOpPlugin) ExecuteCommand(_ context.Context, root string, args []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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