swarm

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Kind is the canonical name of the plugin and also key used to locate the plugin in discovery
	Kind = "swarm"
)

Variables

View Source
var DefaultOptions = Options{
	Options: template.Options{
		MultiPass: true,
	},
}

DefaultOptions return an Options with default values filled in.

Functions

func Run

func Run(plugins func() discovery.Plugins, name plugin.Name,
	config *types.Any) (transport plugin.Transport, impls map[run.PluginCode]interface{}, onStop func(), err error)

Run runs the plugin, blocking the current thread. Error is returned immediately if the plugin cannot be started.

Types

type Options

type Options struct {
	template.Options `json:",inline" yaml:",inline"`

	// ManaagerInitScriptTemplate is the URL of the template for manager init script
	// This is overridden by the value provided in the spec.
	ManagerInitScriptTemplate string

	// WorkerInitScriptTemplate is the URL of the template for worker init script
	// This is overridden by the value provided in the spec.
	WorkerInitScriptTemplate string
}

Options capture the options for starting up the group controller.

Jump to

Keyboard shortcuts

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