summaryrefslogtreecommitdiffstats
path: root/hpa/hpa/base.py
blob: ce99c9705fad80c96ebb5cb7745cc10f1d0987c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""
base case for hpa discovery
"""
import abc

import six


@six.add_metaclass(abc.ABCMeta)
class HPADiscoveryBase:
    """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.
        """