class documentation
class SwiftConnector(object):
A Connector to swift that manage authentication and errors catching
Method | __init__ |
Initialize a SwiftConnector |
Method | create |
Create the Swift container |
Method | del |
Delete an object |
Method | del |
Delete the root container by removing container content |
Method | get |
Retrieve objects list in a container |
Method | get |
Retrieve an object |
Method | get |
Retrieve object stat |
Method | put |
Put an object |
Method | swift |
Undocumented |
Method | swift |
Undocumented |
Method | test |
Check that Swift container exist |
Instance Variable | auth |
Undocumented |
Instance Variable | auth |
Undocumented |
Instance Variable | base |
Undocumented |
Instance Variable | cache |
Undocumented |
Instance Variable | chunk |
Undocumented |
Instance Variable | concurrency |
Undocumented |
Instance Variable | conf |
Undocumented |
Instance Variable | endpoint |
Undocumented |
Instance Variable | http |
Undocumented |
Instance Variable | http |
Undocumented |
Instance Variable | httpclient |
Undocumented |
Instance Variable | password |
Undocumented |
Instance Variable | region |
Undocumented |
Instance Variable | root |
Undocumented |
Instance Variable | storage |
Undocumented |
Instance Variable | tenant |
Undocumented |
Instance Variable | token |
Undocumented |
Instance Variable | user |
Undocumented |
Initialize a SwiftConnector
Parameters | |
root | The swift container that will act as Git bare repository |
conf | A ConfigParser Object |
Retrieve objects list in a container
- Returns: A list of dict that describe objects
- or None if container does not exist
Retrieve an object
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 |
Retrieve object stat
Parameters | |
name | The object name |
Returns | |
A dict that describe the object or None if object does not exist |
Put an object
Parameters | |
name | The object name |
content | A file object |
Raises | |
SwiftException | if unable to create |