File Coverage

blib/lib/API/Docker/Volume.pm
Criterion Covered Total %
statement 6 10 60.0
branch n/a
condition n/a
subroutine 2 4 50.0
pod 2 2 100.0
total 10 16 62.5


line stmt bran cond sub pod time code
1             package API::Docker::Volume;
2             # ABSTRACT: Docker volume entity
3             our $VERSION = '0.002';
4 8     8   51 use Moo;
  8         17  
  8         46  
5 8     8   2894 use namespace::clean;
  8         16  
  8         92  
6              
7              
8             has client => (
9             is => 'ro',
10             weak_ref => 1,
11             );
12              
13              
14             has Name => (is => 'ro');
15              
16              
17             has Driver => (is => 'ro');
18              
19              
20             has Mountpoint => (is => 'ro');
21              
22              
23             has CreatedAt => (is => 'ro');
24             has Status => (is => 'ro');
25             has Labels => (is => 'ro');
26             has Scope => (is => 'ro');
27             has Options => (is => 'ro');
28             has UsageData => (is => 'ro');
29              
30             sub inspect {
31 0     0 1   my ($self) = @_;
32 0           return $self->client->volumes->inspect($self->Name);
33             }
34              
35              
36             sub remove {
37 0     0 1   my ($self, %opts) = @_;
38 0           return $self->client->volumes->remove($self->Name, %opts);
39             }
40              
41              
42              
43             1;
44              
45             __END__