summaryrefslogtreecommitdiff
path: root/glance/contrib/plugins/image_artifact/v2/__init__.py
diff options
context:
space:
mode:
authorInessa Vasilevskaya <ivasilevskaya@mirantis.com>2014-11-13 21:07:15 +0400
committerMike Fedosin <mfedosin@mirantis.com>2015-03-30 20:51:10 +0300
commit8e4b2dad0b71f060b6b0c5114cb76283c4ee367e (patch)
tree8ec3099baefefaf7679f059213b77b8171065450 /glance/contrib/plugins/image_artifact/v2/__init__.py
parentb66f3904c8ddf0c3c68b05c14b16298ec5c7fec4 (diff)
downloadglance-8e4b2dad0b71f060b6b0c5114cb76283c4ee367e.tar.gz
Artifact Plugins Loader
Adds a Stevedore-based plugin loader which is capable to load custom Artifact Types implemented as classes or lists of classes. The Loader validates if entry-points' names match the type names of the ArtifactTypes, ensures that no version conflicts occur (i.e. there are no Artifact Types which have identical combination of Type Name and Type Version), maintains the mapping of Type Names to the actual classes and also keeps an index of Artifact Types by their endpoint aliases. Modifies the Serialization utility of Declarative framework to use the actual set of plugins instead of synthetic type dictionary. Adds several example plugins to glance/contrib directory. Implements-blueprint: artifact-repository Co-Authored-By: Inessa Vasilevskaya <ivasilevskaya@mirantis.com> Co-Authored-By: Alexander Tivelkov <ativelkov@mirantis.com> Change-Id: I5ff5d4c257a1c42885068f4343f52e55189265a5
Diffstat (limited to 'glance/contrib/plugins/image_artifact/v2/__init__.py')
-rw-r--r--glance/contrib/plugins/image_artifact/v2/__init__.py0
1 files changed, 0 insertions, 0 deletions
diff --git a/glance/contrib/plugins/image_artifact/v2/__init__.py b/glance/contrib/plugins/image_artifact/v2/__init__.py
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/glance/contrib/plugins/image_artifact/v2/__init__.py