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

authorize_url()

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, returns the host configured for that service.

to_dict()

Converts this cluster config into a JSON exportable dictionary.

token_url()

Returns the token url for this cluster.