Functions | Variables
rocon_gateway_utils::uuid Namespace Reference

Functions

def gateway_basename
def is_uuid_postfixed

Variables

tuple valid_uuid_pattern = re.compile("^[0-9a-f]{32}$")
 Methods.

Function Documentation

  Strips the 16 byte hash (in hex format) from a gateway name, leaving the base name.
  Note, 16 hex values represents 32 characters

  @param gateway_name : base_name + 16 byte hex formatted hash
  @type str
  @return base name without the hash
  @rtype str

Definition at line 34 of file uuid.py.

  A not very reliable way to check if the last 32 characters of a string
  are a uuid postfix. Not reliable because if the prefix characters are
  [0-9a-f] then it will accept shorter combinations of strings. Practical
  because who will give a gateway a uuid style name?

Definition at line 20 of file uuid.py.


Variable Documentation

tuple rocon_gateway_utils::uuid::valid_uuid_pattern = re.compile("^[0-9a-f]{32}$")

Methods.

Definition at line 17 of file uuid.py.



rocon_gateway_utils
Author(s): Daniel Stonier
autogenerated on Sat Jun 8 2019 18:48:41