class Ropenstack::ObjectStorage
-
Name:
ObjectStorage
-
Description: Implementation of the Block Storage API Client in Ruby.
-
Author: Sam ‘Tehsmash’ Betts
-
Date: 01/15/2013
Public Instance Methods
account(id, head)
click to toggle source
Accounts
# File lib/ropenstack/objectStorage.rb, line 10 def account(id, head) if head get_request(address(id), @token) else head_request(address(id), @token) end end
container(account, container, head)
click to toggle source
Containers
# File lib/ropenstack/objectStorage.rb, line 22 def container(account, container, head) if head get_request(address(account + "/" + container), @token) else head_request(address(account + "/" + container), @token) end end
copy_object(account, container, object)
click to toggle source
# File lib/ropenstack/objectStorage.rb, line 51 def copy_object(account, container, object) end
create_account()
click to toggle source
# File lib/ropenstack/objectStorage.rb, line 18 def create_account() end
create_container(account, container)
click to toggle source
# File lib/ropenstack/objectStorage.rb, line 30 def create_container(account, container) end
create_object(account, container, object)
click to toggle source
# File lib/ropenstack/objectStorage.rb, line 48 def create_object(account, container, object) end
create_object_metadata(account, container, object)
click to toggle source
# File lib/ropenstack/objectStorage.rb, line 57 def create_object_metadata(account, container, object) end
delete_container(account, container)
click to toggle source
# File lib/ropenstack/objectStorage.rb, line 33 def delete_container(account, container) end
delete_object(account, container, object)
click to toggle source
# File lib/ropenstack/objectStorage.rb, line 54 def delete_object(account, container, object) end
object(account, container, object)
click to toggle source
Objects
# File lib/ropenstack/objectStorage.rb, line 40 def object(account, container, object) get_request(address(account + "/" + container + "/" + object), @token) end
object_metadata(account, container, object)
click to toggle source
# File lib/ropenstack/objectStorage.rb, line 44 def object_metadata(account, container, object) head_request(address(account + "/" + container + "/" + object), @token) end
update_container(account, container)
click to toggle source
# File lib/ropenstack/objectStorage.rb, line 36 def update_container(account, container) end