2019-12-03 20:27:13 +00:00
|
|
|
from servicebase import ServiceBase
|
|
|
|
|
|
|
|
class ServiceDelegate(ServiceBase) :
|
2019-12-04 19:00:50 +00:00
|
|
|
def get_arguments(cls) :
|
2019-12-03 20:27:13 +00:00
|
|
|
"""Returns an array of information used to construct an argumentparser argument."""
|
|
|
|
# [ <short flag>,<unix flag>,<arg type>,<description> ]
|
|
|
|
# Example return: [ '-n', '--net', 'store_true', "Return network information about the subject" ]
|
|
|
|
return ['-r', '--vpn','store_true',"Return VPN information about the subject"]
|
|
|
|
|
|
|
|
def get_user_from_ip(ip) :
|
|
|
|
"""Given an IP address, return the user who was last assigned the address."""
|
|
|
|
pass
|
|
|
|
def get_user_login_time_from_ip(ip) :
|
|
|
|
"""Given an IP address, return the time of the last assignment of the address"""
|
|
|
|
pass
|