package
4.1.0+incompatible
Repository: https://github.com/open-horizon/anax.git
Documentation: pkg.go.dev

# Functions

Add service default properties to the given service policy.
It does the policy compatibility check.
This function checks the user inputs against the service definitions for redundant services and input variables.
Check if the node type is compatible with the serivce.
No description provided by the author
EvaluatePatternPrivilegeCompatability determines if a given node requires a workload that uses privileged mode or network=host.
GetAllServices returns a map of serviceIds to service definitions of the given service and any service it is dependent on evaluated recursively.
get business policy from the exchange.
Get the exchange device.
Get node policy from the exchange and convert it to internal policy.
get pattern from the exchange.
Get service policy from the exchange,.
Get service policy from the exchange and then add the service defalt properties.
Get service policy from the exchange.
Merge a service policy into a business policy.
This function merges the given business policy with the given built-in properties of the service and the given service policy from the top level service, if any.
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
This is the function that HZN and the agbot secure API calls.
Returns an array of values from the given map.
SetServicePolicyPrivilege sets a property on the service privilege that indicates if the service uses a workload that requires privileged mode or network=host This will not overwrite openhorizon.allowPrivileged=true if the service is found to not require privileged mode.
This is the function that HZN and the agbot secure API calls.
verifies the input node type has valid value and it matches the exchange node type.
This function does the following: 1.
This function does the following: 1.
Verfiy that all userInput variables are correctly typed and that non-defaulted userInput variables are specified.
Verfiy that all userInput variables are correctly typed and that non-defaulted userInput variables are specified.

# Constants

error code for compatibility check error: CompCheckError.
error code for compatibility check error: CompCheckError.
error code for compatibility check error: CompCheckError.
error code for compatibility check error: CompCheckError.
error code for compatibility check error: CompCheckError.
error code for compatibility check error: CompCheckError.

# Structs

The input format for the comptible check.
Error for policy compatibility check.
The output format for the compatibility check.
To store the resource (pattern, bp, services etc) used for compatibility check.
No description provided by the author
The input format for the policy check.
No description provided by the author
No description provided by the author
The input format for the userinput check.