API-Docker

 view release on metacpan or  search on metacpan

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

package API::Docker::Type::IPAMConfig;
# ABSTRACT: One entry of C<IPAM.Config>
our $VERSION = '0.004';
use API::Docker::Type;
use namespace::clean;


docker subnet => Str;


docker ip_range => Str, wire => 'IPRange';


docker gateway => Str;


docker auxiliary_addresses => { Str, Str };


1;

__END__

=pod

=encoding UTF-8

=head1 NAME

API::Docker::Type::IPAMConfig - One entry of C<IPAM.Config>

=head1 VERSION

version 0.004

=head1 DESCRIPTION

Generated from the C<IPAMConfig> definition of C<spec/v1.51.yaml>, which the
swagger leaves undescribed. Nothing in C<paths:> reaches it either; it is
one entry of C<IPAM.Config>. Neither the definition nor any of its four
fields carries a description, but L<API::Docker::Type::IPAM/config> writes
out the map form an entry takes: C<< {"Subnet": <CIDR>, "IPRange": <CIDR>,
"Gateway": <IP address>, "AuxAddress": <device_name:IP address>} >>. That is
where the four sentences below come from.

=head2 subnet

Undocumented upstream. A CIDR block. Measured against Podman 5.8.4 (API
1.44), the default bridge network answers C<10.88.0.0/16>; the swagger's
example is C<172.20.0.0/16>.

=head2 ip_range

Undocumented upstream. A CIDR block inside L</subnet>, C<172.20.10.0/24>
against a C<172.20.0.0/16> subnet in the swagger's examples. Serialised as
C<IPRange> -- spelled out, because deriving it from the Perl name would
produce C<IpRange>.

=head2 gateway

Undocumented upstream. An IP address. Measured against Podman 5.8.4 (API
1.44), the default bridge network answers C<10.88.0.1>; the swagger's
example is C<172.20.10.11>.

=head2 auxiliary_addresses

Undocumented upstream. A device name for each key and an IP address for each
value, which is what C<< "AuxAddress": <device_name:IP address> >> in
L<API::Docker::Type::IPAM/config> spells out. B<The keys are the caller's
data> and are never translated.

=head1 SUPPORT

=head2 Issues

Please report bugs and feature requests on GitHub 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 2.594 seconds using v1.01-cache-2.11-cpan-364913b4093 )