keystoneclient.openstack.common package

Submodules

keystoneclient.openstack.common.memorycache module

Super simple fake memcache client.

class keystoneclient.openstack.common.memorycache.Client(*args, **kwargs)

Bases: object

Replicates a tiny subset of memcached client interface.

add(key, value, time=0, min_compress_len=0)

Sets the value for a key if it doesn’t exist.

delete(key, time=0)

Deletes the value associated with a key.

get(key)

Retrieves the value for a key or None.

This expunges expired keys during each get.

incr(key, delta=1)

Increments the value for a key.

set(key, value, time=0, min_compress_len=0)

Sets the value for a key.

keystoneclient.openstack.common.memorycache.get_client(memcached_servers=None)

keystoneclient.openstack.common.uuidutils module

UUID related utilities and helper functions.

keystoneclient.openstack.common.uuidutils.generate_uuid()
keystoneclient.openstack.common.uuidutils.is_uuid_like(val)

Returns validation of a value as a UUID.

For our purposes, a UUID is a canonical form string: aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa

Module contents