Documentation
¶
Index ¶
- Constants
- func ShowRoutes(name string) error
- type CIDR
- type Link
- type LinkAccessInfo
- type LinkDNSInfo
- type LinkForeignData
- type Links
- func (this *Links) GetLink(name string) *Link
- func (this *Links) GetLinkForClusterAddress(ip net.IP) *Link
- func (this *Links) GetLinkForEndpoint(dnsname string) *Link
- func (this *Links) GetLinkForIP(ip net.IP) *Link
- func (this *Links) GetRoutes(ifce *NodeInterface) Routes
- func (this *Links) GetRoutesToLink(ifce *NodeInterface, link netlink.Link) Routes
- func (this *Links) GetSNATRules(ifce *NodeInterface) iptables.Requests
- func (this *Links) LinkFor(link *v1alpha1.KubeLink) (*Link, error)
- func (this *Links) LinkInfoUpdated(logger logger.LogContext, name string, access *LinkAccessInfo, ...) *Link
- func (this *Links) RegisterLink(name string, clusterCIDR *net.IPNet, fqdn string, cidr *net.IPNet) (*Link, error)
- func (this *Links) RemoveLink(name string)
- func (this *Links) Setup(logger logger.LogContext, cluster cluster.Interface)
- func (this *Links) UpdateLink(klink *v1alpha1.KubeLink) (*Link, error)
- func (this *Links) UpdateLinkInfo(logger logger.LogContext, name string, access *LinkAccessInfo, ...) (*Link, bool)
- func (this *Links) Visit(visitor func(l *Link) bool)
- type NodeInterface
- type Routes
- type StringList
- type StringLists
Constants ¶
View Source
const DEFAULT_PORT = 80
Variables ¶
This section is empty.
Functions ¶
func ShowRoutes ¶
Types ¶
type Link ¶
type LinkAccessInfo ¶
func (LinkAccessInfo) Equal ¶
func (this LinkAccessInfo) Equal(other LinkAccessInfo) bool
func (LinkAccessInfo) String ¶
func (this LinkAccessInfo) String() string
type LinkDNSInfo ¶
func (LinkDNSInfo) Equal ¶
func (this LinkDNSInfo) Equal(other LinkDNSInfo) bool
func (LinkDNSInfo) String ¶
func (this LinkDNSInfo) String() string
type LinkForeignData ¶
type LinkForeignData struct { UpdatePending bool LinkAccessInfo LinkDNSInfo }
type Links ¶
type Links struct {
// contains filtered or unexported fields
}
func GetSharedLinks ¶
func GetSharedLinks(controller controller.Interface) *Links
func (*Links) GetLinkForClusterAddress ¶
func (*Links) GetLinkForEndpoint ¶
func (*Links) GetRoutes ¶
func (this *Links) GetRoutes(ifce *NodeInterface) Routes
func (*Links) GetRoutesToLink ¶
func (this *Links) GetRoutesToLink(ifce *NodeInterface, link netlink.Link) Routes
func (*Links) GetSNATRules ¶
func (this *Links) GetSNATRules(ifce *NodeInterface) iptables.Requests
func (*Links) LinkInfoUpdated ¶
func (this *Links) LinkInfoUpdated(logger logger.LogContext, name string, access *LinkAccessInfo, dns *LinkDNSInfo) *Link
func (*Links) RegisterLink ¶
func (*Links) RemoveLink ¶
func (*Links) UpdateLinkInfo ¶
func (this *Links) UpdateLinkInfo(logger logger.LogContext, name string, access *LinkAccessInfo, dns *LinkDNSInfo, pending bool) (*Link, bool)
type NodeInterface ¶
func LookupNodeIP ¶
func LookupNodeIP(logger logger.LogContext, cidr *net.IPNet) (*NodeInterface, error)
type Routes ¶
func ListRoutes ¶
func ListRoutesForInterface ¶
func (Routes) LookupAndLogMismatchReason ¶
type StringList ¶
type StringList []string
func (StringList) Equals ¶
func (this StringList) Equals(r StringList) bool
func (StringList) Index ¶
func (this StringList) Index(val string) int
type StringLists ¶
type StringLists []StringList
func (StringLists) Index ¶
func (this StringLists) Index(l StringList) int
Click to show internal directories.
Click to hide internal directories.