summaryrefslogtreecommitdiff
path: root/iotronic/db/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'iotronic/db/api.py')
-rw-r--r--iotronic/db/api.py54
1 files changed, 54 insertions, 0 deletions
diff --git a/iotronic/db/api.py b/iotronic/db/api.py
index 51c3e6a..82fafff 100644
--- a/iotronic/db/api.py
+++ b/iotronic/db/api.py
@@ -473,3 +473,57 @@ class Connection(object):
473 :raises: ServiceAssociated 473 :raises: ServiceAssociated
474 :raises: ServiceNotFound 474 :raises: ServiceNotFound
475 """ 475 """
476
477 @abc.abstractmethod
478 def get_exposed_service_by_board_uuid(self, board_uuid):
479 """get an exposed of a service using a board_uuid
480
481 :param board_uuid: The id or uuid of a board.
482 :returns: An exposed_service.
483
484 """
485
486 @abc.abstractmethod
487 def get_exposed_service_by_uuids(self, board_uuid, service_uuid):
488 """get an exposed of a service using a board_uuid and service_uuid
489
490 :param board_uuid: The id or uuid of a board.
491 :param service_uuid: The id or uuid of a service.
492 :returns: An exposed_service.
493
494 """
495
496 @abc.abstractmethod
497 def create_exposed_service(self, values):
498 """Create a new exposed_service.
499
500 :param values: A dict containing several items used to identify
501 and track the service
502 :returns: An exposed service.
503 """
504
505 @abc.abstractmethod
506 def destroy_exposed_service(self, exposed_service_id):
507 """Destroy an exposed service and all associated interfaces.
508
509 :param exposed_service_id: The id or uuid of a service.
510 """
511
512 @abc.abstractmethod
513 def update_exposed_service(self, service_exposed_id, values):
514 """Update properties of a service.
515
516 :param service_id: The id or uuid of a service.
517 :param values: Dict of values to update.
518 :returns: A service.
519 :raises: ServiceAssociated
520 :raises: ServiceNotFound
521 """
522
523 @abc.abstractmethod
524 def get_exposed_service_list(self, board_uuid):
525 """Return a list of exposed_services.
526
527 :param board_uuid: The id or uuid of a service.
528 :returns: A list of ExposedServices on the board.
529 """