line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package GitLab::API::v3::Constants; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
GitLab::API::v3::Constants - GitLab API v3 constants. |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 SYNOPSIS |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
use GitLab::API::v3::Constants qw( :all ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
print $GITLAB_INTERNAL_VISIBILITY_LEVEL; # 10 |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=cut |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
1297
|
use Const::Fast; |
|
1
|
|
|
|
|
1188
|
|
|
1
|
|
|
|
|
8
|
|
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
1
|
|
87
|
use strictures 1; |
|
1
|
|
|
|
|
10
|
|
|
1
|
|
|
|
|
42
|
|
18
|
1
|
|
|
1
|
|
106
|
use namespace::clean; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
10
|
|
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
256
|
use Exporter qw( import ); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
340
|
|
21
|
|
|
|
|
|
|
our @EXPORT_OK; |
22
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( all => \@EXPORT_OK ); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 CONSTANTS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head2 $GITLAB_VISIBILITY_LEVEL_PRIVATE |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
C<0> |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
const our $GITLAB_VISIBILITY_LEVEL_PRIVATE => 0; |
33
|
|
|
|
|
|
|
push @EXPORT_OK, '$GITLAB_VISIBILITY_LEVEL_PRIVATE'; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head2 $GITLAB_VISIBILITY_LEVEL_INTERNAL |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
C<10> |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=cut |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
const our $GITLAB_VISIBILITY_LEVEL_INTERNAL => 10; |
42
|
|
|
|
|
|
|
push @EXPORT_OK, '$GITLAB_VISIBILITY_LEVEL_INTERNAL'; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head2 $GITLAB_VISIBILITY_LEVEL_PUBLIC |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
C<20> |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=cut |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
const our $GITLAB_VISIBILITY_LEVEL_PUBLIC => 20; |
51
|
|
|
|
|
|
|
push @EXPORT_OK, '$GITLAB_VISIBILITY_LEVEL_PUBLIC'; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head2 @GITLAB_VISIBILITY_LEVELS |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
An array containing the values for L</$GITLAB_VISIBILITY_LEVEL_PRIVATE>, |
56
|
|
|
|
|
|
|
L</$GITLAB_VISIBILITY_LEVEL_INTERNAL> and L</$GITLAB_VISIBILITY_LEVEL_PUBLIC>. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=cut |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
const our @GITLAB_VISIBILITY_LEVELS => ( |
61
|
|
|
|
|
|
|
$GITLAB_VISIBILITY_LEVEL_PRIVATE, |
62
|
|
|
|
|
|
|
$GITLAB_VISIBILITY_LEVEL_INTERNAL, |
63
|
|
|
|
|
|
|
$GITLAB_VISIBILITY_LEVEL_PUBLIC, |
64
|
|
|
|
|
|
|
); |
65
|
|
|
|
|
|
|
push @EXPORT_OK, '@GITLAB_VISIBILITY_LEVELS'; |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head2 $GITLAB_ACCESS_LEVEL_GUEST |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
C<10> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
const our $GITLAB_ACCESS_LEVEL_GUEST => 10; |
74
|
|
|
|
|
|
|
push @EXPORT_OK, '$GITLAB_ACCESS_LEVEL_GUEST'; |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head2 $GITLAB_ACCESS_LEVEL_REPORTER |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
C<20> |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
const our $GITLAB_ACCESS_LEVEL_REPORTER => 20; |
83
|
|
|
|
|
|
|
push @EXPORT_OK, '$GITLAB_ACCESS_LEVEL_REPORTER'; |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head2 $GITLAB_ACCESS_LEVEL_DEVELOPER |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
C<30> |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=cut |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
const our $GITLAB_ACCESS_LEVEL_DEVELOPER => 30; |
92
|
|
|
|
|
|
|
push @EXPORT_OK, '$GITLAB_ACCESS_LEVEL_DEVELOPER'; |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head2 $GITLAB_ACCESS_LEVEL_MASTER |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
C<40> |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=cut |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
const our $GITLAB_ACCESS_LEVEL_MASTER => 40; |
101
|
|
|
|
|
|
|
push @EXPORT_OK, '$GITLAB_ACCESS_LEVEL_MASTER'; |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=head2 $GITLAB_ACCESS_LEVEL_OWNER |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
C<50> |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=cut |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
const our $GITLAB_ACCESS_LEVEL_OWNER => 50; |
110
|
|
|
|
|
|
|
push @EXPORT_OK, '$GITLAB_ACCESS_LEVEL_OWNER'; |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head2 @GITLAB_ACCESS_LEVELS |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
An array containing the values for L</$GITLAB_ACCESS_LEVEL_GUEST>, |
115
|
|
|
|
|
|
|
L</$GITLAB_ACCESS_LEVEL_REPORTER>, L</$GITLAB_ACCESS_LEVEL_DEVELOPER>, |
116
|
|
|
|
|
|
|
L</$GITLAB_ACCESS_LEVEL_MASTER>, and L</$GITLAB_ACCESS_LEVEL_OWNER>. |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=cut |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
const our @GITLAB_ACCESS_LEVELS => ( |
121
|
|
|
|
|
|
|
$GITLAB_ACCESS_LEVEL_GUEST, |
122
|
|
|
|
|
|
|
$GITLAB_ACCESS_LEVEL_REPORTER, |
123
|
|
|
|
|
|
|
$GITLAB_ACCESS_LEVEL_DEVELOPER, |
124
|
|
|
|
|
|
|
$GITLAB_ACCESS_LEVEL_MASTER, |
125
|
|
|
|
|
|
|
$GITLAB_ACCESS_LEVEL_OWNER, |
126
|
|
|
|
|
|
|
); |
127
|
|
|
|
|
|
|
push @EXPORT_OK, '@GITLAB_ACCESS_LEVELS'; |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
1; |
130
|
|
|
|
|
|
|
__END__ |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=head1 SUPPORT |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
See L<GitLab::API::v3/SUPPORT>. |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=head1 AUTHORS |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
See L<GitLab::API::v3/AUTHORS>. |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=head1 LICENSE |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
See L<GitLab::API::v3/LICENSE>. |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=cut |
145
|
|
|
|
|
|
|
|