Functions
All parameters are passed into a engine methods as a map of parameter value keyed to parameter name.
newPico
Creates a new pico and returns it's representation. i.e. `{id: "some-id"}`
removePico
newChannel
removeChannel
registerRuleset
unregisterRuleset(rid)
Unregisters the ruleset given by the rid. It will throw an error if the ruleset is installed on any picos, or depended on by another ruleset.
installRuleset( )
Installs rulesets into a pico.
Parameter | Datatype | Required |
---|---|---|
<pico_id> | <string> | √ |
<rid> | string | array | √ |
get_appinfo
response = engine:installRuleset( { "pico_id": ent:id, "rid": "wrangler" } ); response = engine:installRuleset( { "pico_id": ent:id, "rid": ["wrangler","Pds"] } ); response = engine:installRuleset( { "pico_id": ent:id, "base": <base>, "url": <url> } );