The heat.engine.clients.os.swift Module

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

Bases: heat.engine.clients.client_plugin.ClientPlugin

OBJECT_STORE = 'object-store'
exceptions_module = <module 'swiftclient.exceptions' from '/home/jenkins/workspace/heat-docs-ubuntu-trusty/.tox/venv/local/lib/python2.7/site-packages/swiftclient/exceptions.pyc'>
get_signal_url(container_name, obj_name, timeout=None)[source]

Turn on object versioning.

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.

For example, last-modified values from a swift object header. 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)
service_types = ['object-store']

Previous topic

The heat.engine.clients.os.senlin Module

Next topic

The heat.engine.clients.os.trove Module

Project Source

This Page