operparse

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RESERVED_INSTANCE_NAME string = "__obsv_instance__"

Functions

func ComputeArgs

func ComputeArgs(arg_spec []string, obsv operation.Observation) []string

Replaces a special string in a list of arguments (used for observations and reaction impls) with specific data from elsewhere

func ConcatOperations added in v0.0.9

func ConcatOperations(first *operation.Operations, second *operation.Operations) *rgerror.RGerror

Yeah this is big and ugly and could probably have helper functions, but I don't want to do that much interface magic and pass enough strings around to make the messages different and helpful.

func ParseOperations added in v0.0.9

func ParseOperations(raw_data []byte, data *operation.Operations) *rgerror.RGerror

Idempotent function for merging new data in to Operations struct. Can be used more than once to read data from multiple sources

func SelectAction

func SelectAction(actn_name string, actns map[string]operation.Action) *operation.Action

func SelectImplementActionByName

func SelectImplementActionByName(impl_name string, impls map[string]operation.Implement) *operation.Action

func SelectImplementActionForCorrection

func SelectImplementActionForCorrection(obsv operation.Observation, obsv_result operation.ObservationResult, impls map[string]operation.Implement) (string, *operation.Action)

func SelectObservation

func SelectObservation(obsv_name string, obsvs map[string]operation.Observation) *operation.Observation

func SelectObservationResult

func SelectObservationResult(obsv_name string, obsv_results map[string]operation.ObservationResult) *operation.ObservationResult

Types

This section is empty.

Jump to

Keyboard shortcuts

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