module S3::Client::Storage

Public Instance Methods

buckets() click to toggle source
# File lib/s3/client/storage.rb, line 6
def buckets
  S3::BucketCollection.new(@api)
end
create_bucket(bucket) click to toggle source
# File lib/s3/client/storage.rb, line 14
def create_bucket(bucket)
  @api.create_bucket(bucket)

  S3::Bucket.new(@api, bucket)
end
delete_bucket(bucket) click to toggle source
# File lib/s3/client/storage.rb, line 20
def delete_bucket(bucket)
  @api.delete_bucket(bucket)

  nil
end
delete_object(bucket, object) click to toggle source
# File lib/s3/client/storage.rb, line 26
def delete_object(bucket, object)
  @api.delete_object(bucket, object)

  nil
end
import(db_name, table, file_path, options = {}) click to toggle source

options ==

  • label - label

  • jobs - count of executing pararell

# File lib/s3/client/storage.rb, line 36
def import(db_name, table, file_path, options = {})
  @api.import(db_name, table, file_path, options)

  nil
end
objects(bucket) click to toggle source
# File lib/s3/client/storage.rb, line 10
def objects(bucket)
  S3::ObjectCollection.new(@api, bucket)
end