API-Docker

 view release on metacpan or  search on metacpan

lib/API/Docker/Type/AuthConfig.pm  view on Meta::CPAN

package API::Docker::Type::AuthConfig;
# ABSTRACT: The body of a C<POST /auth> request
our $VERSION = '0.006';
use API::Docker::Type;
use namespace::clean;


docker username => Str, wire => 'username';


docker password => Str, wire => 'password';


docker email => Str, wire => 'email';


docker serveraddress => Str, wire => 'serveraddress';


1;

__END__

=pod

=encoding UTF-8

=head1 NAME

API::Docker::Type::AuthConfig - The body of a C<POST /auth> request

=head1 VERSION

version 0.006

=head1 DESCRIPTION

Generated from the C<AuthConfig> definition of C<spec/v1.51.yaml>, which the
swagger leaves undescribed. C<paths:> says what it is: the body of a C<POST
/auth> request.

=head2 username

Undocumented upstream. The registry account name, C<hannibal> in the
definition's own example. Serialised as C<username> -- spelled out, because
deriving it from the Perl name would produce C<Username>.

=head2 password

Undocumented upstream. Its password, C<xxxx> in the definition's own
example. The swagger's introduction gives the same three keys as the
structure that travels base64url-encoded in C<X-Registry-Auth>, and notes
that an identity token from C<POST /auth> can be sent instead of a username
and password; see L<API::Docker::Role::RegistryAuth>. Serialised as
C<password> -- spelled out, because deriving it from the Perl name would
produce C<Password>.

=head2 email

Email is an optional value associated with the username.

> B<Deprecated>: This field is deprecated since docker 1.11 (API v1.23) and
will be removed in a future release. Serialised as C<email> -- spelled out,
because deriving it from the Perl name would produce C<Email>.

=head2 serveraddress

Undocumented upstream. The registry to authenticate against. The swagger's
introduction says of this key that it is "a domain/IP without a protocol",
while the definition's own example gives C<https://index.docker.io/v1/> --
which has one. The spec contradicts itself here; this distribution forwards
whatever the caller wrote. Serialised as C<serveraddress> -- spelled out,
because deriving it from the Perl name would produce C<Serveraddress>.

=head1 SUPPORT

=head2 Issues

Please report bugs and feature requests at
L<https://github.com/Getty/p5-api-docker/issues>.

=head1 CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

=head1 AUTHOR

Torsten Raudssus <getty@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> L<https://raudssus.de/>.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut



( run in 1.920 second using v1.01-cache-2.11-cpan-f5f21f1076c )