class Fog::Storage::Aliyun::Mock
Public Class Methods
new(options={})
click to toggle source
# File lib/fog/aliyun/storage.rb, line 187 def initialize(options={}) @aliyun_oss_endpoint = options[:aliyun_oss_endpoint] @aliyun_oss_location = options[:aliyun_oss_location] @aliyun_accesskey_id = options[:aliyun_accesskey_id] @aliyun_accesskey_secret = options[:aliyun_accesskey_secret] @aliyun_oss_bucket = options[:aliyun_oss_bucket] #missing_credentials = Array.new #missing_credentials << :aliyun_oss_endpoint unless @aliyun_oss_endpoint #missing_credentials << :aliyun_oss_location unless @aliyun_oss_location #missing_credentials << :aliyun_accesskey_id unless @aliyun_accesskey_id #missing_credentials << :aliyun_accesskey_secret unless @aliyun_accesskey_secret #raise ArgumentError, "Missing required arguments: #{missing_credentials.join(', ')}" unless missing_credentials.empty? @connection_options = options[:connection_options] || {} #uri = URI.parse(@aliyun_oss_endpoint) #@host = uri.host #@path = uri.path #@port = uri.port #@scheme = uri.scheme #@persistent = options[:persistent] || false end
Public Instance Methods
copy_object(source_bucket, source_object, target_bucket, target_object)
click to toggle source
# File lib/fog/aliyun/requests/storage/copy_object.rb, line 36 def copy_object(source_bucket, source_object, target_bucket, target_object) end
delete_bucket(bucket)
click to toggle source
# File lib/fog/aliyun/requests/storage/delete_bucket.rb, line 25 def delete_bucket(bucket) end
delete_container(container, options={})
click to toggle source
# File lib/fog/aliyun/requests/storage/delete_container.rb, line 32 def delete_container(container, options={}) end
delete_object(object, options={})
click to toggle source
# File lib/fog/aliyun/requests/storage/delete_object.rb, line 48 def delete_object(object, options={}) end
get_bucket(bucket)
click to toggle source
# File lib/fog/aliyun/requests/storage/get_bucket.rb, line 143 def get_bucket(bucket) end
get_container(container, options = {})
click to toggle source
# File lib/fog/aliyun/requests/storage/get_container.rb, line 67 def get_container(container, options = {}) end
get_containers(options = {})
click to toggle source
# File lib/fog/aliyun/requests/storage/get_containers.rb, line 71 def get_containers(options = {}) end
get_object(object, range = nil, options = {})
click to toggle source
# File lib/fog/aliyun/requests/storage/get_object.rb, line 40 def get_object(object, range = nil, options = {}) end
get_object_http_url_public(object, expires, options = {})
click to toggle source
# File lib/fog/aliyun/requests/storage/get_object_http_url.rb, line 38 def get_object_http_url_public(object, expires, options = {}) end
get_object_https_url_public(object, expires, options = {})
click to toggle source
# File lib/fog/aliyun/requests/storage/get_object_https_url.rb, line 38 def get_object_https_url_public(object, expires, options = {}) end
head_object(object, options={})
click to toggle source
# File lib/fog/aliyun/requests/storage/head_object.rb, line 29 def head_object(object, options={}) end
list_buckets(options={})
click to toggle source
# File lib/fog/aliyun/requests/storage/list_buckets.rb, line 42 def list_buckets(options={}) end
list_objects(options={})
click to toggle source
# File lib/fog/aliyun/requests/storage/list_objects.rb, line 99 def list_objects(options={}) end
put_bucket(bucketName)
click to toggle source
# File lib/fog/aliyun/requests/storage/put_bucket.rb, line 17 def put_bucket(bucketName) end
put_container(name, options={})
click to toggle source
# File lib/fog/aliyun/requests/storage/put_container.rb, line 30 def put_container(name, options={}) end
put_object(object, file=nil, options={})
click to toggle source
# File lib/fog/aliyun/requests/storage/put_object.rb, line 194 def put_object(object, file=nil, options={}) end