GitLab...stants(3pm)
π GitLab::API::v4::Constants β the manual page, but make it slay π
okay so bestie, welcome to GitLab::API::v4::Constants β it's the constants page for the GitLab API v4 Perl library, it lives in section 3pm (that's User Contributed Perl Documentation, for the uninitiated), and honestly? It's giving β¨ very organized β¨. No drama, no tricks, just a bunch of numbers and strings that the rest of the library wants you to use instead of typing raw magic values like a feral little gremlin. π§
πΈ SYNOPSIS πΈ
Here's the vibe in three lines. Look at it. Obsessed.
use GitLab::API::v4::Constants qw( :all );
print $GITLAB_ACCESS_LEVEL_GUEST; # 10
So you pull in :all β every constant, all at once, main character energy β and then $GITLAB_ACCESS_LEVEL_GUEST prints out 10. Simple. Clean. Ate. π
π CONSTANTS π
π₯ $GITLAB_ACCESS_LEVEL_NO_ACCESS
0
That's the "you shall not pass" tier, bestie. Zero. Nothing. Not a single crumb of access. π
π«Ά $GITLAB_ACCESS_LEVEL_GUEST
10
Guest! You're here, you're cute, you can look but don't touch too much. Lowkey the vibe of a plus-one at a party. β¨
πΈ $GITLAB_ACCESS_LEVEL_REPORTER
20
Reporter level. You can see stuff and report stuff. Very "I'm telling the group chat" energy. π
π $GITLAB_ACCESS_LEVEL_DEVELOPER
30
Developer! Now we're cooking. You write code, you push things, you're in your era. π»
π $GITLAB_ACCESS_LEVEL_MASTER
40
Master level. Big permissions, big responsibility, fr fr. π
π $GITLAB_ACCESS_LEVEL_OWNER
50
Owner. The literal final boss. This is your repo, your rules, periodt. π
β @GITLAB_ACCESS_LEVELS
An array holding all of the values above, in order: $GITLAB_ACCESS_LEVEL_NO_ACCESS, $GITLAB_ACCESS_LEVEL_GUEST, $GITLAB_ACCESS_LEVEL_REPORTER, $GITLAB_ACCESS_LEVEL_DEVELOPER, $GITLAB_ACCESS_LEVEL_MASTER, and $GITLAB_ACCESS_LEVEL_OWNER. So if you ever need to loop over every access level instead of hardcoding six of them like a menace β this is her. π¦
π $GITLAB_SNIPPET_VISIBILITY_LEVEL_PRIVATE
"private"
Just for you. Locked down. Not sharing, not explaining. π
π $GITLAB_SNIPPET_VISIBILITY_LEVEL_INTERNAL
"internal"
Not public, not fully private β the "it's complicated" setting. For the people inside the house. π
π $GITLAB_SNIPPET_VISIBILITY_LEVEL_PUBLIC
"public"
Out in the world. Everyone can see it. Main character move, no cap. β¨
π¦ @GITLAB_SNIPPET_VISIBILITY_LEVELS
An array containing the values for $GITLAB_SNIPPET_VISIBILITY_LEVEL_PRIVATE, $GITLAB_SNIPPET_VISIBILITY_LEVEL_INTERNAL, and $GITLAB_SNIPPET_VISIBILITY_LEVEL_PUBLIC. All three visibility levels, chilling in one array, iconic behavior. π
π«Ά SUPPORT π«Ά
The support deets live over in "SUPPORT" in GitLab::API::v4 β go check the big page, bestie, that's where the help is. π
π AUTHORS π
Who made this? See "AUTHORS" in GitLab::API::v4. Credit where credit is due. π
π LICENSE π
The legal tea is in "LICENSE" in GitLab::API::v4. Go read it, be responsible, iykyk. π
π and that's the whole page, no notes β perlv5.36.0, dated2023-06-13, signed off with love from your favorite manual,GitLab::API::v4::Constants(3pm). bye bestie, go write some slay Perl π β¨
π¦ where this page comes from
- debian trixie: libgitlab-api-v4-perl 0.27-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libgitlab-api-v4-perl 0.27-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libgitlab-api-v4-perl 0.27-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libgitlab-api-v4-perl 0.27-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms