File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,19 @@ import (
2020 "net"
2121)
2222
23- // IPFamily refers to a specific family if not empty, i.e. "4" or "6".
23+ // IPFamily refers to the IP family of an address or CIDR value. Its values are
24+ // intentionally identical to those of "k8s.io/api/core/v1".IPFamily and
25+ // "k8s.io/discovery/v1".AddressType, so you can cast values between these types.
2426type IPFamily string
2527
26- // Constants for valid IPFamilys:
2728const (
28- IPFamilyUnknown IPFamily = ""
29+ // IPv4 indicates an IPv4 IP or CIDR.
30+ IPv4 IPFamily = "IPv4"
31+ // IPv6 indicates an IPv4 IP or CIDR.
32+ IPv6 IPFamily = "IPv6"
2933
30- IPv4 IPFamily = "4"
31- IPv6 IPFamily = "6 "
34+ // IPFamilyUnknown indicates an unspecified or invalid IP family.
35+ IPFamilyUnknown IPFamily = ""
3236)
3337
3438// IsDualStackIPs returns true if:
You can’t perform that action at this time.
0 commit comments