AnyEvent-Net-Amazon-S3
view release on metacpan or search on metacpan
lib/AnyEvent/Net/Amazon/S3.pm view on Meta::CPAN
# delete keys
$bucket->delete_key('reminder.txt') or die $s3->err . ": " . $s3->errstr;
$bucket->delete_key('1.JPG') or die $s3->err . ": " . $s3->errstr;
# and finally delete the bucket
$bucket->delete_bucket or die $s3->err . ": " . $s3->errstr;
=head1 DESCRIPTION
This module provides the same interface as L<Net::Amazon::S3>.
In addition, some asynchronous methods returning AnyEvent condition variable are added.
Note: This is the legacy interface, please check out
L<AnyEvent::Net::Amazon::S3::Client> instead.
=for test_synopsis no warnings;
=head1 METHODS
All L<Net::Amazon::S3> methods are available.
In addition, there are the following asynchronous methods.
Arguments of the methods are identical as original but return value becomes L<AnyEvent> condition variable.
You can get actual return value by calling C<shift-E<gt>recv()>.
=over 4
=item buckets_async
=item add_bucket_async
=item delete_bucket_async
lib/AnyEvent/Net/Amazon/S3/Bucket.pm view on Meta::CPAN
# delete the entire bucket (Amazon requires it first be empty)
$bucket->delete_bucket;
=head1 DESCRIPTION
This module represents an S3 bucket. You get a bucket object
from the L<AnyEvent::Net::Amazon::S3> object.
This module provides the same interface as L<Net::Amazon::S3::Bucket>.
In addition, some asynchronous methods returning AnyEvent condition variable are added.
=for test_synopsis no strict 'vars'
=head1 METHODS
All L<Net::Amazon::S3::Bucket> methods are available.
In addition, there are the following asynchronous methods.
Arguments of the methods are identical as original but return value becomes L<AnyEvent> condition variable.
You can get actual return value by calling C<shift-E<gt>recv()>.
=over 4
=item add_key_async
=item add_key_filename_async
=item copy_key_async
lib/AnyEvent/Net/Amazon/S3/Client.pm view on Meta::CPAN
location_constraint => 'US',
);
# or use an existing bucket
# returns a L<AnyEvent::Net::Amazon::S3::Client::Bucket> object
my $bucket = $client->bucket( name => $bucket_name );
=head1 DESCRIPTION
This module provides the same interface as L<Net::Amazon::S3::Client>.
In addition, some asynchronous methods returning AnyEvent condition variable are added.
WARNING: Original L<Net::Amazon::S3::Client> says that it is an early release of the Client classes, the APIs
may change.
=for test_synopsis no strict 'vars';
no warnings;
=head1 METHODS
All L<Net::Amazon::S3::Client> methods are available.
In addition, there are the following asynchronous methods.
Arguments of the methods are identical as original but return value becomes L<AnyEvent> condition variable.
You can get actual return value by calling C<shift-E<gt>recv()>.
=over 4
=item buckets_async
=item create_bucket_async
=back
lib/AnyEvent/Net/Amazon/S3/Client/Bucket.pm view on Meta::CPAN
my $object = $bucket->object( key => 'this is the key' );
# delete the bucket (it must be empty)
$bucket->delete;
=head1 DESCRIPTION
This module represents buckets.
This module provides the same interface as L<Net::Amazon::S3::Client::Bucket>.
In addition, some asynchronous methods returning AnyEvent condition variable are added.
=for test_synopsis no strict 'vars'
=head1 METHODS
All L<Net::Amazon::S3::Client::Bucket> methods are available.
In addition, there are the following asynchronous methods.
Arguments of the methods are identical as original but return value becomes L<AnyEvent> condition variable.
You can get actual return value by calling C<shift-E<gt>recv()>.
=over 4
=item acl_async
=item delete_async
=item list_async
lib/AnyEvent/Net/Amazon/S3/Client/Object.pm view on Meta::CPAN
key => 'images/my_hat.jpg',
expires => '2009-03-01',
);
my $uri = $object->query_string_authentication_uri();
=head1 DESCRIPTION
This module represents objects in buckets.
This module provides the same interface as L<Net::Amazon::S3::Client::Object>.
In addition, some asynchronous methods returning AnyEvent condition variable are added.
=for test_synopsis no strict 'vars';
no warnings;
=head1 METHODS
All L<Net::Amazon::S3::Client::Bucket> methods are available.
In addition, there are the following asynchronous methods.
Arguments of the methods are identical as original but return value becomes L<AnyEvent> condition variable.
You can get actual return value by calling C<shift-E<gt>recv()>.
=over 4
=item delete_async
=item exists_async
=item get_async
( run in 0.692 second using v1.01-cache-2.11-cpan-0d8aa00de5b )