src.core.nodefetchers package

Submodules

src.core.nodefetchers.basefetcher module

class src.core.nodefetchers.basefetcher.BaseFetcher(**kwargs)[source]

Bases: object

Base class for all kinds of backend fetchers

This class is the base/super class for all backend fetchers. Individual backend fetchers have to inherit this class and an optionally override the methods present in this class

Parameters:**kwargs (dictionary) – Dictionary containing params
fetch()[source]

Method for fecthing backend nodes from orchestrator

Make request for nodes. Should be overridden by individual fetchers

src.core.nodefetchers.orchestrator module

src.core.nodefetchers.orchestrator.get_orchestrator_handler(config, logger=None)[source]

Method for deciding which fetcher to use

Decide which fetcher to use depending on the orchestrator mentioned in the config.

Parameters:
  • config (dictionary) – dictionary holding ep2 config
  • logger (object) – logger object
Returns:

Backend fetcher

Return type:

object

src.core.nodefetchers.orchestrator.prepare_aws_handler(config, logger)[source]

Prepares the AWS fetcher

Parameters:config (dictionary) – dictionary containing ep2 config
Returns:Aws backend fetecher
Return type:srv.nodefetchers.awsfetcher.awsfetcher
src.core.nodefetchers.orchestrator.prepare_consul_handler(config, logger)[source]

Prepares the Consul fetcher

Parameters:config (dictionary) – dictionary containing ep2 config
Returns:Consul backend fetcher
Return type:srv.nodefetchers.consulfetcher.cosulfetcher

Module contents