blib/lib/Kubernetes/REST/LogEvent.pm untested

filter: Statementstmt 0.0% 0 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 11 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Kubernetes::REST::LogEvent;
2 our $VERSION = '1.108';
3 # ABSTRACT: A single log line from the Kubernetes Pod Log API
4 use Moo;
5 use Types::Standard qw(Str);
6  
7  
8 has line => (is => 'ro', isa => Str, required => 1);
9  
10  
11 1;
12  
13 __END__
14  
15 =pod
16  
17 =encoding UTF-8
18  
19 =head1 NAME
20  
21 Kubernetes::REST::LogEvent - A single log line from the Kubernetes Pod Log API
22  
23 =head1 VERSION
24  
25 version 1.108
26  
27 =head1 SYNOPSIS
28  
29 $api->log('Pod', 'my-pod',
30 namespace => 'default',
31 follow => 1,
32 on_line => sub {
33 my ($event) = @_;
34 say $event->line;
35 },
36 );
37  
38 =head1 DESCRIPTION
39  
40 Represents a single log line from the Kubernetes Pod Log API. Wraps the raw text line in a typed object for consistent event handling, analogous to L<Kubernetes::REST::WatchEvent> for the Watch API.
41  
42 =head2 line
43  
44 Required. The log line text, as raw bytes rather than decoded characters -
45 container output is not guaranteed to be UTF-8, or even text (see
46 L<Kubernetes::REST::Role::IO/"Encoding contract">). Does not include the
47 trailing newline.
48  
49 =head1 SEE ALSO
50  
51 =over
52  
53 =item * L<Kubernetes::REST> - Main API client
54  
55 =item * L<Kubernetes::REST/log> - Pod Log API documentation
56  
57 =item * L<Kubernetes::REST::WatchEvent> - Analogous event object for the Watch API
58  
59 =item * L<https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.36/#read-log-pod-v1-core> - Kubernetes Pod log API reference
60  
61 =back
62  
63 =head1 SUPPORT
64  
65 =head2 Issues
66  
67 Please report bugs and feature requests on GitHub at
68 L<https://github.com/pplu/kubernetes-rest/issues>.
69  
70 =head2 IRC
71  
72 Join C<#kubernetes> on C<irc.perl.org> or message Getty directly.
73  
74 =head1 CONTRIBUTING
75  
76 Contributions are welcome! Please fork the repository and submit a pull request.
77  
78 =head1 AUTHORS
79  
80 =over 4
81  
82 =item *
83  
84 Torsten Raudssus <getty@cpan.org>
85  
86 =item *
87  
88 Jose Luis Martinez Torres <jlmartin@cpan.org>
89  
90 =back
91  
92 =head1 COPYRIGHT AND LICENSE
93  
94 This software is Copyright (c) 2019-2026 by Jose Luis Martinez Torres <jlmartin@cpan.org>.
95  
96 This is free software, licensed under:
97  
98 The Apache License, Version 2.0, January 2004
99  
100 =cut