Ptolemy v0.2.0 Ptolemy.Server View Source
Ptolemy.Server
is responsible for the management of a remote backend's server's data.
Data that Ptolemy.Server
manages includes but not limited to:
- Authentication Data to a remote vault server and its lifecycle
- IAP authentication and its lifecyle
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor
Dumps entire state within a specified server
Fetches access tokens needed to authenticate against a remote vault server
Get a specific key within a ptolemy state
Set a key within a specified server's state
Start a genserver pointing to a remote server
Link to this section Functions
child_spec(init_arg) View Source
Returns a specification to start this module under a supervisor.
See Supervisor
.
dump(server_name) View Source
Dumps entire state within a specified server.
fetch_credentials(server_name) View Source
Fetches access tokens needed to authenticate against a remote vault server.
Returns a list of tuple(s) containing the access tokens. If IAP is enabled its corresponding bearer
token
will also be returned as part of this list.
get_data(server_name, key) View Source
Get a specific key within a ptolemy state.
set_data(server_name, key, payload) View Source
Set a key within a specified server's state.
start_link(server_name, server_conf_name, opts \\ []) View Source
Start a genserver pointing to a remote server.
When starting you may provide runtime configuration to Ptolemy by specifying a keyword list with the overiding values.