freezer.storage.swift module

freezer.storage.swift module

class freezer.storage.swift.SwiftStorage(client_manager, container, max_segment_size, skip_prepare=False)

Bases: freezer.storage.physical.PhysicalStorage

add_stream(stream, package_name, headers=None)
backup_blocks(backup)
Parameters:backup (freezer.storage.base.Backup) –
Returns:
create_dirs(folder_list)
get_file(from_path, to_path)
info()
listdir(path)
Parameters:path (str) –
Return type:collections.Iterable[str]
prepare()

Check if the provided container is already available on Swift. The verification is done by exact matching between the provided container name and the whole list of container available for the swift account.

put_file(from_path, to_path)
Parameters:
  • from_path (str) –
  • to_path (str) –
rmtree(path)
swift()
Return type:swiftclient.Connection
Returns:
upload_chunk(content, path)
upload_manifest(backup)

Upload Manifest to manage segments in Swift

Parameters:backup (freezer.storage.base.Backup) – Backup
write_backup(rich_queue, backup)

Upload object on the remote swift server :type rich_queue: freezer.streaming.RichQueue :type backup: freezer.storage.base.Backup

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.