preparer

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPluginLoader = NewPreparerPlugin

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	ContextPath string
	PluginData  map[string]string
}

type Plugin

type Plugin struct {
	Preparer
	// contains filtered or unexported fields
}

func LoadPlugins

func LoadPlugins(preparerPluginsPath string) (preparerPlugins []*Plugin, err error)

func NewPreparerPlugin

func NewPreparerPlugin(location string) (*Plugin, error)

func (*Plugin) Client

func (p *Plugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)

func (*Plugin) Kill

func (p *Plugin) Kill()

func (*Plugin) Server

func (p *Plugin) Server(*plugin.MuxBroker) (interface{}, error)

type Preparer

type Preparer interface {
	Prepare(string, map[string]string) error
	Cleanup() error
}

Jump to

Keyboard shortcuts

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