plugin

package
v0.0.0-...-3f59448 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package plugin contains general interfaces and types relevant to plugins. It also provides the methods for registering plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
	mock.Mock
}

Mock stands for a mocked plugin.

func (*Mock) Execute

func (m *Mock) Execute(context context.T, config contracts.Configuration, cancelFlag task.CancelFlag) (res contracts.PluginResult)

Execute mocks a plugin execution.

type PluginRegistry

type PluginRegistry map[string]T

PluginRegistry stores a set of plugins, indexed by ID.

func RegisteredWorkerPlugins

func RegisteredWorkerPlugins(context context.T) PluginRegistry

RegisteredWorkerPlugins returns all registered core plugins.

type T

type T interface {
	Execute(context context.T, config contracts.Configuration, cancelFlag task.CancelFlag) contracts.PluginResult
}

T is the interface type for plugins.

Jump to

Keyboard shortcuts

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