external

Work with remote policy servers

eval<url>

Evaluate an input against an external compatible-enough server endpoint.

Takes a single parameter of the URL to the external server.

remote<url>

Invoke a remote policy.

pattern my-remote-pattern = remote<"https://server/policy/v1alpha1/the-remote-policy">

Example

The following example demonstrates using the same policy, either remotely or locally.

Of course this is a simple example. A real example might be more complex, but would work the same way.
pattern remote = external::remote<"https://playground.seedwing.io/api/policy/v1alpha1/maven::GAV">
pattern local = maven::GAV

The value:

"org.eclipse.packager:packager-rpm:0.19.0"