l.s.d.n.NimbusStorageDriver(StorageDriver) : class documentation

Part of libcloud.storage.drivers.nimbus View Source View In Hierarchy

Undocumented
Method __init__ @param key: API key or username to used (required) @type key: C{str}
Method list_containers Return a list of containers.
Method create_container Create a new container.
Method _to_containers Undocumented
Method _to_container Undocumented
Method _ex_connection_class_kwargs Return extra connection keyword arguments which are passed to the Connection class constructor.

Inherited from StorageDriver:

Method list_container_objects Return a list of objects for the given container.
Method get_container Return a container instance.
Method get_container_cdn_url Return a container CDN URL.
Method get_object Return an object instance.
Method get_object_cdn_url Return a object CDN URL.
Method enable_container_cdn Enable container CDN.
Method enable_object_cdn Enable object CDN.
Method download_object Download an object to the specified destination path.
Method download_object_as_stream Return a generator which yields object data.
Method upload_object Upload an object currently located on a disk.
Method upload_object_via_stream Upload an object using an iterator.
Method delete_object Delete an object.
Method delete_container Delete a container.
Method _get_object Call passed callback and start transfer of the object'
Method _save_object Save object to the provided path.
Method _upload_object Helper function for setting common request headers and calling the passed in callback which uploads an object.
Method _upload_data Upload data stored in a string.
Method _stream_data Stream a data over an http connection.
Method _upload_file Upload a file to the server.
Method _get_hash_function Return instantiated hash function for the hash type supported by the provider.
def __init__(self, *args, **kwargs): (source)
@param    key:    API key or username to used (required)
@type     key:    C{str}

@param    secret: Secret password to be used (required)
@type     secret: C{str}

@param    secure: Weither to use HTTPS or HTTP. Note: Some providers
                    only support HTTPS, and it is on by default.
@type     secure: C{bool}

@param    host: Override hostname used for connections.
@type     host: C{str}

@param    port: Override port used for connections.
@type     port: C{int}

@param    api_version: Optional API version. Only used by drivers
                         which support multiple API versions.
@type     api_version: C{str}

@rtype: C{None}
def list_containers(self): (source)
Return a list of containers.

@return: A list of Container instances.
@rtype: C{list} of L{Container}
def create_container(self, container_name): (source)
Create a new container.

@type container_name: C{str}
@param container_name: Container name.

@return: C{Container} instance on success.
@rtype: L{Container}
def _to_containers(self, data): (source)
Undocumented
def _to_container(self, data): (source)
Undocumented
def _ex_connection_class_kwargs(self): (source)
Return extra connection keyword arguments which are passed to the
Connection class constructor.
API Documentation for libcloud, generated by pydoctor at 2012-11-19 12:09:27.