diff --git a/doc/source/artifact-types.rst b/doc/source/artifact-types.rst new file mode 100644 index 0000000000..8806d227a3 --- /dev/null +++ b/doc/source/artifact-types.rst @@ -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: diff --git a/doc/source/conf.py b/doc/source/conf.py index c06e15ff20..f8b9e45850 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -47,6 +47,7 @@ extensions = ['sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.graphviz', 'oslosphinx', + 'stevedore.sphinxext', ] # Add any paths that contain templates here, relative to this directory. diff --git a/doc/source/database_architecture.rst b/doc/source/database_architecture.rst index 533c10464e..8b96f73a27 100644 --- a/doc/source/database_architecture.rst +++ b/doc/source/database_architecture.rst @@ -188,3 +188,19 @@ of an *Image* object. :alt: 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: diff --git a/doc/source/flows.rst b/doc/source/flows.rst new file mode 100644 index 0000000000..85f75c2378 --- /dev/null +++ b/doc/source/flows.rst @@ -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: diff --git a/doc/source/image-location-strategy-modules.rst b/doc/source/image-location-strategy-modules.rst new file mode 100644 index 0000000000..9725e67fd5 --- /dev/null +++ b/doc/source/image-location-strategy-modules.rst @@ -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: diff --git a/doc/source/index.rst b/doc/source/index.rst index 27abaacf21..ad2c5b12ec 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -68,6 +68,9 @@ Installing/Configuring Glance configuring authentication policies + image-location-strategy-modules + artifact-types + flows Operating Glance ================ diff --git a/glance/async/flows/convert.py b/glance/async/flows/convert.py index 3a16b0496b..a6bbdc3093 100644 --- a/glance/async/flows/convert.py +++ b/glance/async/flows/convert.py @@ -100,6 +100,12 @@ class _Convert(task.Task): 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_type = kwargs.get('task_type') image_repo = kwargs.get('image_repo') diff --git a/glance/async/flows/introspect.py b/glance/async/flows/introspect.py index 6cd2af360b..8784d4f302 100644 --- a/glance/async/flows/introspect.py +++ b/glance/async/flows/introspect.py @@ -76,6 +76,13 @@ class _Introspect(utils.OptionalTask): 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_type = kwargs.get('task_type') image_repo = kwargs.get('image_repo')