Module AWS::S3::DataOptions
In: lib/aws/s3/data_options.rb

Used by S3#S3Object and S3::Client to accept options with data that should be uploaded (streamed). @api private

Methods

Classes and Modules

Class AWS::S3::DataOptions::IOProxy

Protected Instance methods

@return [Hash] Returns a hash of options with a :data option that

  responds to #read and #eof?.

Converts an argument list into a single hash of options. Treats non-hash arguments in the first position as a data option.

Converts the :data option to an IO-like object. This allows us to always perform streaming uploads.

@return [Boolean] Returns `true` if the object responds to

  `#read` and `#eof?`.

@param [String] path Path to a file on disk. @return [File] Given a path string, returns an open File.

Moves options[:file] to options[:data]. If this option is a string then it is treated as a file path and is converted to an open file.

Attempts to determine the content length of the :data option. This is only done when a content length is not already provided.

[Validate]