Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

This page is unfinished. For a taste, see the engine module documentation.

Wrangler is an operating system written in KRL for picos. Wrangler provides developers a way to programmatically and easily manage picos.

To use Wrangler as a module, add "use module io.picolabs.wrangler alias wrangler" in your meta block.

Functions

For all functions, enter the parameters in the order listed.

skyQuery

A user friendly way to make an HTTP request. It provides cleanup and returns the error if the returned HTTP status was not 200.

ParameterDatatypeRequired
<eci><string>YES
<mod>

<func>

<params>

<_host>

<_path>

<_root_url>

 

Defactions

Events/Rules

When a rule raises an event in the postlude, it will also pass along all the attributes it received (including any attributes not used in that event) in addition to any new information that may be relevant to other rules.

Ruleset Events

installRulesets

(Domain: wrangler, Type: install_rulesets_requested)

Installs the given rulesets in the pico that receives this event.

eventAttrs:

AttributeDatatypeRequiredAdditional Description
<rids><array> OR <string>YESThe array is an array of strings, where each string represents the name of the ruleset (the RID) to be installed. You may alternatively provide a single string that is separated by semicolons. Multiple rulesets are not required.

Directives Returned:

send_directive("rulesets installed", { "rids": /* An array of rids that were installed*/ });

Raised Events:

DomainTypeAttributes Added
wranglerruleset_added
{
"rids": /* An array of rids that were installed*/
}

Sent Events:

None

  • No labels