Documentation ¶
Index ¶
- Constants
- type GatewaySource
- func (gw *GatewaySource) Delete(_ string, _ interface{}) error
- func (gw *GatewaySource) GetGRPCRoute(route, namespace string) *gwv1.GRPCRoute
- func (gw *GatewaySource) GetHTTPRoute(route, namespace string) *gwv1.HTTPRoute
- func (gw *GatewaySource) GetTCPRoute(route, namespace string) *gwv1alpha2.TCPRoute
- func (gw *GatewaySource) Informer() cache.SharedIndexInformer
- func (gw *GatewaySource) SetInformers(informers *fsminformers.InformerCollection)
- func (gw *GatewaySource) SetServiceResource(serviceResource *KtoGSource)
- func (gw *GatewaySource) Upsert(key string, raw interface{}) error
- type KtoGSource
- type KtoGSyncer
- type Syncer
Constants ¶
const ( // SyncPeriod is how often the syncer will attempt to // reconcile the expected Service states. SyncPeriod = 5 * time.Second // ServicePollPeriod is how often a Service is checked for // whether it has instances to reap. ServicePollPeriod = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewaySource ¶ added in v1.2.1
type GatewaySource struct { InterceptionMode string // contains filtered or unexported fields }
GatewaySource implements controller.Resource and starts a background watcher o gateway to keep track of changing gateway.
func (*GatewaySource) Delete ¶ added in v1.2.1
func (gw *GatewaySource) Delete(_ string, _ interface{}) error
func (*GatewaySource) GetGRPCRoute ¶ added in v1.3.8
func (gw *GatewaySource) GetGRPCRoute(route, namespace string) *gwv1.GRPCRoute
GetGRPCRoute returns a GRPCRoute resource if found, nil otherwise.
func (*GatewaySource) GetHTTPRoute ¶ added in v1.3.8
func (gw *GatewaySource) GetHTTPRoute(route, namespace string) *gwv1.HTTPRoute
GetHTTPRoute returns a HTTPRoute resource if found, nil otherwise.
func (*GatewaySource) GetTCPRoute ¶ added in v1.3.8
func (gw *GatewaySource) GetTCPRoute(route, namespace string) *gwv1alpha2.TCPRoute
GetTCPRoute returns a TCPRoute resource if found, nil otherwise.
func (*GatewaySource) Informer ¶ added in v1.2.1
func (gw *GatewaySource) Informer() cache.SharedIndexInformer
func (*GatewaySource) SetInformers ¶ added in v1.3.8
func (gw *GatewaySource) SetInformers(informers *fsminformers.InformerCollection)
func (*GatewaySource) SetServiceResource ¶ added in v1.2.1
func (gw *GatewaySource) SetServiceResource(serviceResource *KtoGSource)
func (*GatewaySource) Upsert ¶ added in v1.2.1
func (gw *GatewaySource) Upsert(key string, raw interface{}) error
type KtoGSource ¶ added in v1.2.1
type KtoGSource struct {
// contains filtered or unexported fields
}
KtoGSource implements controller.Resource to sync Service source types from K8S.
func NewKtoGSource ¶ added in v1.2.1
func NewKtoGSource(controller connector.ConnectController, syncer Syncer, gatewaySource *GatewaySource, fsmNamespace string, kubeClient kubernetes.Interface, gatewayClient gwapi.Interface, ctx context.Context) *KtoGSource
func (*KtoGSource) Delete ¶ added in v1.2.1
func (t *KtoGSource) Delete(key string, _ interface{}) error
Delete implements the controller.Resource interface.
func (*KtoGSource) Informer ¶ added in v1.2.1
func (t *KtoGSource) Informer() cache.SharedIndexInformer
Informer implements the controller.Resource interface.
func (*KtoGSource) Run ¶ added in v1.2.1
func (t *KtoGSource) Run(ch <-chan struct{})
Run implements the controller.Backgrounder interface.
func (*KtoGSource) Upsert ¶ added in v1.2.1
func (t *KtoGSource) Upsert(key string, raw interface{}) error
Upsert implements the controller.Resource interface.
type KtoGSyncer ¶ added in v1.2.1
type KtoGSyncer struct {
// contains filtered or unexported fields
}
KtoGSyncer is a Syncer that takes the set of gateway routes.
func NewKtoGSyncer ¶ added in v1.2.1
func NewKtoGSyncer(controller connector.ConnectController, gatewaySource *GatewaySource) *KtoGSyncer
func (*KtoGSyncer) Run ¶ added in v1.2.1
func (s *KtoGSyncer) Run(ctx context.Context, ctrls ...*connector.CacheController)
Run is the long-running runloop for reconciling the local set of services to register with the remote state.
func (*KtoGSyncer) Sync ¶ added in v1.2.1
func (s *KtoGSyncer) Sync(rs []*corev1.Service)
Sync implements Syncer.