summaryrefslogtreecommitdiffstats
path: root/hpa/hpa/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'hpa/hpa/base.py')
-rw-r--r--hpa/hpa/base.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/hpa/hpa/base.py b/hpa/hpa/base.py
new file mode 100644
index 00000000..90eb6432
--- /dev/null
+++ b/hpa/hpa/base.py
@@ -0,0 +1,22 @@
+import abc
+
+import six
+
+
+@six.add_metaclass(abc.ABCMeta)
+class HPA_DiscoveryBase(object):
+ """Base class for example plugin used in the tutorial.
+ """
+
+ def __init__(self):
+ """do nothing"""
+
+ @abc.abstractmethod
+ def get_hpa_capabilities(self, data):
+ """Get cpupinning capabilities.
+
+ :param data: A dictionary with string keys and simple types as
+ values.
+ :type data: dict(str:?)
+ :returns: Iterable producing the formatted text.
+ """