ClusterConfig#
- class geodesic.config.ClusterConfig(cfg)[source]#
ClusterConfig points the geodesic API at a configured Geodesic cluster.
- Parameters:
cfg (dict) – The configuration dictionary containing server information.
Methods
Returns the authorize url for this cluster
send_headers
(url)Given a url determine whether to send auth headers.
service_host
(service)Given a service (e.g. tesseract, spacetime, etc) returns the host configured for that service.
to_dict
()Converts this cluster config into a JSON exportable dictionary as would be listed in the "clusters" field of the config object.
Returns the token url for this cluster