Liking cljdoc? Tell your friends :D

riemann.plugin

Simple plugin loader for riemann.

Riemann already offers the ability to load jar files in the classpath through its initialization scripts. This namespace allows walking the classpath, looking for small meta files distributed with plugins which hint at the requires.

This allows load-plugins or load-plugin to make new functions and streams available in the config file without resorting to manual requires.

The meta file distributed with plugins is expected to be an EDN file containing at least two keys:

  • plugin: the plugin name
  • require: the namespace to load

The namespace will be made available using the plugin name's symbol value.

Simple plugin loader for riemann.

Riemann already offers the ability to load jar files in the classpath
through its initialization scripts. This namespace allows walking the
classpath, looking for small meta files distributed with plugins which
hint at the requires.

This allows `load-plugins` or `load-plugin` to make new functions and
streams available in the config file without resorting to manual
requires.

The meta file distributed with plugins is expected to be an EDN file
containing at least two keys:

- `plugin`: the plugin name
- `require`: the namespace to load

The namespace will be made available using the plugin name's symbol
value.
raw docstring

load-from-metaclj

(load-from-meta {:keys [plugin require]} {:keys [alias]})

Given a metadata description map, require plugin's namespace

Given a metadata description map, require plugin's namespace
sourceraw docstring

load-from-resourceclj

(load-from-resource src options)

Given a path to a java resource, load metadata and require plugin

Given a path to a java resource, load metadata and require plugin
sourceraw docstring

load-pluginclj

(load-plugin plugin)
(load-plugin plugin options)

Given a plugin name, look for its metadata description file, and require plugin's namespace. Optionally accepts an option map containing the :alias keyword which determines whether to create named aliases for the loaded plugin

Given a plugin name, look for its metadata description file, and
require plugin's namespace.
Optionally accepts an option map containing the :alias keyword which determines
whether to create named aliases for the loaded plugin
sourceraw docstring

load-pluginsclj

(load-plugins)
(load-plugins options)

Walk classpath and try to load all plugins that were found. Optionally accepts an option map containing the :alias keyword which determines whether to create named aliases for loaded plugins

Walk classpath and try to load all plugins that were found.
Optionally accepts an option map containing the :alias keyword which determines
whether to create named aliases for loaded plugins
sourceraw docstring

read-safelyclj

(read-safely src)

Read data without evaluation

Read data without evaluation
sourceraw docstring

repoclj

Default location of local maven repository

Default location of local maven repository
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close