~0x44/nova/bug838466

« back to all changes in this revision

Viewing changes to nova/db/api.py

Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
453
453
 
454
454
###################
455
455
 
 
456
def auth_destroy_token(context, token):
 
457
    """Destroy an auth token"""
 
458
    return IMPL.auth_destroy_token(context, token)
 
459
 
 
460
def auth_get_token(context, token_hash):
 
461
    """Retrieves a token given the hash representing it"""
 
462
    return IMPL.auth_get_token(context, token_hash)
 
463
 
 
464
def auth_create_token(context, token):
 
465
    """Creates a new token"""
 
466
    return IMPL.auth_create_token(context, token_hash, token)
 
467
 
 
468
 
 
469
###################
 
470
 
456
471
 
457
472
def quota_create(context, values):
458
473
    """Create a quota from the values dictionary."""