Documentation ¶
Overview ¶
Package common contains the OpenShift SDN code that is shared between master, node, and proxy
Index ¶
- func CheckDNSResolver() error
- func ClusterNetworkListContains(clusterNetworks []ClusterNetwork, ipaddr net.IP) (*net.IPNet, bool)
- func ClusterNetworkToString(n *networkapi.ClusterNetwork) string
- func HostSubnetToString(subnet *networkapi.HostSubnet) string
- func InformerFuncs(objType runtime.Object, addOrUpdateFunc InformerAddOrUpdateFunc, ...) kcache.ResourceEventHandlerFuncs
- type ClusterNetwork
- type DNS
- type EgressDNS
- func (e *EgressDNS) Add(policy networkapi.EgressNetworkPolicy)
- func (e *EgressDNS) Delete(policy networkapi.EgressNetworkPolicy)
- func (e *EgressDNS) GetIPs(policy networkapi.EgressNetworkPolicy, dnsName string) []net.IP
- func (e *EgressDNS) GetMinQueryTime() (time.Time, ktypes.UID, string, bool)
- func (e *EgressDNS) GetNetCIDRs(policy networkapi.EgressNetworkPolicy, dnsName string) []net.IPNet
- func (e *EgressDNS) Sync()
- func (e *EgressDNS) Update(policyUID ktypes.UID) (error, bool)
- type EgressDNSUpdate
- type InformerAddOrUpdateFunc
- type InformerDeleteFunc
- type NetworkInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDNSResolver ¶
func CheckDNSResolver() error
func ClusterNetworkToString ¶
func ClusterNetworkToString(n *networkapi.ClusterNetwork) string
func HostSubnetToString ¶
func HostSubnetToString(subnet *networkapi.HostSubnet) string
func InformerFuncs ¶
func InformerFuncs(objType runtime.Object, addOrUpdateFunc InformerAddOrUpdateFunc, deleteFunc InformerDeleteFunc) kcache.ResourceEventHandlerFuncs
Types ¶
type ClusterNetwork ¶
type EgressDNS ¶
type EgressDNS struct { // Report changes when there are dns updates Updates chan EgressDNSUpdate // contains filtered or unexported fields }
func NewEgressDNS ¶
func NewEgressDNS() *EgressDNS
func (*EgressDNS) Add ¶
func (e *EgressDNS) Add(policy networkapi.EgressNetworkPolicy)
func (*EgressDNS) Delete ¶
func (e *EgressDNS) Delete(policy networkapi.EgressNetworkPolicy)
func (*EgressDNS) GetIPs ¶
func (e *EgressDNS) GetIPs(policy networkapi.EgressNetworkPolicy, dnsName string) []net.IP
func (*EgressDNS) GetMinQueryTime ¶
func (*EgressDNS) GetNetCIDRs ¶
func (e *EgressDNS) GetNetCIDRs(policy networkapi.EgressNetworkPolicy, dnsName string) []net.IPNet
type EgressDNSUpdate ¶
type InformerAddOrUpdateFunc ¶
type InformerDeleteFunc ¶
type InformerDeleteFunc func(interface{})
type NetworkInfo ¶
type NetworkInfo struct { ClusterNetworks []ClusterNetwork ServiceNetwork *net.IPNet }
func GetNetworkInfo ¶
func GetNetworkInfo(networkClient networkclient.Interface) (*NetworkInfo, error)
func ParseNetworkInfo ¶
func ParseNetworkInfo(clusterNetwork []networkapi.ClusterNetworkEntry, serviceNetwork string) (*NetworkInfo, error)
func (*NetworkInfo) CheckClusterObjects ¶
func (ni *NetworkInfo) CheckClusterObjects(subnets []networkapi.HostSubnet, pods []kapi.Pod, services []kapi.Service) error
func (*NetworkInfo) CheckHostNetworks ¶
func (ni *NetworkInfo) CheckHostNetworks(hostIPNets []*net.IPNet) error
func (*NetworkInfo) ValidateNodeIP ¶
func (ni *NetworkInfo) ValidateNodeIP(nodeIP string) error
Click to show internal directories.
Click to hide internal directories.