Skip to content

Commit

Permalink
Merge pull request #13 from shreyashmehrotra20/master
Browse files Browse the repository at this point in the history
added two new static method
  • Loading branch information
MosesSymeonidis authored Jan 30, 2024
2 parents abe516f + c20af12 commit 06754d7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions connectors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,21 @@ def get_local_containers_infos(self):
@staticmethod
def get_service_from_name(name):
raise NotImplementedError

@staticmethod
def get_service_from_name(name):
"""
Returns the service object based on the service name
:param name: The name of the service
:return: The service object
"""
raise NotImplementedError

@staticmethod
def get_node_from_ip(ip_address):
"""
Returns the node object based on the IP address
:param ip_address: The IP address of the node
:return: The node object
"""
raise NotImplementedError

0 comments on commit 06754d7

Please sign in to comment.