local

package
v0.0.0-...-a355528 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(plugins func() discovery.Plugins,
	pluginManager *manager.Manager,
	starts func() ([]StartPlugin, error),
	do scope.Work, options Options) error

Execute runs a unit of work with the specified list of plugins running.

Types

type Options

type Options struct {
	// StartWait is how long to wait to make sure all plugins are up
	StartWait types.Duration
	// StopWait is how long to wait to make sure all plugins are shut down
	StopWait types.Duration
}

Options are tuning parameters for executing a task in context of a set of plugins that are started as required.

type StartPlugin

type StartPlugin string

StartPlugin is a specification of what plugin to run and what socket name to use, etc. The format is kind[:{plugin_name}][={os|inproc}]

func FromAddressable

func FromAddressable(addr core.Addressable) StartPlugin

FromAddressable returns a StartPlugin encoded string

func Plugins

func Plugins(gid group.ID, gspec group_types.Spec) ([]StartPlugin, error)

Plugins returns a list of startPlugin directives from the input. This will recurse into any composable plugins.

func (StartPlugin) Parse

func (arg StartPlugin) Parse() (execName string, kind string, name plugin.Name, err error)

Parse parses the specification into parts that the manager can use to launch plugins

Jump to

Keyboard shortcuts

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