Ejemplo n.º 1
0
def _discover_list(server_name, server_location, collection):
    client = RazorClient(server_location['hostname'], server_location['port'])
    item_getter = getattr(client, collection)
    items = item_getter()
    collection_key = make_key(server_name, collection)
    put_json_data(collection_key, items)
    return items
Ejemplo n.º 2
0
def _discover_list(server_name, server_location, collection):
    client = RazorClient(server_location['hostname'], server_location['port'])
    item_getter = getattr(client, collection)
    items = item_getter()
    collection_key = make_key(server_name, collection)
    put_json_data(collection_key, items)
    return items
Ejemplo n.º 3
0
def _put_collection_item(server_name, collection, item, value):
    key = make_key(server_name, collection, item)
    put_json_data(key, value)
Ejemplo n.º 4
0
def _put_collection_list(server_name, collection, value):
    key = make_key(server_name, collection)
    put_json_data(key, value)
Ejemplo n.º 5
0
def _put_collection_item(server_name, collection, item, value):
    key = make_key(server_name, collection, item)
    put_json_data(key, value)
Ejemplo n.º 6
0
def _put_collection_list(server_name, collection, value):
    key = make_key(server_name, collection)
    put_json_data(key, value)