package
0.0.0-20210208115033-95be1864fb86
Repository: https://github.com/somas2020/somas2020.git
Documentation: pkg.go.dev
# Functions
CompileRuleCase allows an agent to quickly build a RuleMatrix using the RawRuleSpecification.
ComplianceCheck Gives a simple check for compliance to clients, they just need to feed in a RuleMatrix and the variable cache they want to feed from.
ComplianceRecommendation *attempts* to calculate a set of variables that comply with a rule if the input variables don't satisfy it already.
No description provided by the author
CopyVariableMap easily copies variable cache.
No description provided by the author
Init Registers all global scoped rules.
init Registers all variables defined in Static variables list.
No description provided by the author
MakeVariableValuePair creates a VariableValuePair from the variable name and its value.
No description provided by the author
PickUpRulesByVariable returns a list of rule_id's which are affected by certain variables.
PullRuleIntoPlayInternal provides primal rule engagement logic for any pair of caches.
PullRuleOutOfPlayInternal provides primal rule disengagement logic for any pair of caches.
RegisterNewRuleInternal provides primal register logic for any rule cache.
RegisterNewVariableInternal provides primal register logic for any variable cache.
UpdateVariableInternal provides primal update logic for any variable cache.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RuleError enum allows for programmatic handling of Rule related errors .String() function available for printing in logs.
RuleError enum allows for programmatic handling of Rule related errors .String() function available for printing in logs.
RuleError enum allows for programmatic handling of Rule related errors .String() function available for printing in logs.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RuleError enum allows for programmatic handling of Rule related errors .String() function available for printing in logs.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParentFailAutoRulePass allows for NOT(Parent Passes) || Parent and Child pass Useful for cases where if a condition isn't met we don't want to evaluate a rule.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RuleError enum allows for programmatic handling of Rule related errors .String() function available for printing in logs.
RuleError enum allows for programmatic handling of Rule related errors .String() function available for printing in logs.
RuleError enum allows for programmatic handling of Rule related errors .String() function available for printing in logs.
RuleError enum allows for programmatic handling of Rule related errors .String() function available for printing in logs.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RuleError enum allows for programmatic handling of Rule related errors .String() function available for printing in logs.
No description provided by the author
RuleError enum allows for programmatic handling of Rule related errors .String() function available for printing in logs.
RuleError enum allows for programmatic handling of Rule related errors .String() function available for printing in logs.
No description provided by the author
No description provided by the author
# Variables
StaticVariables holds all globally defined variables.
# Structs
RawRuleSpecification allows a user to use the CompileRuleCase function to build a rule matrix.
RuleError provides a packaged version of the RuleErrorType for clients to deal with.
RuleEvaluationReturn provides a wrapped for the results of a rule evaluation.
RuleLink provides a containerised package for all linked rules.
RuleMatrix provides a container for our matrix based rules.
No description provided by the author
# Type aliases
LinkTypeOption gives an enumerated type for the various link types available for rules.
RuleErrorType is a non-critical issue which can be caused by an island trying to modify, register or pick rules which isn't mechanically feasible.
No description provided by the author