GOto

class clacks.agent.plugins.goto.client_service.ClientService

Plugin to register clients and expose their functionality to the users.

Keys for configuration section goto

Key Format Description
machine-rdn String RDN to initially place new machines in.
timeout Integer Client ping interval.
clientDispatch(client, method, *arg, **larg)

Note

This method will be exported by the CommandRegistry.

Dispatch a method on the client.

Parameter Description
client Device UUID of the client
method Method name to call
Method arguments

Return: varies

getClientMethods(client)

Note

This method will be exported by the CommandRegistry.

Get list of available client methods and their signature.

Return: dict of client methods

getClientNetInfo(client)

Note

This method will be exported by the CommandRegistry.

Get brief information about the client network setup.

Example:

>>> getClientNetInfo("eb5e72d4-c53f-4612-81a3-602b14a8da69")
{'eth0': {
'Broadcast': '10.89.1.255',
'MAC': '00:01:6c:9d:b9:fa',
'IPAddress': '10.89.1.31',
'Netmask': '255.255.255.0',
'IPv6Address': 'fe80::201:6cff:fe9d:b9fa/64'}}

Return: dict with network information

getClients()

Note

This method will be exported by the CommandRegistry.

List available domain clients.

Return: dict with name and timestamp informatio, indexed by UUID

getUserClients(user)

Note

This method will be exported by the CommandRegistry.

TODO

getUserSessions(client=None)

Note

This method will be exported by the CommandRegistry.

TODO

joinClient(user, device_uuid, mac, info=None)

Note

This method will be exported by the CommandRegistry.

TODO

notifyUser(users, title, message, timeout=10, level='normal', icon='dialog-information')

Note

This method will be exported by the CommandRegistry.

Send a notification request to the user client.

systemGetStatus(device_uuid)

Note

This method will be exported by the CommandRegistry.

TODO

systemSetStatus(device_uuid, status)

Note

This method will be exported by the CommandRegistry.

TODO


class clacks.agent.plugins.goto.network.NetworkUtils

Module containing network utilities like DNS/MAC resolving and manufacturer resolving.

getMacManufacturer(mac)

Note

This method will be exported by the CommandRegistry.

This function uses the ieee file provided at http://standards.ieee.org/regauth/oui/oui.txt

TODO

networkCompletion(name)

Note

This method will be exported by the CommandRegistry.

TODO