l.c.o.OpenStackAuthConnection(ConnectionUserAndKey) : class documentation

Part of libcloud.common.openstack View Source View In Hierarchy

No class docstring
Method __init__ Initialize `user_id` and `key`; set `secure` to an C{int} based on passed value.
Method morph_action_hook Undocumented
Method add_default_headers Adds default headers (such as Authorization, X-Foo-Bar) to the passed `headers`
Method authenticate Authenticate against the keystone api.
Method authenticate_1_0 Undocumented
Method authenticate_1_1 Undocumented
Method authenticate_2_0_with_apikey Undocumented
Method authenticate_2_0_with_password Undocumented
Method authenticate_2_0_with_body Undocumented
Method _is_token_valid Return True if the current taken is already cached and hasn't expired yet.

Inherited from Connection (via ConnectionUserAndKey, ConnectionKey):

Method set_context Undocumented
Method connect Establish a connection with the API server.
Method user_agent_append Append a token to a user agent string.
Method request Request a given `action`.
Method add_default_params Adds default parameters (such as API key, version, etc.) to the passed `params`
Method pre_connect_hook A hook which is called before connecting to the remote server. This hook can perform a final manipulation on the params, headers and url parameters.
Method encode_data Encode body data.
Method _tuple_from_url Undocumented
Method _user_agent Undocumented
def __init__(self, parent_conn, auth_url, auth_version, user_id, key, tenant_name=None, timeout=None): (source)
Initialize `user_id` and `key`; set `secure` to an C{int} based on
passed value.
def morph_action_hook(self, action): (source)
Undocumented
def add_default_headers(self, headers): (source)
Adds default headers (such as Authorization, X-Foo-Bar)
to the passed `headers`

Should return a dictionary.
def authenticate(self, force=False): (source)
Authenticate against the keystone api.

@param force: Forcefully update the token even if it's already cached
              and still valid.
@type force: C{bool}
def authenticate_1_0(self): (source)
Undocumented
def authenticate_1_1(self): (source)
Undocumented
def authenticate_2_0_with_apikey(self): (source)
Undocumented
def authenticate_2_0_with_password(self): (source)
Undocumented
def authenticate_2_0_with_body(self, reqbody): (source)
Undocumented
def _is_token_valid(self): (source)
Return True if the current taken is already cached and hasn't expired
yet.

@rtype: C{bool}
API Documentation for libcloud, generated by pydoctor at 2013-09-18 15:42:48.