Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetermineExecutableFilenameSuffix ¶
func DetermineExecutableFilenameSuffix() string
DetermineExecutableFilenameSuffix returns the extension for binaries on the current operating system.
func DeterminePluginFilename ¶
DetermineBazelFilename returns the correct file name of a local Bazel binary. The logic produces the same naming as our /release/release.bzl gives to our aspect-cli binaries.
Types ¶
type CustomCommandExecutor ¶
type CustomCommandExecutor interface {
ExecuteCustomCommand(cmdName string, ctx context.Context, args []string) error
}
CustomCommandExecutor requires the Plugin implementations to provide the ExecuteCustomCommand method so that the Core can ask over gRPC for a specific command to be executed. `cmdName` is the name of the custom command the plugin created.
type Factory ¶
type Factory interface {
New(config loader.AspectPlugin, streams ioutils.Streams) (*PluginInstance, error)
}
A Factory class for constructing plugin instances.
func NewFactory ¶
func NewFactory() Factory
type PluginInstance ¶
type PluginInstance struct { plugin.Plugin Provider CustomCommandExecutor }
A PluginInstance consists of the underling Plugin as well as any associated objects or metadata.
type Provider ¶
type Provider interface { Client() (goplugin.ClientProtocol, error) Kill() }
Provider is an interface for goplugin.Client returned by goplugin.NewClient.