| 1 | package Kubernetes::REST::AuthToken; | ||
| 2 | our $VERSION = '1.109'; | ||
| 3 | # ABSTRACT: Kubernetes API authentication token | ||
| 4 | use Moo; | ||
| 5 | use Types::Standard qw/Str/; | ||
| 6 | |||
| 7 | |||
| 8 | has token => (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::AuthToken - Kubernetes API authentication token | ||
| 22 | |||
| 23 | =head1 VERSION | ||
| 24 | |||
| 25 | version 1.109 | ||
| 26 | |||
| 27 | =head1 SYNOPSIS | ||
| 28 | |||
| 29 | use Kubernetes::REST::AuthToken; | ||
| 30 | |||
| 31 | my $auth = Kubernetes::REST::AuthToken->new( | ||
| 32 | token => $bearer_token, | ||
| 33 | ); | ||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | Authentication credentials for Kubernetes API requests using bearer token authentication. | ||
| 38 | |||
| 39 | L<Kubernetes::REST>'s C<credentials> attribute accepts an instance of this class, a plain hashref (coerced into one automatically), or any other object that implements a C<token()> method. | ||
| 40 | |||
| 41 | =head2 token | ||
| 42 | |||
| 43 | Required. The bearer token for API authentication. | ||
| 44 | |||
| 45 | =head1 SEE ALSO | ||
| 46 | |||
| 47 | =over | ||
| 48 | |||
| 49 | =item * L<Kubernetes::REST> - Main API client | ||
| 50 | |||
| 51 | =item * L<Kubernetes::REST::Kubeconfig> - Load token from kubeconfig | ||
| 52 | |||
| 53 | =back | ||
| 54 | |||
| 55 | =head1 SUPPORT | ||
| 56 | |||
| 57 | =head2 Issues | ||
| 58 | |||
| 59 | Please report bugs and feature requests on GitHub at | ||
| 60 | L<https://github.com/pplu/kubernetes-rest/issues>. | ||
| 61 | |||
| 62 | =head2 IRC | ||
| 63 | |||
| 64 | Join C<#kubernetes> on C<irc.perl.org> or message Getty directly. | ||
| 65 | |||
| 66 | =head1 CONTRIBUTING | ||
| 67 | |||
| 68 | Contributions are welcome! Please fork the repository and submit a pull request. | ||
| 69 | |||
| 70 | =head1 AUTHORS | ||
| 71 | |||
| 72 | =over 4 | ||
| 73 | |||
| 74 | =item * | ||
| 75 | |||
| 76 | Torsten Raudssus <getty@cpan.org> | ||
| 77 | |||
| 78 | =item * | ||
| 79 | |||
| 80 | Jose Luis Martinez Torres <jlmartin@cpan.org> | ||
| 81 | |||
| 82 | =back | ||
| 83 | |||
| 84 | =head1 COPYRIGHT AND LICENSE | ||
| 85 | |||
| 86 | This software is Copyright (c) 2019-2026 by Jose Luis Martinez Torres <jlmartin@cpan.org>. | ||
| 87 | |||
| 88 | This is free software, licensed under: | ||
| 89 | |||
| 90 | The Apache License, Version 2.0, January 2004 | ||
| 91 | |||
| 92 | =cut |