line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
5
|
|
|
5
|
|
35
|
use utf8; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
37
|
|
2
|
|
|
|
|
|
|
package Etcd3::Auth::Enable; |
3
|
|
|
|
|
|
|
|
4
|
5
|
|
|
5
|
|
184
|
use strict; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
79
|
|
5
|
5
|
|
|
5
|
|
18
|
use warnings; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
99
|
|
6
|
|
|
|
|
|
|
|
7
|
5
|
|
|
5
|
|
20
|
use Moo; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
28
|
|
8
|
5
|
|
|
5
|
|
1448
|
use Types::Standard qw(Str Int Bool HashRef ArrayRef); |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
41
|
|
9
|
5
|
|
|
5
|
|
4963
|
use MIME::Base64; |
|
5
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
240
|
|
10
|
5
|
|
|
5
|
|
25
|
use JSON; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
32
|
|
11
|
5
|
|
|
5
|
|
569
|
use Data::Dumper; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
240
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
with 'Etcd3::Role::Actions'; |
14
|
|
|
|
|
|
|
|
15
|
5
|
|
|
5
|
|
26
|
use namespace::clean; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
37
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 NAME |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Etcd3:Auth::Enable |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=cut |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
our $VERSION = '0.006'; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 DESCRIPTION |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Enable authentication |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head2 endpoint |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=cut |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
has endpoint => ( |
34
|
|
|
|
|
|
|
is => 'ro', |
35
|
|
|
|
|
|
|
isa => Str, |
36
|
|
|
|
|
|
|
default => '/auth/enable' |
37
|
|
|
|
|
|
|
); |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head2 json_args |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
arguments that will be sent to the api |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=cut |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
has '+json_args' => ( |
46
|
|
|
|
|
|
|
default => '{}', |
47
|
|
|
|
|
|
|
); |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |