reply

package
v0.0.0-...-84afe80 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package reply provides utilities to parse reply payload

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareReplyPayload

func PrepareReplyPayload(pluginID string,
	runtimeStatuses map[string]*contracts.PluginRuntimeStatus,
	dateTime time.Time,
	agentInfo contracts.AgentInfo) (payload messageContracts.SendReplyPayload)

PrepareReplyPayload creates the payload object for SendReply based on plugin outputs.

func PrepareRuntimeStatuses

func PrepareRuntimeStatuses(log log.T, pluginOutputs map[string]*contracts.PluginResult) (runtimeStatuses map[string]*contracts.PluginRuntimeStatus)

PrepareRuntimeStatuses creates runtime statuses from plugin outputs. contracts.PluginResult and contracts.PluginRuntimeStatus are mostly same. however they are decoupled on purpose so that we can do any special handling / serializing when sending response to server side.

Types

This section is empty.

Jump to

Keyboard shortcuts

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