ok
Direktori : /proc/self/root/opt/alt/python37/lib/python3.7/site-packages/clcommon/ |
Current File : //proc/self/root/opt/alt/python37/lib/python3.7/site-packages/clcommon/const.py |
# -*- coding: utf-8 -*- # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2018 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT class Feature: """ Enum of available CloudLinux features that vendors can disable or enable """ PHP_SELECTOR = 'php_selector' RUBY_SELECTOR = 'ruby_selector' PYTHON_SELECTOR = 'python_selector' NODEJS_SELECTOR = 'nodejs_selector' LSAPI = 'mod_lsapi' GOVERNOR = 'mysql_governor' LVE = 'lve' WIZARD = 'wizard' CAGEFS = 'cagefs' RESELLER_LIMITS = 'reseller_limits' XRAY = 'xray' WPOS = 'accelerate_wp' AUTOTRACING = 'autotracing' ALL_CL_FEATURES = { Feature.PHP_SELECTOR: True, Feature.RUBY_SELECTOR: True, Feature.PYTHON_SELECTOR: True, Feature.NODEJS_SELECTOR: True, Feature.LSAPI: True, Feature.GOVERNOR: True, Feature.CAGEFS: True, Feature.LVE: True, Feature.RESELLER_LIMITS: True, Feature.XRAY: True, Feature.AUTOTRACING: True, Feature.WPOS: True, Feature.WIZARD: True, } SHARED_CL_FEATURES = { **ALL_CL_FEATURES, # we are not supporting following features Feature.XRAY: False, Feature.WPOS: False, Feature.AUTOTRACING: False, } SHARED_PRO_CL_FEATURES = { **ALL_CL_FEATURES, } UBUNTU_CL_FEATURES = { Feature.PHP_SELECTOR: True, Feature.RUBY_SELECTOR: False, Feature.PYTHON_SELECTOR: False, Feature.NODEJS_SELECTOR: False, Feature.LSAPI: False, Feature.GOVERNOR: True, Feature.CAGEFS: True, Feature.LVE: True, Feature.RESELLER_LIMITS: True, Feature.XRAY: False, Feature.AUTOTRACING: False, Feature.WPOS: False, } SOLO_CL_FEATURES = { **ALL_CL_FEATURES, # we are not supporting following features Feature.RUBY_SELECTOR: False, Feature.GOVERNOR: False, Feature.LVE: False, Feature.RESELLER_LIMITS: False, } ADMIN_CL_FEATURES = { **ALL_CL_FEATURES, # we are not supporting following features Feature.RESELLER_LIMITS: False, Feature.GOVERNOR: False, } CONTAINER_CL_FEATURES = { **ALL_CL_FEATURES, # we are not supporting following features Feature.RESELLER_LIMITS: False, Feature.GOVERNOR: False, Feature.LVE: False, Feature.RUBY_SELECTOR: False, }