summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/platforms/base.py
blob: 28975368b0acb8a16bb2aa79a6094e02fde0d2e9 (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
26
27
# This file is part of cloud-init. See LICENSE file for license information.

"""Base platform class."""


class Platform(object):
    """Base class for platforms."""

    platform_name = None

    def __init__(self, config):
        """Set up platform."""
        self.config = config

    def get_image(self, img_conf):
        """Get image using specified image configuration.

        @param img_conf: configuration for image
        @return_value: cloud_tests.images instance
        """
        raise NotImplementedError

    def destroy(self):
        """Clean up platform data."""
        pass

# vi: ts=4 expandtab