fakeplugins

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandleResponse

type HandleResponse struct {
	T   pluginCore.Transition
	Err error
}

func NewHandleError

func NewHandleError(err error) HandleResponse

func NewHandleTransition

func NewHandleTransition(transition pluginCore.Transition) HandleResponse

type NextPhaseState

type NextPhaseState struct {
	Phase        pluginCore.Phase
	PhaseVersion uint32
	TaskInfo     *pluginCore.TaskInfo
	TaskErr      *io.ExecutionError
	OutputExists bool
	OrError      bool
}

type NextPhaseStatePlugin

type NextPhaseStatePlugin struct {
	// contains filtered or unexported fields
}

func NewPhaseBasedPlugin

func NewPhaseBasedPlugin() NextPhaseStatePlugin

func (NextPhaseStatePlugin) Abort

func (NextPhaseStatePlugin) Finalize

func (NextPhaseStatePlugin) GetID

func (n NextPhaseStatePlugin) GetID() string

func (NextPhaseStatePlugin) GetProperties

func (NextPhaseStatePlugin) Handle

type ReplayerPlugin

type ReplayerPlugin struct {
	// contains filtered or unexported fields
}

This is a test plugin and can be used to play any scenario responses from a plugin, (exceptions: panic) The plugin is to be invoked within a single thread (not thread safe) and is very simple in terms of usage It does not use any state and does not drive the state machine using that state. It drives the state machine constantly forward for a taskID

func NewReplayer

func NewReplayer(forPluginID string, props pluginCore.PluginProperties, orderedOnHandleResponses []HandleResponse, orderedAbortResponses, orderedFinalizeResponses []error) *ReplayerPlugin

func (ReplayerPlugin) Abort

func (ReplayerPlugin) Finalize

func (ReplayerPlugin) GetID

func (r ReplayerPlugin) GetID() string

func (ReplayerPlugin) GetProperties

func (r ReplayerPlugin) GetProperties() pluginCore.PluginProperties

func (ReplayerPlugin) Handle

func (ReplayerPlugin) VerifyAllCallsCompleted

func (r ReplayerPlugin) VerifyAllCallsCompleted(taskExecID string) error

Jump to

Keyboard shortcuts

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