コード例 #1
0
    'category': 'catalogs',
    'description': '',
    'properties': {}
  },
  {'nice_name': "Atlas", 'dialect': 'atlas', 'interface': 'rest', 'settings': [], 'category': 'catalogs', 'description': '', 'properties': {}},
  {'nice_name': "Navigator", 'dialect': 'navigator', 'interface': 'rest', 'settings': [], 'category': 'catalogs', 'description': '', 'properties': {}},

  {'nice_name': "Optimizer", 'dialect': 'optimizer', 'settings': [], 'category': 'optimizers', 'description': '', 'properties': {}},

  {'nice_name': "Oozie", 'dialect': 'oozie', 'settings': [], 'category': 'schedulers', 'description': '', 'properties': {}},
  {'nice_name': "Celery", 'dialect': 'celery', 'settings': [], 'category': 'schedulers', 'description': '', 'properties': {}},
]

CONNECTOR_TYPES = [connector for connector in CONNECTOR_TYPES if connector['dialect'] not in CONNECTORS_BLACKLIST.get()]

if CONNECTORS_WHITELIST.get():
  CONNECTOR_TYPES = [connector for connector in CONNECTOR_TYPES if connector['dialect'] in CONNECTORS_WHITELIST.get()]


CATEGORIES = [
  {"name": "Editor", 'type': 'editor', 'description': ''},
  {"name": "Browsers", 'type': 'browsers', 'description': ''},
  {"name": "Catalogs", 'type': 'catalogs', 'description': ''},
  {"name": "Optimizers", 'type': 'optimizers', 'description': ''},
  {"name": "Schedulers", 'type': 'schedulers', 'description': ''},
  {"name": "Plugins", 'type': 'plugins', 'description': ''},
]


def get_connectors_types():
  return CONNECTOR_TYPES
コード例 #2
0
    {
        'nice_name': "Celery",
        'dialect': 'celery',
        'settings': [],
        'category': 'schedulers',
        'description': '',
        'properties': {}
    },
]

CONNECTOR_TYPES = [
    connector for connector in CONNECTOR_TYPES
    if connector['dialect'] not in CONNECTORS_BLACKLIST.get()
]

if CONNECTORS_WHITELIST.get():
    CONNECTOR_TYPES = [
        connector for connector in CONNECTOR_TYPES
        if connector['dialect'] in CONNECTORS_WHITELIST.get()
    ]

CATEGORIES = [
    {
        "name": "Editor",
        'type': 'editor',
        'description': ''
    },
    {
        "name": "Browsers",
        'type': 'browsers',
        'description': ''