CV-Library Ltd.
and 1 contributors

NAME

WebService::S3::Tiny - Perl module for using S3 or compatible APIs

SYNOPSIS

 use WebDriver::S3::Tiny;

 my $s3 = WebDriver::S3::Tiny->new(
     access_key => 'foo',
     host       => 'http://localhost:1337',
     secret_key => 'bar',
 );

METHODS

new

 WebDriver::S3::Tiny->new(
     access_key => ..., # required
     host       => ..., # required
     region     => ..., # optional, defaults to "us-east-1"
     secret_key => ..., # required
     service    => ..., # optional, defaults to "s3"
     ua         => ..., # optional, defaults to HTTP::Tiny->new
 );

delete_bucket

 $s3->delete_bucket($bucket);
 $s3->delete_bucket($bucket, \%headers);

get_bucket

 $s3->get_bucket($bucket);
 $s3->get_bucket($bucket, \%headers);
 $s3->get_bucket($bucket, \%headers, \%parameters);

head_bucket

 $s3->head_bucket($bucket);
 $s3->head_bucket($bucket, \%headers);

put_bucket

 $s3->put_bucket($bucket);
 $s3->put_bucket($bucket, \%headers);

delete_object

 $s3->delete_object($bucket, $object);
 $s3->delete_object($bucket, $object, \%headers);

get_object

 $s3->get_object($bucket, $object);
 $s3->get_object($bucket, $object, \%headers);
 $s3->get_object($bucket, $object, \%headers, \%parameters);

head_object

 $s3->head_object($bucket, $object);
 $s3->head_object($bucket, $object, \%headers);

put_object

 $s3->put_object($bucket, $object, $content);
 $s3->put_object($bucket, $object, $content, \%headers);

 # Set foo/bar to "qux"
 $s3->put_object('foo', 'bar', 'qux');

 # Copy foo/bar to foo/baz
 $3->put_object('foo', 'baz', undef, { 'x-amz-copy-source' => 'foo/bar' });

request

 $s3->request($method, $bucket, $object, $content, \%headers, \%parameters);

COPYRIGHT AND LICENSE

Copyright © 2018 CV-Library Ltd.

This is free software; you can redistribute it and/or modify it under the same terms as Perl itself.