Statistics
| Branch: | Tag: | Revision:

root / src / pithos / backends / dummy.py @ c7e0bbe2

History | View | Annotate | Download (654 Bytes)

1 c7e0bbe2 Antony Chazapis
2 c7e0bbe2 Antony Chazapis
def create_container(name):
3 c7e0bbe2 Antony Chazapis
    return
4 c7e0bbe2 Antony Chazapis
5 c7e0bbe2 Antony Chazapis
def delete_container(name):
6 c7e0bbe2 Antony Chazapis
    return
7 c7e0bbe2 Antony Chazapis
8 c7e0bbe2 Antony Chazapis
def get_container_meta(name):
9 c7e0bbe2 Antony Chazapis
    return {'name': name, 'count': 0, 'bytes': 0}
10 c7e0bbe2 Antony Chazapis
11 c7e0bbe2 Antony Chazapis
def list_containers():
12 c7e0bbe2 Antony Chazapis
    return []
13 c7e0bbe2 Antony Chazapis
14 c7e0bbe2 Antony Chazapis
def list_objects(container, prefix='', delimiter='/'):
15 c7e0bbe2 Antony Chazapis
    return []
16 c7e0bbe2 Antony Chazapis
17 c7e0bbe2 Antony Chazapis
def get_object_meta(container, name):
18 c7e0bbe2 Antony Chazapis
    return {'name': name, 'hash': '', 'bytes': 0}
19 c7e0bbe2 Antony Chazapis
20 c7e0bbe2 Antony Chazapis
def get_object_data(container, name, offset=0, length=0):
21 c7e0bbe2 Antony Chazapis
    return ''
22 c7e0bbe2 Antony Chazapis
23 c7e0bbe2 Antony Chazapis
def update_object(container, name, meta, data):
24 c7e0bbe2 Antony Chazapis
    return
25 c7e0bbe2 Antony Chazapis
26 c7e0bbe2 Antony Chazapis
def update_object_meta(container, name, meta):
27 c7e0bbe2 Antony Chazapis
    return
28 c7e0bbe2 Antony Chazapis
29 c7e0bbe2 Antony Chazapis
def copy_object(container, name, new_name):
30 c7e0bbe2 Antony Chazapis
    return
31 c7e0bbe2 Antony Chazapis
32 c7e0bbe2 Antony Chazapis
def delete_object(container, name):
33 c7e0bbe2 Antony Chazapis
    return