lib/Kubernetes/REST/Core.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« lib/Kubernetes/REST/Coordination.pm ↑ Summary lib/Kubernetes/REST/Events.pm »
1 package Kubernetes::REST::Core;
2 2 our $VERSION = '1.108';
3 # ABSTRACT: Compatibility helper for deprecated v0 Core calls
4 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 extends 'Kubernetes::REST::V0Group';
6 15 ▶has '+group' => (default => sub { 'Core' });
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8  
9 2 1;
10  
11 __END__
12  
13 =pod
14  
15 =encoding UTF-8
16  
17 =head1 NAME
18  
19 Kubernetes::REST::Core - Compatibility helper for deprecated v0 Core calls
20  
21 =head1 VERSION
22  
23 version 1.108
24  
25 =head1 SYNOPSIS
26  
27 # Old way (deprecated):
28 my $pods = $api->Core->ListNamespacedPod(namespace => 'default');
29  
30 # New way:
31 my $pods = $api->list('Pod', namespace => 'default');
32  
33 =head1 DESCRIPTION
34  
35 This module keeps the deprecated v0 API usable. Kubernetes::REST 0.01/0.02 (by JLMARTIN) used method names like C<< $api->Core->ListNamespacedPod(...) >>; calls like that still reach the cluster from here, translated onto the v1 API.
36  
37 The new v1 API uses simple methods directly on the main L<Kubernetes::REST> object:
38  
39 $api->list('Pod', ...)
40 $api->get('Pod', 'name', ...)
41 $api->create($pod)
42 $api->update($pod)
43 $api->delete($pod)
44  
45 See L<Kubernetes::REST/"UPGRADING FROM 0.02"> for migration guide.
46  
47 =head1 SEE ALSO
48  
49 =over
50  
51 =item * L<Kubernetes::REST> - Main module with v1 API
52  
53 =item * L<Kubernetes::REST::V0Group> - Base class for v0 compatibility layer
54  
55 =back
56  
57 =head1 SUPPORT
58  
59 =head2 Issues
60  
61 Please report bugs and feature requests on GitHub at
62 L<https://github.com/pplu/kubernetes-rest/issues>.
63  
64 =head2 IRC
65  
66 Join C<#kubernetes> on C<irc.perl.org> or message Getty directly.
67  
68 =head1 CONTRIBUTING
69  
70 Contributions are welcome! Please fork the repository and submit a pull request.
71  
72 =head1 AUTHORS
73  
74 =over 4
75  
76 =item *
77  
78 Torsten Raudssus <getty@cpan.org>
79  
80 =item *
81  
82 Jose Luis Martinez Torres <jlmartin@cpan.org>
83  
84 =back
85  
86 =head1 COPYRIGHT AND LICENSE
87  
88 This software is Copyright (c) 2019-2026 by Jose Luis Martinez Torres <jlmartin@cpan.org>.
89  
90 This is free software, licensed under:
91  
92 The Apache License, Version 2.0, January 2004
93  
94 =cut
« lib/Kubernetes/REST/Coordination.pm ↑ Summary lib/Kubernetes/REST/Events.pm »