alpine-zdt-images/alpine-cloud-images/clouds/interfaces/adapter.py
Stefan Reimer 9ccfc0cdaa Add 'alpine-cloud-images/' from commit '99474a8a6ab7a22e90f5f73d7cfb706cab51ace0'
git-subtree-dir: alpine-cloud-images
git-subtree-mainline: 043116c92a
git-subtree-split: 99474a8a6a
2022-03-11 18:31:44 +01:00

41 lines
935 B
Python

# vim: ts=4 et:
class CloudAdapterInterface:
def __init__(self, cloud, cred_provider=None):
self._sdk = None
self._sessions = {}
self.cloud = cloud
self.cred_provider = cred_provider
self._default_region = None
@property
def sdk(self):
raise NotImplementedError
@property
def regions(self):
raise NotImplementedError
@property
def default_region(self):
raise NotImplementedError
def credentials(self, region=None):
raise NotImplementedError
def session(self, region=None):
raise NotImplementedError
def latest_build_image(self, project, image_key):
raise NotImplementedError
def import_image(self, config):
raise NotImplementedError
def remove_image(self, config, image_id):
raise NotImplementedError
def publish_image(self, config):
raise NotImplementedError