Merge "Use stevedore directive to document plugins."

This commit is contained in:
Jenkins 2015-08-30 02:55:14 +00:00 committed by Gerrit Code Review
commit be8d6a7dba
8 changed files with 105 additions and 0 deletions

View File

@ -0,0 +1,21 @@
..
Copyright 2015 OpenStack Foundation
All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
Glance Artifact Types
=====================
.. list-plugins:: glance.artifacts.types
:detailed:

View File

@ -47,6 +47,7 @@ extensions = ['sphinx.ext.coverage',
'sphinx.ext.pngmath', 'sphinx.ext.pngmath',
'sphinx.ext.graphviz', 'sphinx.ext.graphviz',
'oslosphinx', 'oslosphinx',
'stevedore.sphinxext',
] ]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.

View File

@ -188,3 +188,19 @@ of an *Image* object.
:alt: Glance images DB schema :alt: Glance images DB schema
.. centered:: Image 1. Glance images DB schema .. centered:: Image 1. Glance images DB schema
Glance Database Backends
~~~~~~~~~~~~~~~~~~~~~~~~
Migration Backends
------------------
.. list-plugins:: glance.database.migration_backend
:detailed:
Metadata Backends
-----------------
.. list-plugins:: glance.database.metadata_backend
:detailed:

30
doc/source/flows.rst Normal file
View File

@ -0,0 +1,30 @@
..
Copyright 2015 OpenStack Foundation
All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
Glance Flow Plugins
===================
Flows
-----
.. list-plugins:: glance.flows
:detailed:
Import Flows
------------
.. list-plugins:: glance.flows.import
:detailed:

View File

@ -0,0 +1,21 @@
..
Copyright 2015 OpenStack Foundation
All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
Image Location Strategy Modules
===============================
.. list-plugins:: glance.common.image_location_strategy.modules
:detailed:

View File

@ -68,6 +68,9 @@ Installing/Configuring Glance
configuring configuring
authentication authentication
policies policies
image-location-strategy-modules
artifact-types
flows
Operating Glance Operating Glance
================ ================

View File

@ -100,6 +100,12 @@ class _Convert(task.Task):
def get_flow(**kwargs): def get_flow(**kwargs):
"""Return task flow for converting images to different formats.
:param task_id: Task ID.
:param task_type: Type of the task.
:param image_repo: Image repository used.
"""
task_id = kwargs.get('task_id') task_id = kwargs.get('task_id')
task_type = kwargs.get('task_type') task_type = kwargs.get('task_type')
image_repo = kwargs.get('image_repo') image_repo = kwargs.get('image_repo')

View File

@ -76,6 +76,13 @@ class _Introspect(utils.OptionalTask):
def get_flow(**kwargs): def get_flow(**kwargs):
"""Return task flow for introspecting images to obtain metadata about the
image.
:param task_id: Task ID
:param task_type: Type of the task.
:param image_repo: Image repository used.
"""
task_id = kwargs.get('task_id') task_id = kwargs.get('task_id')
task_type = kwargs.get('task_type') task_type = kwargs.get('task_type')
image_repo = kwargs.get('image_repo') image_repo = kwargs.get('image_repo')