The heat.engine.clients.os.swift ModuleΒΆ

class heat.engine.clients.os.swift.SwiftClientPlugin(context)[source]

Bases: heat.engine.clients.client_plugin.ClientPlugin

exceptions_module = <module 'swiftclient.exceptions' from '/usr/lib/python2.7/dist-packages/swiftclient/exceptions.pyc'>
get_signal_url(container_name, obj_name, timeout=None)[source]

Turn on object versioning so we can use a single TempURL for multiple signals and return a Swift TempURL.

get_temp_url(container_name, obj_name, timeout=None, method='PUT')[source]

Return a Swift TempURL.

is_client_exception(ex)[source]
is_conflict(ex)[source]
is_not_found(ex)[source]
is_over_limit(ex)[source]
is_valid_temp_url_path(path)[source]

Return True if path is a valid Swift TempURL path, False otherwise.

A Swift TempURL path must: - Be five parts, [‘’, ‘v1’, ‘account’, ‘container’, ‘object’] - Be a v1 request - Have account, container, and object values - Have an object value with more than just ‘/’s

Parameters:path (string) – The TempURL path
parse_last_modified(lm)[source]

Parses the last-modified value, such as from a swift object header, and returns the datetime.datetime of that value.

Parameters:lm (string) – The last-modified value (or None)
Returns:An offset-naive UTC datetime of the value (or None)

Previous topic

The heat.engine.clients.os.glance Module

Next topic

The heat.engine.clients.os.ceilometer Module

This Page