Documentation
¶
Index ¶
- Constants
- Variables
- func Get[T any](ctx context.Context, provider *Provider, name string) (T, error)
- func GetCopier(ctx context.Context, provider *Provider) (copier.CopierExecutor, error)
- func GetInstaller(ctx context.Context, provider *Provider) (installer.InstallerExecutor, error)
- func GetPuller(ctx context.Context, provider *Provider) (repos.PullExecutor, error)
- func GetRepoDirWriter(ctx context.Context, provider *Provider) (savers.RepoDirWriterExecutor, error)
- func GetScripter(ctx context.Context, provider *Provider) (scripter.ScriptExecutor, error)
- func GetSystemConfigWriter(ctx context.Context, provider *Provider) (savers.SystemConfigWriterExecutor, error)
- func PluginMap(r repos.PullExecutor, s scripter.ScriptExecutor) pluginInitFunc
- func RootPluginMap(p installer.InstallerExecutor, c copier.CopierExecutor, ...) pluginInitFunc
- func Serve(initFunc pluginInitFunc) error
- func ServeError(err error) error
- type Provider
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 GetCopier ¶
func GetInstaller ¶
func GetPuller ¶
func GetRepoDirWriter ¶ added in v0.1.0
func GetScripter ¶
func GetSystemConfigWriter ¶
func PluginMap ¶
func PluginMap(r repos.PullExecutor, s scripter.ScriptExecutor) pluginInitFunc
func RootPluginMap ¶
func RootPluginMap( p installer.InstallerExecutor, c copier.CopierExecutor, s savers.SystemConfigWriterExecutor, r savers.RepoDirWriterExecutor, ) pluginInitFunc
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Source Files
¶
- plugins.go
- utils.go
Click to show internal directories.
Click to hide internal directories.