File Coverage

blib/lib/API/Docker/Image.pm
Criterion Covered Total %
statement 6 14 42.8
branch n/a
condition n/a
subroutine 2 6 33.3
pod 4 4 100.0
total 12 24 50.0


line stmt bran cond sub pod time code
1             package API::Docker::Image;
2             # ABSTRACT: Docker image entity
3             our $VERSION = '0.001';
4 7     7   43 use Moo;
  7         13  
  7         41  
5 7     7   2458 use namespace::clean;
  7         13  
  7         73  
6              
7              
8             has client => (
9             is => 'ro',
10             weak_ref => 1,
11             );
12              
13              
14             has Id => (is => 'ro');
15              
16              
17             has ParentId => (is => 'ro');
18             has RepoTags => (is => 'ro');
19              
20              
21             has RepoDigests => (is => 'ro');
22             has Created => (is => 'ro');
23             has Size => (is => 'ro');
24              
25              
26             has SharedSize => (is => 'ro');
27             has VirtualSize => (is => 'ro');
28             has Labels => (is => 'ro');
29             has Containers => (is => 'ro');
30              
31             has Architecture => (is => 'ro');
32             has Os => (is => 'ro');
33             has Config => (is => 'ro');
34             has RootFS => (is => 'ro');
35             has Metadata => (is => 'ro');
36              
37             sub inspect {
38 0     0 1   my ($self) = @_;
39 0           return $self->client->images->inspect($self->Id);
40             }
41              
42              
43             sub history {
44 0     0 1   my ($self) = @_;
45 0           return $self->client->images->history($self->Id);
46             }
47              
48              
49             sub tag {
50 0     0 1   my ($self, %opts) = @_;
51 0           return $self->client->images->tag($self->Id, %opts);
52             }
53              
54              
55             sub remove {
56 0     0 1   my ($self, %opts) = @_;
57 0           return $self->client->images->remove($self->Id, %opts);
58             }
59              
60              
61              
62             1;
63              
64             __END__