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.
Click to show internal directories.
Click to hide internal directories.