The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Prove::Elasticsearch::Utils - common functions used by multiple modules in the distribution.

VERSION

version 0.001

FUNCTIONS

process_configuration

Read the configuration & any CLI args (key=value,key=value...), and set their values in ENV.

require_indexer($conf)

Require the needed indexer implied by the configuration passed. Set the ENV var CLIENT_INDEXER for use by parser, etc.

require_searcher($conf)

Require the needed searcher implied by the configuration passed. Set the ENV var CLIENT_AUTODISCOVER for use by parser, etc.

Will die unless you have autodiscover= set in your configuration, as there is no default searcher.

require_blamer($conf)

Require the needed searcher implied by the configuration passed. Set the ENV var CLIENT_BLAMER for use by parser, etc.

require_planner($conf)

Require the needed planner implied by the configuration passed. Set the ENV var CLIENT_PLANNER for use by parser, etc.

require_platformer($conf)

Require the needed platformer implied by the configuration passed. Set the ENV var CLIENT_PLATFORMER for use by parser, etc.

require_queue($conf)

Require the needed queue module implied by the configuration passed Sets the ENV var CLIENT_QUEUE for use by testd & testplan, etc

require_versioner($conf)

Require the needed versioner module implied by the configuration passed Sets the ENV var CLIENT_VERSIONER for use by parser, etc

require_runner($conf)

Require the needed runner module implied by the configuration passed Sets the ENV var CLIENT_RUNNER for use by testd, etc

require_provisioner($module)

Require the needed runner module provided. Sets the ENV var CLIENT_PROVISIONERS for use by testd, etc

ES convenience methods

These are used directly in some indexer & planner subs. Thankfully, those are required dynamically, so reliance on these shouldn't break plugin compatibility.

get_last_index

Ask ES for the last index it has on hand, so we can then add some new records.

Arguments are ES handle and index name.

do_paginated_query

Do an elasticsearch paginated query.

Arguments are ES handle, max query results and the query to paginate (HASH).

AUTHOR

George S. Baugh <teodesian@cpan.org>

SOURCE

The development version is on github at http://https://github.com/teodesian/App-Prove-Elasticsearch and may be cloned from git://https://github.com/teodesian/App-Prove-Elasticsearch.git

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by George S. Baugh.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.