Plugin file store integration

These APIs allow your plugin to integrated with the file store.


function fileTransformPipelineCallback(name, callbacks)

Call this function to register callbacks to handle completion of file transform pipelines with the given name.

name should include the plugin name to avoid clashes.

callbacks contains one or both of success and error functions, which are called with a FileTransformResult object as their single argument.

For example,

P.fileTransformPipelineCallback("example_plugin:example", {
    success: function(result) {
        // Do something when the pipeline completes successfully.
    error: function(result) {
        // Do something to recover from the error.

If you do not need to store the result of the pipeline in the file store, it may be easier to just use the functions for generating URLs and views instead.