plugin

package
v0.0.0-...-7638cb1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: Apache-2.0 Imports: 16 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

func IsPluginSupportedForCurrentPlatform

func IsPluginSupportedForCurrentPlatform(log log.T, pluginName string) (bool, string)

IsPluginSupportedForCurrentPlatform always returns true because currently, there is no plugin that particular linux version doesn't support while other linux version does.

func RegisteredLongRunningPlugins

func RegisteredLongRunningPlugins(context context.T) runpluginutil.PluginRegistry

LongRunningPlugins returns a map of long running plugins and their respective handlers

func RegisteredWorkerPlugins

func RegisteredWorkerPlugins(context context.T) runpluginutil.PluginRegistry

RegisteredWorkerPlugins returns all registered core plugins.

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, subDocumentRunner runpluginutil.PluginRunner) (res contracts.PluginResult)

Execute mocks a plugin execution.

Jump to

Keyboard shortcuts

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