Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractNodeIP ¶ added in v1.15.0
ExtractNodeIP returns one of the provided IP addresses available with the following priority: - NodeInternalIP - NodeExternalIP - other IP address type An error is returned if ExtractNodeIP fails to get an IP based on the provided address family.
Types ¶
type Address ¶ added in v1.15.0
type Address interface { AddrType() AddressType ToString() string }
type AddressType ¶
type AddressType string
AddressType represents a type of IP address for a node. They are copied from k8s.io/api/core/v1/types.go to avoid pulling in a lot of Kubernetes imports into this package.
const ( NodeHostName AddressType = "Hostname" NodeExternalIP AddressType = "ExternalIP" NodeInternalIP AddressType = "InternalIP" NodeExternalDNS AddressType = "ExternalDNS" NodeInternalDNS AddressType = "InternalDNS" NodeCiliumInternalIP AddressType = "CiliumInternalIP" )
Click to show internal directories.
Click to hide internal directories.