D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
clcommon
/
Filename :
const.py
back
Copy
# -*- 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 = 'wpos' 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.WPOS: True, Feature.WIZARD: True, } 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: True, Feature.WPOS: False, } SOLO_CL_FEATURES = { **ALL_CL_FEATURES, # we are not supporting following features Feature.RUBY_SELECTOR: False, Feature.PYTHON_SELECTOR: False, Feature.NODEJS_SELECTOR: False, Feature.LSAPI: 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, }