⛲
OpenSt­ack 源码­分析之 Magnum
  • 前言
  • 整体结构
  • contrib
  • doc
  • etc
  • magnum
    • api
      • controllers
        • v1
        • base.py
        • link.py
        • root.py
      • middleware
        • auth_token.py
        • parsable_error.py
      • app.py
      • auth.py
      • config.py
      • hooks.py
    • cloud
      • nova_driver.py
    • cmd
      • api.py
      • conductor.py
      • db_manage.py
      • template_manage.py
    • common
      • pythonk8sclient
        • client
        • templates
        • README.rst
      • clients.py
      • config.py
      • context.py
      • docker_utils.py
      • exception.py
      • k8s_manifest.py
      • magnum_keystoneclient.py
      • paths.py
      • policy.py
      • rpc.py
      • rpc_service.py
      • safe_utils.py
      • service.py
      • short_id.py
      • urlfetch.py
      • utils.py
      • yamlutils.py
    • conductor
      • handlers
        • common
        • bay_conductor.py
        • conductor_listener.py
        • docker_conductor.py
        • kube.py
      • tasks
        • heat_tasks.py
        • init.py
      • api.py
      • bay_lock.py
      • config.py
      • template_definition.py
    • db
      • sqlalchemy
        • alembic
        • alembic.ini
        • api.py
        • migration.py
        • models.py
      • api.py
      • migration.py
    • locale
      • magnum-log-critical.pot
      • magnum-log-error.pot
      • magnum-log-info.pot
      • magnum-log-warning.pot
      • magnum.pot
    • objects
      • base.py
      • bay.py
      • baylock.py
      • baymodel.py
      • container.py
      • fields.py
      • node.py
      • pod.py
      • replicationcontroller.py
      • service.py
      • utils.py
      • init.py
    • openstack
      • common
        • _i18n.py
        • cliutils.py
        • eventlet_backdoor.py
        • local.py
        • loopingcall.py
        • periodic_task.py
        • service.py
        • systemd.py
        • threadgroup.py
        • utils.py
        • versionutils.py
    • public
      • css
        • style.css
    • templates
      • docker-swarm
        • fragments
        • COPYING
        • README.md
        • swarm.yaml
        • swarmnode.yaml
      • heat-kubernetes
        • elements
        • fragments
        • COPYING
        • kubecluster-coreos.yaml
        • kubecluster-fedora-ironic.yaml
        • kubecluster.yaml
        • kubeminion.yaml
        • kubenode-coreos.yaml
        • kubenode-fedora-ironic.yaml
        • README.md
    • tests
      • contrib
        • post_test_hook.sh
      • functional
        • test_magnum_python_client.py
        • test_templates.py
      • unit
        • api
        • common
        • conductor
        • db
        • objects
      • base.py
      • config.py
      • conf_fixture.py
      • fakes.py
      • utils.py
    • base.py
    • config.py
    • i18n.py
    • MANIFEST.in
    • opts.py
    • version.py
  • specs
  • tools
  • 架构
Powered by GitBook
On this page

Was this helpful?

  1. magnum

opts.py

主要定义 list_opts 方法,返回所有的选项。

def list_opts():
    return [
        ('DEFAULT',
         itertools.chain(magnum.api.auth.AUTH_OPTS,
                         magnum.common.magnum_keystoneclient.trust_opts,
                         magnum.common.paths.PATH_OPTS,
                         magnum.common.utils.UTILS_OPTS,
                         (magnum.openstack.common.eventlet_backdoor
                          .eventlet_backdoor_opts),
                         log.generic_log_opts,
                         log.log_opts,
                         log.common_cli_opts,
                         log.logging_cli_opts,
                         magnum.openstack.common.periodic_task.periodic_opts,
                         )),
        ('api', magnum.api.app.API_SERVICE_OPTS),
        ('bay', magnum.conductor.template_definition.template_def_opts),
        ('conductor', magnum.conductor.config.SERVICE_OPTS),
        ('database', magnum.db.sqlalchemy.models.sql_opts),
        ('docker', magnum.conductor.handlers.docker_conductor.docker_opts),
        ('heat_client', magnum.common.clients.heat_client_opts),
        ('bay_heat', magnum.conductor.handlers.bay_conductor.bay_heat_opts),
    ]
PreviousMANIFEST.inNextversion.py

Last updated 5 years ago

Was this helpful?