plugins

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderSubcommand     = "_plugin_provider"
	RootProviderSubcommand = "_root_plugin_provider"
)

Variables

View Source
var HandshakeConfig = plugin.HandshakeConfig{
	ProtocolVersion:  1,
	MagicCookieKey:   "STPLR_PLUGIN",
	MagicCookieValue: "-",
}

Functions

func Get

func Get[T any](ctx context.Context, provider *Provider, name string) (T, error)

func GetCopier

func GetCopier(ctx context.Context, provider *Provider) (copier.CopierExecutor, error)

func GetInstaller

func GetInstaller(ctx context.Context, provider *Provider) (installer.InstallerExecutor, error)

func GetPuller

func GetPuller(ctx context.Context, provider *Provider) (repos.PullExecutor, error)

func GetRepoDirWriter added in v0.1.0

func GetRepoDirWriter(ctx context.Context, provider *Provider) (savers.RepoDirWriterExecutor, error)

func GetScripter

func GetScripter(ctx context.Context, provider *Provider) (scripter.ScriptExecutor, error)

func GetSystemConfigWriter

func GetSystemConfigWriter(ctx context.Context, provider *Provider) (savers.SystemConfigWriterExecutor, error)

func PluginMap

func PluginMap(r repos.PullExecutor, s scripter.ScriptExecutor) pluginInitFunc

func RootPluginMap

func Serve

func Serve(initFunc pluginInitFunc) error

func ServeError added in v0.1.0

func ServeError(err error) error

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(out output.Output) *Provider

func (*Provider) Cleanup

func (p *Provider) Cleanup() error

func (*Provider) SetupConnection

func (p *Provider) SetupConnection() error

func (*Provider) SetupRootConnection

func (p *Provider) SetupRootConnection() error

Source Files

  • plugins.go
  • utils.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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