lrpminvoker

package
v0.0.0-...-a9ed6da Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package lrpminvoker contains implementation of lrpm-invoker plugin. (lrpm - long running plugin manager) lrpminvoker is an ondemand worker plugin - which can be called by SSM config or SSM Command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name() string

Name returns the plugin name

Types

type InvokerInput

type InvokerInput struct {
	ID         string      `json:"id"`
	Properties interface{} `json:"properties"`
}

InvokerInput represents input to lrpm invoker

type LongRunningPluginSettings

type LongRunningPluginSettings struct {
	StartType string
}

LongRunningPluginSettings represents startType configuration of long running plugin

type Plugin

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

Plugin is the type for the lrpm invoker plugin.

func NewPlugin

func NewPlugin(lrpName string) (*Plugin, error)

NewPlugin returns an instance of lrpminvoker for a given long running plugin name

func (*Plugin) CreateResult

func (p *Plugin) CreateResult(log logger.T, msg string, status contracts.ResultStatus, out iohandler.IOHandler)

CreateResult returns a PluginResult for given message and status

func (*Plugin) Execute

func (p *Plugin) Execute(context context.T, config contracts.Configuration, cancelFlag task.CancelFlag, output iohandler.IOHandler)

Jump to

Keyboard shortcuts

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