dulwich.contrib.swift.SwiftConnector(object)
class documentationdulwich.contrib.swift
(View In Hierarchy)
Method | __init__ | Initialize a SwiftConnector |
Method | swift_auth_v1 | Undocumented |
Method | swift_auth_v2 | Undocumented |
Method | test_root_exists | Check that Swift container exist |
Method | create_root | Create the Swift container |
Method | get_container_objects | Retrieve objects list in a container |
Method | get_object_stat | Retrieve object stat |
Method | put_object | Put an object |
Method | get_object | Retrieve an object |
Method | del_object | Delete an object |
Method | del_root | Delete the root container by removing container content |
Parameters | root | The swift container that will act as Git bare repository |
conf | A ConfigParser Object |
Returns | A list of dict that describe objects or None if container does not exist |
Parameters | name | The object name |
Returns | A dict that describe the object or None if object does not exist |
Parameters | name | The object name |
content | A file object | |
Raises | SwiftException if unable to create |
Parameters | name | The object name |
range | A string range like "0-10" to retrieve specified bytes in object content | |
Returns | A file like instance or bytestring if range is specified |
Parameters | name | The object name |
Raises | SwiftException if unable to delete |
Raises | SwiftException if unable to delete |