Documentation ¶
Index ¶
- type BackendInfo
- type BaseEndpointInfo
- type BaseIngressInfo
- type BaseServiceInfo
- type Cache
- func (c *Cache) GetBroadcaster() events.EventBroadcaster
- func (c *Cache) GetControllers() *Controllers
- func (c *Cache) OnConfigMapAdd(cm *corev1.ConfigMap)
- func (c *Cache) OnConfigMapDelete(cm *corev1.ConfigMap)
- func (c *Cache) OnConfigMapSynced()
- func (c *Cache) OnConfigMapUpdate(oldCm, cm *corev1.ConfigMap)
- func (c *Cache) OnEndpointsAdd(endpoints *corev1.Endpoints)
- func (c *Cache) OnEndpointsDelete(endpoints *corev1.Endpoints)
- func (c *Cache) OnEndpointsSynced()
- func (c *Cache) OnEndpointsUpdate(oldEndpoints, endpoins *corev1.Endpoints)
- func (c *Cache) OnIngressClassv1Add(class *networkingv1.IngressClass)
- func (c *Cache) OnIngressClassv1Delete(class *networkingv1.IngressClass)
- func (c *Cache) OnIngressClassv1Synced()
- func (c *Cache) OnIngressClassv1Update(oldClass, class *networkingv1.IngressClass)
- func (c *Cache) OnIngressv1Add(ingress *networkingv1.Ingress)
- func (c *Cache) OnIngressv1Delete(ingress *networkingv1.Ingress)
- func (c *Cache) OnIngressv1Synced()
- func (c *Cache) OnIngressv1Update(oldIngress, ingress *networkingv1.Ingress)
- func (c *Cache) OnServiceAdd(service *corev1.Service)
- func (c *Cache) OnServiceDelete(service *corev1.Service)
- func (c *Cache) OnServiceSynced()
- func (c *Cache) OnServiceUpdate(oldService, service *corev1.Service)
- func (c *Cache) Sync()
- func (c *Cache) SyncLoop()
- type Controllers
- type Endpoint
- type EndpointChangeTracker
- type EndpointsMap
- type GatewayApiControllers
- type GatewayApiV1alpha2Controllers
- type IngressChangeTracker
- type IngressMap
- type Route
- type ServiceChangeTracker
- type ServiceEndpoint
- type ServiceMap
- type ServicePort
- type ServicePortName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendInfo ¶
type BackendInfo struct {
ServicePortName ServicePortName
}
type BaseEndpointInfo ¶
func (*BaseEndpointInfo) Equal ¶
func (info *BaseEndpointInfo) Equal(other Endpoint) bool
func (*BaseEndpointInfo) HostName ¶
func (info *BaseEndpointInfo) HostName() string
func (*BaseEndpointInfo) IP ¶
func (info *BaseEndpointInfo) IP() string
func (*BaseEndpointInfo) NodeName ¶
func (info *BaseEndpointInfo) NodeName() string
func (*BaseEndpointInfo) Port ¶
func (info *BaseEndpointInfo) Port() (int, error)
func (*BaseEndpointInfo) String ¶
func (info *BaseEndpointInfo) String() string
type BaseIngressInfo ¶
type BaseIngressInfo struct {
// contains filtered or unexported fields
}
func (BaseIngressInfo) Backend ¶
func (info BaseIngressInfo) Backend() ServicePortName
func (BaseIngressInfo) Headers ¶
func (info BaseIngressInfo) Headers() map[string]string
func (BaseIngressInfo) Host ¶
func (info BaseIngressInfo) Host() string
func (BaseIngressInfo) Path ¶
func (info BaseIngressInfo) Path() string
func (BaseIngressInfo) Rewrite ¶
func (info BaseIngressInfo) Rewrite() []string
func (BaseIngressInfo) String ¶
func (info BaseIngressInfo) String() string
type BaseServiceInfo ¶
type BaseServiceInfo struct {
// contains filtered or unexported fields
}
func (*BaseServiceInfo) Address ¶
func (info *BaseServiceInfo) Address() string
func (*BaseServiceInfo) Export ¶
func (info *BaseServiceInfo) Export() bool
func (*BaseServiceInfo) ExportName ¶
func (info *BaseServiceInfo) ExportName() string
func (*BaseServiceInfo) Port ¶
func (info *BaseServiceInfo) Port() int
func (*BaseServiceInfo) Protocol ¶
func (info *BaseServiceInfo) Protocol() corev1.Protocol
func (*BaseServiceInfo) String ¶
func (info *BaseServiceInfo) String() string
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) GetBroadcaster ¶
func (c *Cache) GetBroadcaster() events.EventBroadcaster
func (*Cache) GetControllers ¶
func (c *Cache) GetControllers() *Controllers
func (*Cache) OnConfigMapAdd ¶
func (*Cache) OnConfigMapDelete ¶
func (*Cache) OnConfigMapSynced ¶
func (c *Cache) OnConfigMapSynced()
func (*Cache) OnConfigMapUpdate ¶
func (*Cache) OnEndpointsAdd ¶
func (*Cache) OnEndpointsDelete ¶
func (*Cache) OnEndpointsSynced ¶
func (c *Cache) OnEndpointsSynced()
func (*Cache) OnEndpointsUpdate ¶
func (*Cache) OnIngressClassv1Add ¶
func (c *Cache) OnIngressClassv1Add(class *networkingv1.IngressClass)
func (*Cache) OnIngressClassv1Delete ¶
func (c *Cache) OnIngressClassv1Delete(class *networkingv1.IngressClass)
func (*Cache) OnIngressClassv1Synced ¶
func (c *Cache) OnIngressClassv1Synced()
func (*Cache) OnIngressClassv1Update ¶
func (c *Cache) OnIngressClassv1Update(oldClass, class *networkingv1.IngressClass)
func (*Cache) OnIngressv1Add ¶
func (c *Cache) OnIngressv1Add(ingress *networkingv1.Ingress)
func (*Cache) OnIngressv1Delete ¶
func (c *Cache) OnIngressv1Delete(ingress *networkingv1.Ingress)
func (*Cache) OnIngressv1Synced ¶
func (c *Cache) OnIngressv1Synced()
func (*Cache) OnIngressv1Update ¶
func (c *Cache) OnIngressv1Update(oldIngress, ingress *networkingv1.Ingress)
func (*Cache) OnServiceAdd ¶
func (*Cache) OnServiceDelete ¶
func (*Cache) OnServiceSynced ¶
func (c *Cache) OnServiceSynced()
func (*Cache) OnServiceUpdate ¶
type Controllers ¶
type Controllers struct { Service *controller.ServiceController Endpoints *controller.EndpointsController Ingressv1 *controller.Ingressv1Controller IngressClassv1 *controller.IngressClassv1Controller //ConfigMap *ConfigMapController GatewayApi *GatewayApiControllers }
type EndpointChangeTracker ¶
type EndpointChangeTracker struct {
// contains filtered or unexported fields
}
func NewEndpointChangeTracker ¶
func NewEndpointChangeTracker( enrichEndpointInfo enrichEndpointFunc, recorder events.EventRecorder, ) *EndpointChangeTracker
type EndpointsMap ¶
type EndpointsMap map[ServicePortName][]Endpoint
func (EndpointsMap) Update ¶
func (em EndpointsMap) Update(changes *EndpointChangeTracker)
type GatewayApiControllers ¶
type GatewayApiControllers struct {
V1alpha2 *GatewayApiV1alpha2Controllers
}
type GatewayApiV1alpha2Controllers ¶
type GatewayApiV1alpha2Controllers struct { Gateway *gwcontrollerv1alpha2.GatewayController GatewayClass *gwcontrollerv1alpha2.GatewayClassController HTTPRoute *gwcontrollerv1alpha2.HTTPRouteController ReferencePolicy *gwcontrollerv1alpha2.ReferencePolicyController TCPRoute *gwcontrollerv1alpha2.TCPRouteController TLSRoute *gwcontrollerv1alpha2.TLSRouteController UDPRoute *gwcontrollerv1alpha2.UDPRouteController }
type IngressChangeTracker ¶
type IngressChangeTracker struct {
// contains filtered or unexported fields
}
func NewIngressChangeTracker ¶
func NewIngressChangeTracker(k8sAPI *kube.K8sAPI, controllers *Controllers, recorder events.EventRecorder, enrichIngressInfo enrichIngressInfoFunc) *IngressChangeTracker
func (*IngressChangeTracker) Update ¶
func (ict *IngressChangeTracker) Update(previous, current *networkingv1.Ingress, isDelete bool) bool
type IngressMap ¶
type IngressMap map[ServicePortName]Route
func (IngressMap) Update ¶
func (im IngressMap) Update(changes *IngressChangeTracker)
type Route ¶
type Route interface { String() string Headers() map[string]string Host() string Path() string Backend() ServicePortName Rewrite() []string }
Route , Ingress Route interface
type ServiceChangeTracker ¶
type ServiceChangeTracker struct {
// contains filtered or unexported fields
}
func NewServiceChangeTracker ¶
func NewServiceChangeTracker( enrichServiceInfo enrichServiceInfoFunc, recorder events.EventRecorder, ) *ServiceChangeTracker
type ServiceEndpoint ¶
type ServiceEndpoint struct { Endpoint string ServicePortName ServicePortName }
type ServiceMap ¶
type ServiceMap map[ServicePortName]ServicePort
func (ServiceMap) Update ¶
func (sm ServiceMap) Update(changes *ServiceChangeTracker)
type ServicePort ¶
type ServicePortName ¶
type ServicePortName struct { types.NamespacedName Port string Protocol v1.Protocol }
func (ServicePortName) String ¶
func (spn ServicePortName) String() string
Click to show internal directories.
Click to hide internal directories.