Modules advanced topics

Wrappers and outer functions

Outer functions is a mechanism of using existing module functions in a given iteration.

In the event where a module or function is to be run in a remote target, it is possible to leverage the wrapping mechanism provided by Space. This wrapping mechanism will wrap any command and run it inside some other context, for instance, a remote shell over SSH, a container or a combination of the two.

Writing your own Space Module wrappers
  1. Make your own wrapper.
  2. Wrapping to be run inside a docker container.
  3. Wrapping to be run over SSH.
  4. Wrapping to be run inside a docker container over SSH.
  5. Run outer functions locally

[[ to be written ]]

Previous: Modules best practices

Next: Advanced Space.sh configuration

Edit this page