| 1 | package IO::K8s::Cilium::V2::PortInfo; | ||
| 2 | # ABSTRACT: PortInfo specifies L4 port number and name along with the transport protocol | ||
| 3 | 2 | our $VERSION = '1.112'; | |
| 4 | 2 | ▶ | use IO::K8s::Resource; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | k8s name => Str, { pattern => qr/^([0-9]{1,4})|([a-zA-Z0-9]-?)*[a-zA-Z](-?[a-zA-Z0-9])*$/ }; | |
| 7 | 2 | k8s port => Str, { required => 'schema', pattern => qr/^()([1-9]|[1-5]?[0-9]{2,4}|6[1-4][0-9]{3}|65[1-4][0-9]{2}|655[1-2][0-9]|6553[1-5])$/ }; | |
| 8 | 2 | k8s protocol => Str, { required => 'schema', enum => [qw(TCP UDP)] }; | |
| 9 | |||
| 10 | |||
| 11 | |||
| 12 | |||
| 13 | 2 | 1; | |
| 14 | |||
| 15 | __END__ | ||