コード例 #1
0
ファイル: service.py プロジェクト: xty19/keystone
def admin_app_factory(global_conf, **local_conf):
    controllers.register_version('v2.0')
    return wsgi.ComposingRouter(
        routes.Mapper(),
        [admin_crud.Router(),
         routers.VersionV2('admin'),
         routers.Extension()])
コード例 #2
0
ファイル: service.py プロジェクト: xty19/keystone
def public_app_factory(global_conf, **local_conf):
    controllers.register_version('v2.0')
    return wsgi.ComposingRouter(routes.Mapper(), [
        assignment_routers.Public(),
        routers.VersionV2('public'),
        routers.Extension(False)
    ])
コード例 #3
0
ファイル: service.py プロジェクト: zhanghaijie01/keystone
def admin_app_factory(global_conf, **local_conf):
    controllers.register_version('v2.0')
    # NOTE(lbragstad): Only wire up the v2.0 version controller. We should keep
    # this here because we still support the ec2tokens API on the v2.0 path
    # until T. Once that is removed, we can remove the rest of the v2.0 routers
    # and whatnot. The ec2token controller is actually wired up by the paste
    # pipeline.
    return wsgi.ComposingRouter(routes.Mapper(), [routers.VersionV2('admin')])
コード例 #4
0
ファイル: service.py プロジェクト: craftlk/keystone
def admin_app_factory(global_conf, **local_conf):
    controllers.register_version('v2.0')
    return wsgi.ComposingRouter(routes.Mapper(),
                                [identity.routers.Admin(),
                                 assignment.routers.Admin(),
                                 token.routers.Router(),
                                 resource.routers.Admin(),
                                 routers.VersionV2('admin'),
                                 routers.Extension()])