| 1 | package Net::STF::Bucket; | ||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | use Class::Accessor::Lite | ||
| 4 | 1 | ▶ | new => 1, |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | rw => [ qw( | ||
| 6 | client | ||
| 7 | name | ||
| 8 | ) ] | ||
| 9 | 1 | ; | |
| 10 | |||
| 11 | 0 | ▶ | sub delete { |
|
Subroutine
delete: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 12 | 0 | my ($self, $recursive) = @_; | |
| 13 | 0 | $self->client->delete_bucket( $self->name, $recursive ); | |
| 14 | } | ||
| 15 | |||
| 16 | 0 | ▶ | sub get_object { |
|
Subroutine
get_object: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 17 | 0 | my ($self, $key, $opts) = @_; | |
| 18 | |||
| 19 | 0 | $self->client->get_object( | |
| 20 | join( "/", $self->name, $key ), | ||
| 21 | $opts | ||
| 22 | ); | ||
| 23 | } | ||
| 24 | |||
| 25 | 0 | ▶ | sub put_object { |
|
Subroutine
put_object: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 26 | 0 | my ($self, $key, $content, $opts) = @_; | |
| 27 | |||
| 28 | 0 | $self->client->put_object( | |
| 29 | join( "/", $self->name, $key ), | ||
| 30 | $content, | ||
| 31 | $opts | ||
| 32 | ); | ||
| 33 | } | ||
| 34 | |||
| 35 | 0 | ▶ | sub delete_object { |
|
Subroutine
delete_object: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 36 | 0 | my ($self, $key, $opts) = @_; | |
| 37 | |||
| 38 | 0 | $self->client->delete_object( | |
| 39 | join( "/", $self->name, $key ), | ||
| 40 | $opts | ||
| 41 | ); | ||
| 42 | } | ||
| 43 | |||
| 44 | 1 | 1; | |
| 45 | |||
| 46 | __END__ | ||